pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/features Added an empty default definition for USE_...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0536e71263f4
branches: trunk
changeset: 535512:0536e71263f4
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Nov 20 17:19:59 2007 +0000
description:
Added an empty default definition for USE_FEATURES, which makes the
remaining code shorter.
diffstat:
mk/features/features-vars.mk | 21 +++++++++++----------
mk/features/features.mk | 4 ++--
2 files changed, 13 insertions(+), 12 deletions(-)
diffs (114 lines):
diff -r 9dfff0ea2d9b -r 0536e71263f4 mk/features/features-vars.mk
--- a/mk/features/features-vars.mk Tue Nov 20 13:31:54 2007 +0000
+++ b/mk/features/features-vars.mk Tue Nov 20 17:19:59 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: features-vars.mk,v 1.10 2007/11/06 22:48:15 rillig Exp $
+# $NetBSD: features-vars.mk,v 1.11 2007/11/20 17:19:59 rillig Exp $
#
# The platforms that are supported by pkgsrc differ in the amount of
# functions they provide in the C library (libc). Functions that are
@@ -64,6 +64,7 @@
_SYS_VARS.features= MISSING_FEATURES
MISSING_FEATURES= # empty
+USE_FEATURES?= # none
#
# Handle "inet6" feature specially -- we always add it to
@@ -76,7 +77,7 @@
.endif
.for _feature_ in err warn
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if (${OPSYS} != NetBSD) && (${OPSYS} != FreeBSD) && (${OPSYS} != DragonFly)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -84,7 +85,7 @@
.endfor
.for _feature_ in fts_close fts_open fts_read fts_set
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/fts.h)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -92,7 +93,7 @@
.endfor
.for _feature_ in getopt_long
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/getopt.h)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -100,7 +101,7 @@
.endfor
.for _feature_ in getprogname setprogname
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if (${OPSYS} != NetBSD) && (${OPSYS} != FreeBSD) && (${OPSYS} != DragonFly)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -108,7 +109,7 @@
.endfor
.for _feature_ in glob
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/glob.h)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -116,7 +117,7 @@
.endfor
.for _feature_ in regcomp
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if !exists(/usr/include/regex.h)
MISSING_FEATURES+= ${_feature_}
. endif
@@ -124,7 +125,7 @@
.endfor
.for _feature_ in snprintf vsnprintf
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if ${OPSYS} == "IRIX"
MISSING_FEATURES+= ${_feature_}
. endif
@@ -132,13 +133,13 @@
.endfor
.for _feature_ in utimes
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:M${_feature_})
+. if !empty(USE_FEATURES:M${_feature_})
. if ${OPSYS} == "Interix"
MISSING_FEATURES+= ${_feature_}
. endif
. endif
.endfor
-.if defined(USE_FEATURES) && !empty(USE_FEATURES:Mnbcompat)
+.if !empty(USE_FEATURES:Mnbcompat)
MISSING_FEATURES+= nbcompat
.endif
diff -r 9dfff0ea2d9b -r 0536e71263f4 mk/features/features.mk
--- a/mk/features/features.mk Tue Nov 20 13:31:54 2007 +0000
+++ b/mk/features/features.mk Tue Nov 20 17:19:59 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: features.mk,v 1.3 2007/09/08 05:06:40 jlam Exp $
+# $NetBSD: features.mk,v 1.4 2007/11/20 17:19:59 rillig Exp $
#
# This file is included by bsd.pkg.mk.
#
@@ -19,7 +19,7 @@
# so check that it appears in both before failing the package
# build.
#
-. if defined(USE_FEATURES) && !empty(USE_FEATURES:Minet6)
+. if !empty(USE_FEATURES:Minet6)
. if !empty(MISSING_FEATURES:Minet6)
PKG_FAIL_REASON+= "${PKGNAME} requires IPv6 support"
. endif
Home |
Main Index |
Thread Index |
Old Index