RT36 port WITH_APACHE2
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Feb 14 11:44:51 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070214/da5da246/signature.pgp
More information about the freebsd-questions
mailing list