Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jun 2012 16:14:47 +0300
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        Bryan Drewery <bryan@shatow.net>
Cc:        ports@FreeBSD.org, Baptiste Daroussin <bapt@FreeBSD.org>
Subject:   Re: [HEADSUP] Please convert your ports to new options framework
Message-ID:  <4FD1FAC7.9090507@gmail.com>
In-Reply-To: <4FD1F531.2030609@shatow.net>
References:  <20120603184448.GI92976@ithaqua.etoilebsd.net> <4FCCB88B.6030007@shatow.net> <4FD1F531.2030609@shatow.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD1FAC7.9090507>