[PATCH] Proposal for a new option framework

Baptiste Daroussin baptiste.daroussin at gmail.com
Thu Nov 18 10:17:04 UTC 2010


from the feedback I received

Here is a new version (check-options is still branch yet)
This version adds 2 features :
- Conditionnal group and list :
  if an option (OPTS) has the same name as the name of a group or a
list (OPTS_GROUP OPTS_LIST) then the OPTS_GROUP depends on the option
to be set.
- OPTS_OVERRIDE:
the variable allow to override allow options set globally or per ports.

for example make -DOPTS_OVERRIDE="OPT1" will unset all options but OPT1.
Consistency will always be checked by check-options.

http://people.freebsd.org/~bapt/ports-newopts.patch


I also made a quick and dirty example of ports using the new ports
framework using vim (as obrien explain recently some problems with
options):
http://people.freebsd.org/~bapt/vim-newopts.patch

regards,
Bapt


More information about the freebsd-ports mailing list