pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Add PKG_DISABLED_OPTIONS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/417768558527
branches:  trunk
changeset: 355431:417768558527
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Dec 01 15:28:57 2016 +0000

description:
Add PKG_DISABLED_OPTIONS.

This variable contains the options that are NOT enabled for a package.

diffstat:

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

diffs (48 lines):

diff -r 776eb7be53f6 -r 417768558527 mk/bsd.options.mk
--- a/mk/bsd.options.mk Thu Dec 01 15:19:20 2016 +0000
+++ b/mk/bsd.options.mk Thu Dec 01 15:28:57 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.72 2016/03/23 11:50:01 jperkin Exp $
+# $NetBSD: bsd.options.mk,v 1.73 2016/12/01 15:28:57 wiz Exp $
 #
 # This Makefile fragment provides boilerplate code for standard naming
 # conventions for handling per-package build options.
@@ -85,6 +85,10 @@
 #              This is the list of the selected build options, properly
 #              filtered to remove unsupported and duplicate options.
 #
+#      PKG_DISABLED_OPTIONS
+#              This is the list of the disabled build options; this is
+#               the complement of PKG_OPTIONS.
+#
 
 .if !defined(BSD_OPTIONS_MK)
 BSD_OPTIONS_MK=                # defined
@@ -158,6 +162,7 @@
        PKG_OPTIONS_NONEMPTY_SETS PKG_SUGGESTED_OPTIONS                 \
        PKG_OPTIONS_LEGACY_VARS PKG_OPTIONS_LEGACY_OPTS                 \
        PKG_LEGACY_OPTIONS PKG_OPTIONS_DEPRECATED_WARNINGS
+_PKG_VARS.options+=    PKG_DISABLED_OPTIONS
 _SYS_VARS.options=     PKG_OPTIONS
 
 .include "bsd.prefs.mk"
@@ -216,6 +221,8 @@
 .  endfor
 .endfor
 
+PKG_DISABLED_OPTIONS:= ${PKG_SUPPORTED_OPTIONS:O:u}
+
 #
 # include deprecated variable to options mapping
 #
@@ -360,6 +367,10 @@
 .undef _OPTIONS_DEFAULT_SUPPORTED
 PKG_OPTIONS:=  ${PKG_OPTIONS:O:u}
 
+.for _opt_ in ${PKG_OPTIONS}
+PKG_DISABLED_OPTIONS:= ${PKG_DISABLED_OPTIONS:N${_opt_}}
+.endfor
+
 _PKG_OPTIONS_WORDWRAP_FILTER=                                          \
        ${XARGS} -n 1 |                                                 \
        ${AWK} '                                                        \



Home | Main Index | Thread Index | Old Index