Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2015 13:09:35 +0100
From:      Michelle Sullivan <michelle@sorbs.net>
To:        "A.J. \"Fonz\" van Werven" <freebsd@skysmurf.nl>
Cc:        FreeBSD ports mailing list <freebsd-ports@freebsd.org>
Subject:   Re: How to make a port require at least one option?
Message-ID:  <5630BAFF.1000207@sorbs.net>
In-Reply-To: <20151028114204.GA97395@biertje.skysmurf.nl>
References:  <20151028114204.GA97395@biertje.skysmurf.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5630BAFF.1000207>