diff options
author | jlam <jlam@pkgsrc.org> | 2002-08-22 19:48:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-08-22 19:48:44 +0000 |
commit | 7a1446a2d4b5e573c689fd1ded79bda81bd6baca (patch) | |
tree | b6df5db35b1a1fac431c7c571ae988b6c9f5d558 | |
parent | 688f0ce7cf7d525ce034a171c81244a04f05abdf (diff) | |
download | pkgsrc-7a1446a2d4b5e573c689fd1ded79bda81bd6baca.tar.gz |
Mirror changes in buildlink.mk to support more precisely specifying when
the system zlib routines are usable in place of zlib.
-rw-r--r-- | devel/zlib/buildlink2.mk | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/devel/zlib/buildlink2.mk b/devel/zlib/buildlink2.mk index 631a6a40161..12a62ce1549 100644 --- a/devel/zlib/buildlink2.mk +++ b/devel/zlib/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.1.2.3 2002/06/21 23:00:29 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.1.2.4 2002/08/22 19:48:44 jlam Exp $ .if !defined(ZLIB_BUILDLINK2_MK) ZLIB_BUILDLINK2_MK= # defined @@ -8,10 +8,31 @@ ZLIB_BUILDLINK2_MK= # defined BUILDLINK_DEPENDS.zlib?= zlib>=1.1.3 BUILDLINK_PKGSRCDIR.zlib?= ../../devel/zlib -.if exists(/usr/include/zlib.h) -_NEED_ZLIB= NO +.if defined(USE_ZLIB) +_NEED_ZLIB= YES .else +. if exists(/usr/include/zlib.h) +_NEED_ZLIB= NO +. else +_NEED_ZLIB= YES +. endif +# +# Solaris has a broken (for the purposes of pkgsrc) version of zlib. +# +_INCOMPAT_ZLIB= SunOS-*-* + +# +# Some NetBSD versions shipped with versions lower than 1.1.3. +# +_INCOMPAT_ZLIB+= NetBSD-0.*-* NetBSD-1.[012]*-* +_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 +. endif +. endfor .endif .if ${_NEED_ZLIB} == "YES" @@ -19,7 +40,7 @@ BUILDLINK_PACKAGES+= zlib EVAL_PREFIX+= BUILDLINK_PREFIX.zlib=zlib BUILDLINK_PREFIX.zlib_DEFAULT= ${LOCALBASE} .else -BUILDLINK_PREFIX.zlib= /usr +BUILDLINK_PREFIX.zlib= /usr .endif BUILDLINK_FILES.zlib= include/zconf.h |