mutually exclusive OPTIONS?
Freddie Cash
fcash at ocis.net
Wed Mar 29 21:50:14 UTC 2006
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. :)
----
Freddie Cash
fcash at ocis.net
More information about the freebsd-ports
mailing list