Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2014 22:24:10 +0000
From:      Olivier Duchateau <olivierd@freebsd.org>
To:        freebsd-ports@freebsd.org
Subject:   OPTIONS_DEFINE in Mk/Uses/.mk file?
Message-ID:  <20141027222410.f9ce6db3f809d3c7a947005b@freebsd.org>

next in thread | raw e-mail | index | archive | help
Hi,

I wonder, if in Mk/Uses/*.mk file, we can define options like in ports (with OPTIONS_DEFINE) kind of global option.

I would like something like that:

.if {foo_ARGS:Mbar}
# Do something
.endif

.if {foo_ARGS:Mbaz}
OPTIONS_DEFINE= OPT1
OPTIONS_DESC= Add OPT1 support
.endif

OPT1 is added in main config menu of port, when USES= foo:baz is set.

Regards

-- 
olivier



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