OPTIONS_DEFINE in Mk/Uses/.mk file?

Olivier Duchateau olivierd at freebsd.org
Mon Oct 27 21:21:01 UTC 2014


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


More information about the freebsd-ports mailing list