aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-03-25 18:19:44 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-03-25 18:19:44 +0000
commit0cfd925acdbbe028d44a054e619f69fbb5102f80 (patch)
treede3407a75e0507021973e1fc6ff428fee456700a /Mk
parenteb4b752da53cdaa8e79cb335540dee5274a5e34d (diff)
downloadports-0cfd925acdbbe028d44a054e619f69fbb5102f80.tar.gz
ports-0cfd925acdbbe028d44a054e619f69fbb5102f80.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.options.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 27beb351440b..df0b04e38b85 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -398,6 +398,7 @@ ALL_OPTIONS= ${OPTIONS_DEFINE}
.for opt in ${COMPLETE_OPTIONS_LIST} ${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE}
# PLIST_SUB
PLIST_SUB?=
+SUB_LIST?=
. if defined(OPTIONS_SUB)
. if ! ${PLIST_SUB:M${opt}=*}
. if ${PORT_OPTIONS:M${opt}}
@@ -406,6 +407,13 @@ PLIST_SUB:= ${PLIST_SUB} ${opt}="" NO_${opt}="@comment "
PLIST_SUB:= ${PLIST_SUB} ${opt}="@comment " NO_${opt}=""
. endif
. endif
+. if ! ${SUB_LIST:M${opt}=*}
+. if ${PORT_OPTIONS:M${opt}}
+SUB_LIST:= ${SUB_LIST} ${opt}="" NO_${opt}="@comment "
+. else
+SUB_LIST:= ${SUB_LIST} ${opt}="@comment " NO_${opt}=""
+. endif
+. endif
. endif
. if ${PORT_OPTIONS:M${opt}}