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 | a0cec7cb5971e93c4e376a82ecb5a8eef1e1a73a (patch) | |
tree | 76be9485f9ed586fd71bf11186183229937e79c1 /devel/readline/buildlink3.mk | |
parent | 83a20f54336c6b915b4b11adcb7c213545e7ec94 (diff) | |
download | pkgsrc-a0cec7cb5971e93c4e376a82ecb5a8eef1e1a73a.tar.gz |
Check variable values for "no" as well as "NO". Also sprinkle some
double quotes.
Diffstat (limited to 'devel/readline/buildlink3.mk')
-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 |