diff options
Diffstat (limited to 'devel/zlib/buildlink.mk')
-rw-r--r-- | devel/zlib/buildlink.mk | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/devel/zlib/buildlink.mk b/devel/zlib/buildlink.mk index 60aa9b2b022..49f55011b4b 100644 --- a/devel/zlib/buildlink.mk +++ b/devel/zlib/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.7 2001/07/27 13:33:26 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.8 2002/08/07 06:10:34 jlam Exp $ # # This Makefile fragment is included by packages that use zlib. # @@ -19,10 +19,24 @@ ZLIB_BUILDLINK_MK= # defined BUILDLINK_DEPENDS.zlib?= zlib>=1.1.3 -.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-*-* +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" |