From owner-freebsd-ports@freebsd.org Wed Oct 28 13:19:49 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 8F2D1A1FB16 for ; Wed, 28 Oct 2015 13:19:49 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from toco-domains.de (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 588101C80 for ; Wed, 28 Oct 2015 13:19:49 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from [0.0.0.0] (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) by toco-domains.de (Postfix) with ESMTPA id 50BC91B2283C; Wed, 28 Oct 2015 14:19:47 +0100 (CET) Subject: Re: How to make a port require at least one option? To: "A.J. \"Fonz\" van Werven" , FreeBSD ports mailing list References: <20151028114204.GA97395@biertje.skysmurf.nl> From: Torsten Zuehlsdorff Message-ID: <5630CB73.2050803@toco-domains.de> Date: Wed, 28 Oct 2015 14:19:47 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151028114204.GA97395@biertje.skysmurf.nl> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:19:49 -0000 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: https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html Chapter 5.12.1.2. Syntax. You are looking for multiple-choice. Ports are for example (randomly picked): - www/testlink - audio/libmp3splt - net/asterisk13 Greetings, Torsten