From owner-freebsd-ports@freebsd.org Tue Sep 26 15:52:18 2017 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 B59D8E0F0AD for ; Tue, 26 Sep 2017 15:52:18 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [IPv6:2a01:e0c:1:1599::10]) (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 846626B1F7 for ; Tue, 26 Sep 2017 15:52:18 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from [192.168.0.66] (unknown [88.184.223.108]) by smtp1-g21.free.fr (Postfix) with ESMTP id 6B793B0059C for ; Tue, 26 Sep 2017 17:52:08 +0200 (CEST) Subject: Re: [HEADUP] FLAVORS landing. To: freebsd-ports@freebsd.org References: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> From: "L.Bartoletti" Message-ID: <5573d63b-9b77-a765-1ee0-b9d40d514c7b@tuxfamily.org> Date: Tue, 26 Sep 2017 17:52:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <64b78d72-db31-7c4b-c7de-ba5a3ee6a196@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 15:52:18 -0000 Great! Thanks guys! Loïc On 26.09.2017 16:10, Mathieu Arnold wrote: > Le 26/09/2017 à 16:05, Mathieu Arnold a écrit : >> 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. > Of course, I forgot those two links. > https://wiki.freebsd.org/Ports/FlavorsMigration > https://wiki.freebsd.org/Ports/FlavorsAndSubPackages > >> To define a different flavors in a port, before any include, set: >> >> FLAVORS=  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: >> >> .if ${FLAVOR} == flavor2 >> [change some stuff] >> .endif >> >> To build flavor2, simply run: >> >> make FLAVOR=flavor2 >> >> To depend on a specific flavor, write @ at the end of the depend >> string, for example, to depend on flavor "foo": >> >> RUN_DEPENDS=    something:origin@foo >>