From owner-freebsd-ports@freebsd.org Wed Oct 28 13:09:43 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02D07A1F762 for ; Wed, 28 Oct 2015 13:09:43 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: from hades.sorbs.net (mail.sorbs.net [67.231.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id E817F12C6 for ; Wed, 28 Oct 2015 13:09:42 +0000 (UTC) (envelope-from michelle@sorbs.net) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from isux.com (c190-215.i02-8.onvol.net [213.165.190.215]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0NWX00EACJEP6C00@hades.sorbs.net> for freebsd-ports@freebsd.org; Wed, 28 Oct 2015 05:16:02 -0700 (PDT) Message-id: <5630BAFF.1000207@sorbs.net> Date: Wed, 28 Oct 2015 13:09:35 +0100 From: Michelle Sullivan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19 To: "A.J. \"Fonz\" van Werven" Cc: FreeBSD ports mailing list Subject: Re: How to make a port require at least one option? References: <20151028114204.GA97395@biertje.skysmurf.nl> In-reply-to: <20151028114204.GA97395@biertje.skysmurf.nl> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 13:09:43 -0000 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/