How to make a port require at least one option?
michelle at sorbs.net
Wed Oct 28 13:09:43 UTC 2015
A.J. "Fonz" van Werven wrote:
> Hi all,
> I'm working on a port that has two options, of which at least one must be
> selected, but selecting both is OK too. Can somebody please point me to an
> existing port (surely there must be some already) that has this, so I can
> see how to use the options framework in this case?
> Thanks in advance.
Do that in your processing of options (if defined etc). It's your
choice whether to force a default or to error out of the build if
options are not configured.
More information about the freebsd-ports