pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk add show-options target which displays the options ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/91ee26b1148b
branches: trunk
changeset: 485208:91ee26b1148b
user: grant <grant%pkgsrc.org@localhost>
date: Sun Dec 05 09:20:48 2004 +0000
description:
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:
mk/bsd.options.mk | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r ba8c87fef419 -r 91ee26b1148b mk/bsd.options.mk
--- a/mk/bsd.options.mk Sun Dec 05 09:05:30 2004 +0000
+++ b/mk/bsd.options.mk Sun Dec 05 09:20:48 2004 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index