Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 16:05:08 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        freebsd-ports-announce@FreeBSD.org
Subject:   [HEADUP] FLAVORS landing.
Message-ID:  <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR
Content-Type: multipart/mixed; boundary="XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
Reply-To: ports-list freebsd <freebsd-ports@freebsd.org>
To: freebsd-ports@freebsd.org
Cc: freebsd-ports-announce@FreeBSD.org
Message-ID: <dcc6fa75-8325-01e9-4a86-e3bc61bb27a2@FreeBSD.org>
Subject: [HEADUP] FLAVORS landing.

--XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US

Hi,

**Do not commit FLAVORS to any ports, a hook will prevent it, that being
said, do try it and test what can be done.**

To test this feature in poudriere, you need
poudriere-devel-3.1.99.20170621 or later.

This has been a long awaiting feature, most of the work has been done by
bapt, bdrewery and antoine, I am just the one actually doing the
announce and commit and all.

All this information, and more to come are in the first link to our wiki
in the bottom block. A roadmap is in the second link.

To define a different flavors in a port, before any include, set:

FLAVORS=3D=C2=A0 flavor1 flavor2 [...]

The first flavor in the list will be the default.

You can then check for flavors after includ'ing bsd.port.options.mk with:=


=2Eif ${FLAVOR} =3D=3D flavor2
[change some stuff]
=2Eendif

To build flavor2, simply run:

make FLAVOR=3Dflavor2

To depend on a specific flavor, write @<flavor> at the end of the depend
string, for example, to depend on flavor "foo":

RUN_DEPENDS=3D=C2=A0=C2=A0=C2=A0 something:origin@foo

--=20
Mathieu Arnold



--XoHc8hw8KrllNsBnqvbSK9uKNiSbPijHN--

--RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJZyl6UXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IkLAP/RvcIzQv/2QlZFGwJCy0UNgb
tB6M85jhINEviSU4hEQ6DGSPSzqZYAv0ftq9Xf5OTIdnuK68SRfz4NPx38ViDtOc
bxv/jWj/c0SmBzE5SdGkL8/UrwtWenj1yNLZiGipFCGllAlBFFLVPOGjUwy7t0my
VAUHln5y/zwzJBoTt73ljNwExztuDnfRkEfcjHJZ+94jOfe539mt3dYgKsL4oGwz
7ThBU4CpIyFXUUhtVe5tApFD8bMR3P4rRDsKzFwwY2xoeC/HY3jBswjSHKrevKcb
hp2PHIuxYwFR2E+27ImQ+RTgo9tZERsoY0FGtDEiX5QvMqzvmVRmcGw3m0tclzGP
IF2pzG2K7y63HuTDe5IDtd5llWqXmDoyvcTvJd3rZ6CGM+F1n2fe6e+bohGKhz+p
w1WRsWEvSH8ibPcTFaDKjpC+Wjm6AVKOPF9cQSMEGJsfHGXNzzxxR+y5shafeZ8G
XsDpQsFCF35RUaTHlCaAnJGBwGPzmXAglUe/nuWVdO9lQ63igk/YllkMiZ2wJLb2
rVCG4uC3i1k+474xR5YJGf00hc+rs2GzHImZxDbQFLledFsb0SDL81JHCyTk5eyM
BJ/61okf/qF7RrxdKGyeFcOwxgkPdhBlT52CZ3PQ/LYx3ZjEMSHv3Pg9LuBlAGrN
rq0VtPeBs3Ytv7vZC+xk
=wldy
-----END PGP SIGNATURE-----

--RCgtuMetXxRQcTwgUPE2D8KG2Pl8cMsQR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dcc6fa75-8325-01e9-4a86-e3bc61bb27a2>