From owner-freebsd-ports@FreeBSD.ORG Wed Jan 28 09:31:17 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD6959E1 for ; Wed, 28 Jan 2015 09:31:17 +0000 (UTC) Received: from mail.wilcox-tech.com (mail.foxkit.us [192.99.209.192]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.wilcox-tech.com", Issuer "mail.wilcox-tech.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 50E296C3 for ; Wed, 28 Jan 2015 09:31:16 +0000 (UTC) Received: (qmail 12571 invoked from network); 28 Jan 2015 09:32:18 -0000 Received: from ip68-13-243-137.ok.ok.cox.net (HELO ?192.168.1.253?) (emyers@wilcox-tech.com@68.13.243.137) by mail.foxkit.us with ESMTPA; 28 Jan 2015 09:32:18 -0000 Message-ID: <54C8AC60.3080200@interlinked.me> Date: Wed, 28 Jan 2015 03:31:12 -0600 From: Elizabeth Myers User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: ports@freebsd.org Subject: Selecting at least one option out of multiple groups Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 09:31:17 -0000 Hello, I am porting a piece of software (purple-plugin-pack) to FreeBSD. It contains numerous plugins for Pidgin all under one pack (over 50). They all compile, but I want to make it configurable which plugins are installed, but it makes no sense unless at least one plugin is set. So far I have the following: 8<========== snip ==========>8 OPTIONS_MULTI= plugins OPTIONS_MULTI_PLUGINS= ALBUM AUTOPROFILE AUTOREPLY AWAYNOTIFY BASH BIT \ ... 8<========== snip ==========>8 Which is fine and works as expected (at least one option must be selected). However, here is my dilemma. Some of the plugins provide additional protocols. I'd like to group them under their own section, since there's at least 5 or so, and it's logical for those who just want additional protocols without the other fluff. However, out of the entire pack, only one plugin needs to be enabled at all (including *or* excluding a protocol plugin). So, I am wondering what the "correct" way would be to go about ensuring at least one option out of two groups is selected. I hope I've managed to make sense here. -- Cheers, Elizabeth Myers