summaryrefslogtreecommitdiff
path: root/mk/bsd.options.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-12-05 09:20:48 +0000
committergrant <grant@pkgsrc.org>2004-12-05 09:20:48 +0000
commite221a993ebbe0f95c646e51ae557b0b0d92ed301 (patch)
tree4e6d682a2e7bfd0ecc96d504b0dea9d27748f36f /mk/bsd.options.mk
parent8e47058df40582a506e2dbd2a7d05aa774875dbe (diff)
downloadpkgsrc-e221a993ebbe0f95c646e51ae557b0b0d92ed301.tar.gz
add show-options target which displays the options available, default,
and enabled for the current pkg, eg. mail/sendmail: available: db2 db4 inet6 ldap sasl sasl2 socketmap starttls tcpwrappers default: canna esound gif idea inet6 inet6 sj3 tcpwrappers wnn4 enabled: inet6 tcpwrappers
Diffstat (limited to 'mk/bsd.options.mk')
-rw-r--r--mk/bsd.options.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
index 312982900ba..ac1a949f299 100644
--- a/mk/bsd.options.mk
+++ b/mk/bsd.options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.11 2004/11/28 08:00:51 jlam Exp $
+# $NetBSD: bsd.options.mk,v 1.12 2004/12/05 09:20:48 grant Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -176,6 +176,22 @@ _PKG_OPTIONS_WORDWRAP_FILTER= \
END { if (length(line) > 0) print " "line } \
'
+.if !defined(_PKG_OPTIONS_AVAILABLE)
+_PKG_OPTIONS_AVAILABLE!= ${ECHO} ${PKG_SUPPORTED_OPTIONS} | ${XARGS} -n 1 | ${SORT}
+.endif
+.if !defined(_PKG_OPTIONS_DEFAULT)
+_PKG_OPTIONS_DEFAULT!= ${ECHO} ${PKG_DEFAULT_OPTIONS} | ${XARGS} -n 1 | ${SORT}
+.endif
+.if !defined(_PKG_OPTIONS_ENABLED)
+_PKG_OPTIONS_ENABLED!= ${ECHO} ${PKG_OPTIONS} | ${XARGS} -n 1 | ${SORT}
+.endif
+
+.PHONY: show-options
+show-options:
+ @${ECHO} "available: ${_PKG_OPTIONS_AVAILABLE}"
+ @${ECHO} "default: ${_PKG_OPTIONS_DEFAULT}"
+ @${ECHO} "enabled: ${_PKG_OPTIONS_ENABLED}"
+
.PHONY: pre-install-depends supported-options-message
pre-install-depends: supported-options-message
.if !defined(PKG_SUPPORTED_OPTIONS)