summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2019-09-05 13:45:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2019-09-05 13:45:38 +0000
commit4b13af055f06bcecf962339839982d227e088399 (patch)
tree7110538fe4217f68532577c21e0565364321275d /Mk/bsd.port.mk
parentd05eb953812de63de2c290fc7b087cce2d7a058d (diff)
downloadfreebsd-ports-4b13af055f06bcecf962339839982d227e088399.zip
Avoid appending FLAVORS to PORTS_FEATURES multiple times
PR: 224158 Reported by: yuri@
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index e2845e6b98be..7db88d34989a 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1039,7 +1039,9 @@ OVERLAYS?=
.if !defined(_FLAVOR)
_FLAVOR:= ${FLAVOR}
.endif
+.if !defined(PORTS_FEATURES) && empty(${PORTS_FEATURES:MFLAVORS})
PORTS_FEATURES+= FLAVORS
+.endif
MINIMAL_PKG_VERSION= 1.6.0
_PORTS_DIRECTORIES+= ${PKG_DBDIR} ${PREFIX} ${WRKDIR} ${EXTRACT_WRKDIR} \