Setting up multiple MacPorts copies on one machine

David Bruce davidstuartbruce at gmail.com
Tue Apr 21 08:21:23 PDT 2009


Hi,

I maintain the tuxmath and tuxtype ports (and am also upstream
maintainer for both).

I initially got interested in MacPorts as a way of making binary dmg
files for our Mac users, even if they don't use MacPorts.  I can now
build universal (32-bit PPC/Intel, that is) mdmg files for the
programs, although they probably only work on Leopard.

Recently on this list it was recommended that for situations like
mine, I build the dmgs to install under something other than the
default /opt/local, so that they not conflict with MacPorts-installed
packages if the user happens to have MacPorts.  So, I followed the
manual and installed a second MacPorts copy on my iMac, this time
under "/opt/local/tux4kids".

My question is how people make this simple to manage.   Is there an
established way to set up aliases, paths, etc? I want to be sure that
if I type "sudo port", I run the default macports copy, and have a
function or alias (say "sudo tuxport") that gives me "port" from my
non-default installation.

Thanks for any advice,

David Bruce


More information about the macports-dev mailing list