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/rsync.macports.org//macports/release/tarballs/ports/devel/openssl 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