mutually exclusive OPTIONS?

Danny Pansters danny at ricin.com
Wed Mar 29 21:53:25 UTC 2006


On Wednesday 29 March 2006 23:49, Freddie Cash wrote:
> On Wed, March 29, 2006 1:44 pm, Danny Pansters wrote:
> > I'm making a port that has several mutually exclusive compile-time
> > options. I want to present them as OPTIONS as should, but is there a
> > way within the ports framework to ensure that only one (of the 5
> > possibilities) is selected, or when one of them is the default but
> > then with 4 mutually exclusive OPTIONS if the user needs one of teh
> > non-default options?
>
> Hopefully someone else will know a better way, but the way I've used
> and seen in other ports is:
>
> .if defined(WITH_OPTION1) && defined(WITH_OPTION2)
> IGNORE=    error! You can't select these two options together.
> .endif
>
> And so on for all the combinations that should not be selected.  :)

Ugh. Then I rather use the first selected non-default and ignore the others...

Thanks,

Dan


More information about the freebsd-ports mailing list