summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-10-14 16:34:04 +0200
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-10-18 13:31:56 +0200
commit5c7b1f13e5e7d19caedabd0b0e1087622c5a8f08 (patch)
tree3d3b8b1da10916d0c61d3d874176bfae1a5e632d
parentsecurity/py-yubikey-manager: update 4.0.5 to 4.0.7 (diff)
Mk/bsd.port.mk: Add FLAVOR_SUB
If defined, for each flavors it will create for the non active one: PLIST_SUB= FLAVORNAME="@comment " NO_FLAVOUNAME="" and for the active one: PLIST_SUB= FLAVORNAME="" NO_FLAVOUNAME="@comment " Same for SUB_LIST Reviewed by: manu, bdrewery, mat Differential Revision: https://reviews.freebsd.org/D32495
-rw-r--r--Mk/bsd.port.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index a0f19bd77697..ba8e97da8f9c 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1545,6 +1545,12 @@ ${v}+= ${${FLAVOR}_${v}}
${v}= flavor "${FLAVOR}" ${${FLAVOR}_${v}}
.endif
.endfor
+.if defined(FLAVORS_SUB)
+PLIST_SUB+= ${FLAVORS:N${FLAVOR}:@v@${v:tu}="\@comment " NO_${v:tu}=""@}
+PLIST_SUB+= ${FLAVOR:tu}="" NO_${FLAVOR:tu}="@comment "
+SUB_LIST+= ${FLAVORS:N${FLAVOR}:@v@${v:tu}="\@comment " NO_${v:tu}=""@}
+SUB_LIST+= ${FLAVOR:tu}="" NO_${FLAVOR:tu}="@comment "
+.endif
.endif # defined(${FLAVOR})