[CFT+Brainstorm] Extending the options framework

Baptiste Daroussin bapt at FreeBSD.org
Wed Dec 5 21:22:38 UTC 2012

Hi all,

Most of people sems happy with the new framework options however it could be yet
better, here is an attempt to improve it:

Among the complains people tends to find that OPTIONS_SINGLE aka 1 among N is
nice but the 0 or 1 among N is not user friendly. So here is OPTIONS_RADIO which
is natively 0 or 1 among N without the need of adding its name to

if everyone is happy with OPTIONS_RADIO, then the 0 or 1 feature from
OPTIONS_SINGLE will be removed later once the ports needed that has been
converted to OPTIONS_RADIO

Another feature request I received was the ability to group options into a named
group, to avoid some sort of sorting of option name (nginx is a good example in
my mind that could benefit it. So OPTIONS_GROUP has been created
OPTIONS_GROUP works exactly the same as OPTIONS_MULTI except that is accept 0 or
N among M

if you have better name to propose feel free :)

Please test, send you remark etc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20121205/87d1dc9a/attachment.sig>

More information about the freebsd-ports mailing list