Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 03:31:12 -0600
From:      Elizabeth Myers <elizabeth@interlinked.me>
To:        ports@freebsd.org
Subject:   Selecting at least one option out of multiple groups
Message-ID:  <54C8AC60.3080200@interlinked.me>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54C8AC60.3080200>