Date: Fri, 08 Jun 2012 09:07:35 -0500 From: Bryan Drewery <bryan@shatow.net> To: Vitaly Magerya <vmagerya@gmail.com> Cc: ports@FreeBSD.org, Baptiste Daroussin <bapt@FreeBSD.org> Subject: Re: [HEADSUP] Please convert your ports to new options framework Message-ID: <4FD20727.4060106@shatow.net> In-Reply-To: <4FD1FAC7.9090507@gmail.com> References: <20120603184448.GI92976@ithaqua.etoilebsd.net> <4FCCB88B.6030007@shatow.net> <4FD1F531.2030609@shatow.net> <4FD1FAC7.9090507@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD20727.4060106>