HomeFreeBSD

New options framework for the ports

Description

New options framework for the ports

for maintainers:
it introduces 3 different types of options: simple, multi and single:

  • simple options are the same as the current options (i.e. on or off.)
  • multi options are options where at least one must be set (1-N).
  • single options are options where one and only one must be set (exclusive options).

for users:

  • OPTIONS_SET: globally enable some options
  • OPTIONS_UNSET: globally disable some options
  • ${UNIQUENAME}_SET: enable per-port choice of options
  • ${UNIQUENAME}_UNSET: disable per-port choice of options

For compatibility the old OPTIONS framework is now working on top of the new one
The options previously set with old OPTIONS are imported and converted
transparently.

A new knob NO_DIALOG if defined in the the config-conditional target is ignored
(prevent the dialog(1) ui to show up.

Thanks to all people involved:
beat@, crees@, Bryan Drewery, linimon@, novel@ and others, for testing, comments, patches

Details

Committed
baptMay 29 2012, 9:54 AM
Parents
rP297659: - Add SourceForge mirror
Branches
Unknown
Tags
Unknown