How to make a port require at least one option?

Michelle Sullivan 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.
>
> AvW
>
>   
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.

-- 
Michelle Sullivan
http://www.mhix.org/



More information about the freebsd-ports mailing list