aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-07 16:06:17 +0800
committerbapt <bapt@FreeBSD.org>2013-06-07 16:06:17 +0800
commitc60ece873246c38eb7a50f32f0fd35997808d097 (patch)
treeb061ecc4d58ddf4303c6b44ce13d75a2f7c01167 /Mk
parent85c1a8979bac36d029bbdc25dd065e2fcacb2fa9 (diff)
downloadfreebsd-ports-gnome-c60ece873246c38eb7a50f32f0fd35997808d097.tar.gz
freebsd-ports-gnome-c60ece873246c38eb7a50f32f0fd35997808d097.tar.zst
freebsd-ports-gnome-c60ece873246c38eb7a50f32f0fd35997808d097.zip
Do not automatically popup dialog in case only options from global options are defined
Requested by: many
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.options.mk7
-rw-r--r--Mk/bsd.port.mk2
2 files changed, 8 insertions, 1 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 693c8c7c9e10..dfe42536f913 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -54,6 +54,8 @@ OPTIONSFILE?= ${PORT_DBDIR}/${UNIQUENAME}/options
#ALL_OPTIONS= DOCS \
# NLS
+GLOBAL_OPTIONS= DOCS NLS EXAMPLES IPV6
+
# Set the default values for the global options, as defined by portmgr
.if !defined(NOPORTDOCS)
PORT_OPTIONS+= DOCS
@@ -315,3 +317,8 @@ WITH_${opt}:= true
.endfor
.endif
###
+
+_OPTIONS_WITHOUT_GLOBALS:= ${COMPLETE_OPTIONS_LIST}
+.for opt in ${GLOBAL_OPTIONS}
+_OPTIONS_WITHOUT_GLOBALS:= ${_OPTIONS_WITHOUT_GLOBALS:N${opt}}
+.endfor
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index ef71cda82610..0ef87d6fe6c9 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -6180,7 +6180,7 @@ config-recursive:
.if !target(config-conditional)
config-conditional: pre-config
-.if defined(COMPLETE_OPTIONS_LIST) && !defined(NO_DIALOG)
+.if defined(COMPLETE_OPTIONS_LIST) && !empty(_OPTIONS_WITHOUT_GLOBALS) && !defined(NO_DIALOG)
. if !defined(_FILE_COMPLETE_OPTIONS_LIST) || ${COMPLETE_OPTIONS_LIST:O} != ${_FILE_COMPLETE_OPTIONS_LIST:O}
@cd ${.CURDIR} && ${MAKE} do-config;
. endif