Add CONFIGURE_ARGS option for port in make.conf

Matthias Kellermann mk at adminlife.net
Thu Aug 7 14:04:48 UTC 2008


RW wrote:
> On Thu, 07 Aug 2008 10:04:23 +0200
> Matthias Kellermann <mk at adminlife.net> wrote:
> 
>> Hi list,
>>
>> I want to compile a port with an option that is not controllable
>> through the FreeBSD Makefile or with make config.
>> ...
>> So I added an option to make.conf(5):
>>
>> .if ${.CURDIR:M*/lang/php4}
>> CONFIGURE_ARGS+=--with-mime-magic
>> .endif
>>
>> Unfortonately, this does not work. 
>> ...
>> Any ideas whats wrong here?
> 
> make.conf is read before the makefile. The use of "CONFIGURE_ARGS=" in
> the port makefile means that any change to CONFIGURE_ARGS made in
> make.conf is lost.
> 
> I think you'll have to maintain a patch against the port makefile.

Thanks, but I thought CONFIGURE_ARGS+= should add this option and not 
overwrite the options from the Makefile. Therefore the plus-sign.

Regards,
Matthias


More information about the freebsd-questions mailing list