pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk I usually have the following stuffed in a mk.conf t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b793737cf63
branches:  trunk
changeset: 513792:1b793737cf63
user:      seb <seb%pkgsrc.org@localhost>
date:      Sat Jun 03 08:44:46 2006 +0000

description:
I usually have the following stuffed in a mk.conf target or a script
and that is 3 make process to run...
make show-options; v=$(make show-var VARNAME=PKG_OPTIONS_VAR); echo $v=$(make sh
ow-var VARNAME=$v)

Hence add trailing part about PKG_OPTIONS_VAR and its value to
show-options target like the one found in supported-options-message target.

diffstat:

 mk/bsd.options.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r d0ab2479d953 -r 1b793737cf63 mk/bsd.options.mk
--- a/mk/bsd.options.mk Sat Jun 03 08:06:56 2006 +0000
+++ b/mk/bsd.options.mk Sat Jun 03 08:44:46 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.53 2006/05/31 18:54:32 ghen Exp $
+# $NetBSD: bsd.options.mk,v 1.54 2006/06/03 08:44:46 seb Exp $
 #
 # This Makefile fragment provides boilerplate code for standard naming
 # conventions for handling per-package build options.
@@ -374,6 +374,15 @@
        @${ECHO} ""
        @${ECHO} "These options are currently enabled:"
        @${ECHO} ${PKG_OPTIONS:O:Q} | ${_PKG_OPTIONS_WORDWRAP_FILTER}
+       @${ECHO} ""
+       @${ECHO} "You can select which build options to use by setting PKG_DEFAULT_OPTIONS"
+       @${ECHO} "or the following variable.  Its current value is shown:"
+       @${ECHO} ""
+.    if !defined(${PKG_OPTIONS_VAR})
+       @${ECHO} "      ${PKG_OPTIONS_VAR} (not defined)"
+.    else
+       @${ECHO} "      ${PKG_OPTIONS_VAR} = ${${PKG_OPTIONS_VAR}}"
+.    endif
 .    if defined(PKG_OPTIONS_DEPRECATED_WARNINGS)
        @${ECHO}
        @for l in ${PKG_OPTIONS_DEPRECATED_WARNINGS}; \



Home | Main Index | Thread Index | Old Index