diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2017-11-30 15:33:29 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2017-11-30 15:33:29 +0000 |
commit | 30c4ca57841f7ed00f4b8bd08e9fb77a99ea03c2 (patch) | |
tree | c68f282f056cada60fad8fc282c20f9ffdbfd0ee /CHANGES | |
parent | 9d8e2a3c3d58395efca06a2610bf09873ae61918 (diff) | |
download | ports-30c4ca57841f7ed00f4b8bd08e9fb77a99ea03c2.tar.gz ports-30c4ca57841f7ed00f4b8bd08e9fb77a99ea03c2.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
Notes
Notes:
svn path=/head/; revision=455205
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 |