Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2015 14:19:47 +0100
From:      Torsten Zuehlsdorff <mailinglists@toco-domains.de>
To:        "A.J. \"Fonz\" van Werven" <freebsd@skysmurf.nl>, FreeBSD ports mailing list <freebsd-ports@freebsd.org>
Subject:   Re: How to make a port require at least one option?
Message-ID:  <5630CB73.2050803@toco-domains.de>
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
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



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