Joe Auty wrote:
> I figured this out,
>
> My pkgtools.conf make args needed to read:
>
>>> MAKE_ARGS = {
>>> <snipped>
>>> 'www/rt36' => '-DWITH_APACHE2'
>>> }
>
> rather than:
>
>>> MAKE_ARGS = {
>>> <snipped>
>>> 'www/rt36' => 'WITH_APACHE2'
>>> }
>
>
> Why is it that some make arguments in this file need the -D while
> some don't? Hmmm.....
>
It's not portupgrade that needs that, but make(1). You can set make
variables from the command line, and this is what portupgrade does to
exercise various options while building ports.
The syntax for make is either:
make VARIABLE=value
or
make -DVARIABLE
where the latter is equivalent to saying
make VARIABLE=1
('D' for 'define')
Translating that into the format used by pkgtools.conf you can write
either:
MAKE_ARGS = {
<snipped>
'www/rt36' => '-DWITH_APACHE2'
}
or
MAKE_ARGS = {
<snipped>
'www/rt36' => 'WITH_APACHE2=1'
}
You can also undefine a variable by:
make -UVARIABLE
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. Flat 3
7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW, UK
Attachment:
signature.asc
Description: OpenPGP digital signature