[HEADSUP] Please convert your ports to new options framework
Bryan Drewery
bryan at shatow.net
Fri Jun 8 14:07:27 UTC 2012
On 6/8/2012 8:14 AM, Vitaly Magerya wrote:
> Bryan Drewery wrote:
>> Another common question is how to check if an option is not set. We all
>> try !${PORT_OPTIONS:MFOO} to find it does not work.
>
> $ cat Makefile
> all:
> .if ${LIST:MFOO}
> @echo HAVE FOO
> .endif
> .if !${LIST:MFOO}
> @echo NO FOO
> .endif
>
> $ make LIST=FOO
> HAVE FOO
>
> $ make LIST=BAR
> NO FOO
>
> Seems to work fine. What am I missing?
It does not work in all situations. I can't recall the specific case
right now, but have several reports of it not working.
Regards,
Bryan Drewery
More information about the freebsd-ports
mailing list