macports


Prevent MacPorts from installing pre-built package?


I am trying to instal libiconv with MacPorts. I need to build it to run in OS X 10.5 while my Mac is running 10.6. So I added this like to macports.conf:
macosx_deployment_target 10.5
That supposedly force MacPorts to build the port with 10.5 SDK. However, the installed libraries still contain LC_DYLD_INFO load command which is available only in 10.6.
I reinstalled the port with -v option and find that it downloads and installs a pre-built package without compiling. The package obviously was built on a 10.6 machines.
The question is: how can I force MacPorts to built the port on my machine with my settings? Thanks.
Edit: I am building x86/x64 universal binaries with this command:
sudo port -v install libiconv +universal
As of MacPorts 2.1.0, there is a new setting called buildfromsource in the configuration file /opt/local/etc/macports/macports.conf that controls the use a pre-built archives:
# When to build ports from source. Default is 'ifneeded', which downloads an
# archive if available or builds from source otherwise. 'always' has the same
# effect as -s on the command line, and 'never' is likewise the same as -b.
#buildfromsource ifneeded
Duh! I've looked up and down for the better part of the day. And right after I posted the question, I find it out myself.
Add -s to port command and it will pull and compile the source locally:
sudo port -s -v install libiconv +universal

Related Links

Why won't mariadb listen on port 3306 after a macports update?
MacPorts is not installing
Edit sources of a port before installing
Osgviewer cow does not view a cow?
Error installing libstdcxx with macports
Instructing Macports to download, but not install, dependencies for a port
homebrew uninstall/move macports UNDO [closed]
installing sets/groups/collections of ports using macports
How to get MacPorts to install something without updating all existing packages
macports on mac os x mountain lion
Mac port errors on OSX Mountain Lion
Macports warning when installing automake: Warning: Deactivate forced. Proceeding despite dependencies
Macports Selfupdate
How to recompile macport with additional ./configure flag?
Macport self update failed
Is it possible to use MacPorts to distribute custom software?

Categories

HOME
matrix
barcode-scanner
d3.js
tcsh
filesize
website
whmcs
magento-2.0
repair
angular-meteor
msmq
lc3
game-maker
circleci
vimeo
fullcalendar-scheduler
live-streaming
outlook-restapi
spring-jpa
complexity-theory
asp.net-core-1.0
pinterest
web-deployment
error-logging
web-analytics
high-availability
oracleforms
sendmessage
ibm-connections
unmarshalling
splunk-query
guice
instructions
xmlunit
directfb
bootstrap-sass
textmate2
formsauthenticationticket
cordys-opentext
cartopy
android-alarms
reset
yoast
sony-future-lab-n
cordova-ios
entropy
freshdesk
sesame
d3v4
researchkit
e
jpda
system.web.optimization
visual-studio-monaco
gcloud-node
jenkins-workflow
wolfram-language
powerpoint-2013
mathnet
fdt
gridbaglayout
vimperator
wepay
nette
highest
jnlp
wlanapi
android-handler
componentart
unidata
rfc5545
dc
iplimage
storing-data
quantify
network-printers
incognito-mode
reference-counting
fileshare
cloo
spring-security-acl
sensormanager
ax
spiral
proc-open
linkbutton
gitx
sfinae
first-class
type-safety
expression-web
asio
datacontracts
vows
net-use
botnet
digiflow
cassini
multiple-users
j2mepolish
rawcontacts
inversion
bindable-linq
account-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App