make.conf and curdir

Hello,

Does all ports support declaration of this type in /etc/make.conf ?

Code:
.if ${.CURDIR:M*/ftp/wget}
WITH_NLS=true
WITH_OPENSSL=true
.endif


Thanks a lot
 
Thanks for your answer.

But, when i want to install the web server Nginx, it doesn't work.

Code:
# make
===>  nginx-nopcre-0.7.65 requires at least HTTP_MODULE or MAIL_MODULE to  be defined.  Please 'make config' again.
*** Error code 1

Stop in /usr/ports/www/nginx.

And my /etc/make.conf for this port :
Code:
.if ${.CURDIR:M*/www/nginx}
WITH_HTTP_MODULE=true
.endif

Thanks
 
Interesting. The default Makefile has

Code:
[X] HTTP_MODULE               Enable HTTP module

so it defaults to 'on' (and the extra settings in /etc/make.conf are actually unneeded).

If you remove the checkmark in [cmd=]make config[/cmd] and use the .if setting in /etc/make.conf, the mentioned error does occur.
 
I remove all checkmarks in make config and the error persist.
When you want to install a port using /etc/make.conf, you have nothing to do ?

Code:
$ cd /usr/ports/www/nginx
$ make

No ?
 
Don't remove all of the checkmarks ;) Just run [cmd=]make rmconfig && make install clean[/cmd] in the port dir (just accept the default options in the config screen). This should build/install fine.
 
Back
Top