diff options
author | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
commit | d6bfa06973a35023677999e5c61d93db3b76aee9 (patch) | |
tree | 5e468c9c5f542e31226f7780d62182ff9f54b072 /devel/zlib | |
parent | ecc4f995c404a2f0ab096f7bf737647d47ec256f (diff) | |
download | pkgsrc-d6bfa06973a35023677999e5c61d93db3b76aee9.tar.gz |
Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables.
Diffstat (limited to 'devel/zlib')
-rw-r--r-- | devel/zlib/buildlink3.mk | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/devel/zlib/buildlink3.mk b/devel/zlib/buildlink3.mk index 0db3114fbac..5017d389e26 100644 --- a/devel/zlib/buildlink3.mk +++ b/devel/zlib/buildlink3.mk @@ -1,11 +1,12 @@ -# $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:05 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:31:31 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ ZLIB_BUILDLINK3_MK:= ${ZLIB_BUILDLINK3_MK}+ -.if !empty(ZLIB_BUILDLINK3_MK:M+) -. include "../../mk/bsd.prefs.mk" +.include "../../mk/bsd.prefs.mk" +.if !empty(ZLIB_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= zlib BUILDLINK_DEPENDS.zlib?= zlib>=1.1.4nb1 BUILDLINK_PKGSRCDIR.zlib?= ../../devel/zlib .endif # ZLIB_BUILDLINK3_MK @@ -19,15 +20,19 @@ BUILDLINK_IS_BUILTIN.zlib= YES . endif .endif +.if defined(USE_ZLIB) +BUILDLINK_USE_BUILTIN.zlib= NO +.endif + .if !empty(BUILDLINK_CHECK_BUILTIN.zlib:M[yY][eE][sS]) -_NEED_ZLIB= NO +BUILDLINK_USE_BUILTIN.zlib= YES .endif -.if !defined(_NEED_ZLIB) +.if !defined(BUILDLINK_USE_BUILTIN.zlib) . if !empty(BUILDLINK_IS_BUILTIN.zlib:M[nN][oO]) -_NEED_ZLIB= YES +BUILDLINK_USE_BUILTIN.zlib= NO . else -_NEED_ZLIB= NO +BUILDLINK_USE_BUILTIN.zlib= YES # # The listed platforms have a broken (for the purposes of pkgsrc) version # of this package. @@ -45,28 +50,17 @@ _INCOMPAT_ZLIB+= NetBSD-1.3-* NetBSD-1.3.*-* NetBSD-1.3[A-H]-* INCOMPAT_ZLIB?= # empty . for _pattern_ in ${_INCOMPAT_ZLIB} ${INCOMPAT_ZLIB} . if !empty(MACHINE_PLATFORM:M${_pattern_}) -_NEED_ZLIB= YES +BUILDLINK_USE_BUILTIN.zlib= NO . endif . endfor . endif -. if defined(USE_ZLIB) -_NEED_ZLIB= YES -. endif -MAKEFLAGS+= _NEED_ZLIB="${_NEED_ZLIB}" +MAKEFLAGS+= BUILDLINK_USE_BUILTIN.zlib="${BUILDLINK_USE_BUILTIN.zlib}" .endif -.if ${_NEED_ZLIB} == "YES" +.if !empty(BUILDLINK_USE_BUILTIN.zlib:M[nN][oO]) . if !empty(BUILDLINK_DEPTH:M+) BUILDLINK_DEPENDS+= zlib . endif .endif -.if !empty(ZLIB_BUILDLINK3_MK:M+) -. if ${_NEED_ZLIB} == "YES" -BUILDLINK_PACKAGES+= zlib -. else -BUILDLINK_PREFIX.zlib= /usr -. endif -.endif # ZLIB_BUILDLINK3_MK - BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} |