diff options
author | jlam <jlam> | 2004-01-05 09:44:44 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-05 09:44:44 +0000 |
commit | 1afdc0ce4cb88b86aaa539645f85aaa0ec7b8184 (patch) | |
tree | 76be9485f9ed586fd71bf11186183229937e79c1 /devel | |
parent | 77aab3d5409029e4254a3f16034069af81f73dcd (diff) | |
download | pkgsrc-1afdc0ce4cb88b86aaa539645f85aaa0ec7b8184.tar.gz |
Check variable values for "no" as well as "NO". Also sprinkle some
double quotes.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/readline/buildlink3.mk | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/devel/readline/buildlink3.mk b/devel/readline/buildlink3.mk index df16ec60433..3f64661f67a 100644 --- a/devel/readline/buildlink3.mk +++ b/devel/readline/buildlink3.mk @@ -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 @@ MAKEFLAGS+= \ 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 |