Changeset View
Changeset View
Standalone View
Standalone View
head/CHANGES
Updating Information for FreeBSD ports developers | Updating Information for FreeBSD ports developers | ||||
This file is maintained by portmgr@FreeBSD.org and copyrighted by the | This file is maintained by portmgr@FreeBSD.org and copyrighted by the | ||||
FreeBSD Foundation. | FreeBSD Foundation. | ||||
This file contains major changes to ports and the ports infrastructure. | This file contains major changes to ports and the ports infrastructure. | ||||
Intended audience are ports committers, maintainers and other | Intended audience are ports committers, maintainers and other | ||||
developers. User oriented changes should be submitted for inclusion | developers. User oriented changes should be submitted for inclusion | ||||
in the release notes and/or placed into UPDATING. | in the release notes and/or placed into UPDATING. | ||||
All ports committers are allowed to commit to this file. | 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: | 20171020: | ||||
AUTHOR: ak@FreeBSD.org | AUTHOR: ak@FreeBSD.org | ||||
The USES=fmake has been removed. It was created to help migration from | The USES=fmake has been removed. It was created to help migration from | ||||
old FreeBSD make (pmake) and there are no more users of it left in | old FreeBSD make (pmake) and there are no more users of it left in | ||||
the ports tree. | the ports tree. | ||||
20171012: | 20171012: | ||||
▲ Show 20 Lines • Show All 3,364 Lines • Show Last 20 Lines |