summaryrefslogtreecommitdiff
path: root/mk/bsd.options.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-12-05 22:38:06 +0000
committergrant <grant@pkgsrc.org>2004-12-05 22:38:06 +0000
commitc463b8b4910b2b8708500bcb59a23f7fcd760b4c (patch)
treebebdb239f154803243c71d516616f8cbbd21d1fc /mk/bsd.options.mk
parentcc45972504d8290e11ccb9bdd881a360c9e7724a (diff)
downloadpkgsrc-c463b8b4910b2b8708500bcb59a23f7fcd760b4c.tar.gz
make sure some variables are initialized before using them.
Diffstat (limited to 'mk/bsd.options.mk')
-rw-r--r--mk/bsd.options.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
index ac1a949f299..5748fbfd964 100644
--- a/mk/bsd.options.mk
+++ b/mk/bsd.options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.12 2004/12/05 09:20:48 grant Exp $
+# $NetBSD: bsd.options.mk,v 1.13 2004/12/05 22:38:06 grant Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -176,13 +176,13 @@ _PKG_OPTIONS_WORDWRAP_FILTER= \
END { if (length(line) > 0) print " "line } \
'
-.if !defined(_PKG_OPTIONS_AVAILABLE)
+.if !defined(_PKG_OPTIONS_AVAILABLE) && defined(PKG_SUPPORTED_OPTIONS)
_PKG_OPTIONS_AVAILABLE!= ${ECHO} ${PKG_SUPPORTED_OPTIONS} | ${XARGS} -n 1 | ${SORT}
.endif
-.if !defined(_PKG_OPTIONS_DEFAULT)
+.if !defined(_PKG_OPTIONS_DEFAULT) && defined(PKG_DEFAULT_OPTIONS)
_PKG_OPTIONS_DEFAULT!= ${ECHO} ${PKG_DEFAULT_OPTIONS} | ${XARGS} -n 1 | ${SORT}
.endif
-.if !defined(_PKG_OPTIONS_ENABLED)
+.if !defined(_PKG_OPTIONS_ENABLED) && defined(PKG_OPTIONS)
_PKG_OPTIONS_ENABLED!= ${ECHO} ${PKG_OPTIONS} | ${XARGS} -n 1 | ${SORT}
.endif