aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGES
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-11-30 23:33:29 +0800
committermat <mat@FreeBSD.org>2017-11-30 23:33:29 +0800
commit4b9fac224203752b835bc0bf378c002afcaafe9d (patch)
treec68f282f056cada60fad8fc282c20f9ffdbfd0ee /CHANGES
parent2a9aca2edb30e608fa805528df1ce87cc59e1e52 (diff)
downloadfreebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.tar.gz
freebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.tar.zst
freebsd-ports-gnome-4b9fac224203752b835bc0bf378c002afcaafe9d.zip
Generic FLAVORS work.
- Enable FLAVORS. - Make make describe flavors aware. - Add a qa check for unique package names amongst flavors. - Make MOVEDlint understand flavors. - Add a bit of sanity check to make sure FLAVORS stay lowercase. - Various fixes. Reviewed by: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12577
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES27
1 files changed, 27 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 9f025708e1b8..b8c9e431d6a0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,33 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
+20171130:
+AUTHOR: mat@FreeBSD.org
+
+ Flavors are a way to have multiple variations of a port. The port is built
+ multiple times, with the variations. To declare flavors, set the FLAVORS
+ variable to the flavors you want defined. The first flavor will be the
+ default:
+
+ FLAVORS= flavor1 flavor2
+
+ The flavors MUST be lowercase, and can contain [[:lower:][:digit:]_].
+
+ Then, when building the port, pass the FLAVOR as an argument after make to
+ select the flavor.
+
+ $ make install FLAVOR=flavor2
+
+ In the port, you can then change the behavior depending on the value of the
+ FLAVOR variable. Note that the different flavors MUST have different
+ PKGNAMEs. Be sure to guard against an empty FLAVOR variable by using
+ ${FLAVOR:U}:
+
+ .if ${FLAVOR:U} == flavor2
+ PKGNAMESUFFIX= -foo
+ OPTIONS_DEFAULT+= FOO
+ .endif
+
20171020:
AUTHOR: ak@FreeBSD.org