pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/readline Check variable values for "no" as well ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/92787f0f0e12
branches: trunk
changeset: 465723:92787f0f0e12
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Jan 05 09:44:44 2004 +0000
description:
Check variable values for "no" as well as "NO". Also sprinkle some
double quotes.
diffstat:
devel/readline/buildlink3.mk | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (49 lines):
diff -r 146dd53dc960 -r 92787f0f0e12 devel/readline/buildlink3.mk
--- a/devel/readline/buildlink3.mk Mon Jan 05 09:37:05 2004 +0000
+++ b/devel/readline/buildlink3.mk Mon Jan 05 09:44:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:05 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:44:44 jlam Exp $
#
# Optionally define USE_GNU_READLINE to force use of GNU readline.
#
@@ -8,8 +8,9 @@
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
READLINE_BUILDLINK3_MK:= ${READLINE_BUILDLINK3_MK}+
+.include "../../mk/bsd.prefs.mk"
+
.if !empty(READLINE_BUILDLINK3_MK:M+)
-. include "../../mk/bsd.prefs.mk"
BUILDLINK_PACKAGES+= readline
BUILDLINK_DEPENDS.readline?= readline>=2.2
BUILDLINK_PKGSRCDIR.readline?= ../../devel/readline
@@ -54,23 +55,22 @@
BUILDLINK_USE_BUILTIN.readline="${BUILDLINK_USE_BUILTIN.readline}"
.endif
-.if ${BUILDLINK_USE_BUILTIN.readline} == "NO"
+.if !empty(BUILDLINK_USE_BUILTIN.readline:M[nN][oO])
. if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= readline
. endif
.endif
.if !empty(READLINE_BUILDLINK3_MK:M+)
-. if ${BUILDLINK_USE_BUILTIN.readline} == "YES"
-BUILDLINK_PREFIX.readline= /usr
+. if !empty(BUILDLINK_USE_BUILTIN.readline:M[yY][eE][sS])
. if !defined(_BLNK_LIBEDIT_FOUND)
_BLNK_LIBEDIT_FOUND!= \
if [ "`${ECHO} /usr/lib/libedit.*`" = "/usr/lib/libedit.*" ]; then \
- ${ECHO} NO; \
+ ${ECHO} "NO"; \
else \
- ${ECHO} YES; \
+ ${ECHO} "YES"; \
fi
-MAKEFLAGS+= _BLNK_LIBEDIT_FOUND=${_BLNK_LIBEDIT_FOUND}
+MAKEFLAGS+= _BLNK_LIBEDIT_FOUND="${_BLNK_LIBEDIT_FOUND}"
. endif
. if ${_BLNK_LIBEDIT_FOUND} == "YES"
BUILDLINK_TRANSFORM+= l:history:edit
Home |
Main Index |
Thread Index |
Old Index