How to make a port require at least one option?

Torsten Zuehlsdorff mailinglists at
Wed Oct 28 13:19:49 UTC 2015

Hello Fonz,

> 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?

Have a look at:

Chapter Syntax. You are looking for multiple-choice.

Ports are for example (randomly picked):
- www/testlink
- audio/libmp3splt
- net/asterisk13


More information about the freebsd-ports mailing list