Setting environnement variable in a port

Joshua Root jmr at macports.org
Tue Jul 26 06:05:22 PDT 2011


On 2011-7-26 22:32 , Sébastien Maret wrote:
> Hello,
> 
> I am working on a port that requires setting a few environnement
> variable at run time. How can this be done?

Depends on which variables and in which phase. You can directly set
configure.env, build.env etc., which should be a list of NAME=value,
plus the configure phase has a lot of options that set one specific
environment variable. Docs:

<http://guide.macports.org/chunked/reference.phases.html#reference.phases.configure>

- Josh


More information about the macports-dev mailing list