Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 11:44:14 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Joe Auty <joe@netmusician.org>
Cc:        freebsd-questions Questions <freebsd-questions@freebsd.org>
Subject:   Re: RT36 port WITH_APACHE2
Message-ID:  <45D2F60E.10901@infracaninophile.co.uk>
In-Reply-To: <73DE0F54-0275-4614-96FF-4C453CF2269F@netmusician.org>
References:  <B5F3E776-F8EC-4F77-B87B-F6E2A252410C@netmusician.org>	<8D030410-F770-42D4-9E03-494055B29011@netmusician.org> <73DE0F54-0275-4614-96FF-4C453CF2269F@netmusician.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0vYT3jDkPpsZ+VYRA7WTAKCkrD1YKDyQvCk6EcF7iIUGfrSZ0ACgm+MA
Gie/x+7Wrnea03mYine64+M=
=7T8g
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D2F60E.10901>