MacPorts: Install port with special configure options

Sometimes it is nice to be able to reinstall a MacPorts port with your own special configure options.

Step 0: Update Macports

sudo port selfupdate
sudo port upgrade outdated

Step 1: Locate the Portfile in question and edit it

cd /opt/local/var/macports/sources/
sudo emacs -nw Portfile
# add a few lines e.g., in the configure section
enable-ssl3 \
enable-ssl3-method \
enable-weak-ssl-ciphers \
enable-rc5 \

Step 2: Uninstall and then re-install the Port (-s = from source)

sudo port uninstall -f openssl
sudo port -s -v install openssl

Step ∞: Remember to redo Steps 1 and 2 each time you do a port selfupdate

Skriv et svar

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>