diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-05 09:44:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-05 09:44:44 +0000 |
commit | d211e641ce6a16c852347e7870c11c4952429379 (patch) | |
tree | 76be9485f9ed586fd71bf11186183229937e79c1 /devel | |
parent | c1cf78018109ae656155d9c1e8a4a8352e3d0be4 (diff) | |
download | pkgsrc-d211e641ce6a16c852347e7870c11c4952429379.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 |