build.args

Joshua Root jmr at macports.org
Fri Jan 8 13:49:23 PST 2016


On 2016-1-9 08:21 , David Strubbe wrote:
> Hi all,
> 
> Is there a way to get the value of build.args in a Portfile? I would
> like to do something like
> 
> pre-test {
>    test.args-append   ${build.args}
> }
> 
> but there is no such variable.

The variable doesn't exist if it has not been set. In that case, there
is of course no value to get. You can test for its existence with
[exists build.args].

- Josh


More information about the macports-dev mailing list