summaryrefslogtreecommitdiff
path: root/devel/zlib
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-03 23:06:43 +0000
committerjlam <jlam>2004-01-03 23:06:43 +0000
commite3578cbfe7f857710b0beeee7bba0115d8dd17da (patch)
tree7815453a8a5d5cc91288c15c8c52893726b1e2bc /devel/zlib
parent7ba01a2b521402b9cbdd5f2dadd033eb97da0288 (diff)
downloadpkgsrc-e3578cbfe7f857710b0beeee7bba0115d8dd17da.tar.gz
Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
Diffstat (limited to 'devel/zlib')
-rw-r--r--devel/zlib/buildlink3.mk72
1 files changed, 72 insertions, 0 deletions
diff --git a/devel/zlib/buildlink3.mk b/devel/zlib/buildlink3.mk
new file mode 100644
index 00000000000..195bdfb1687
--- /dev/null
+++ b/devel/zlib/buildlink3.mk
@@ -0,0 +1,72 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:44 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+ZLIB_BUILDLINK3_MK:= ${ZLIB_BUILDLINK3_MK}+
+
+.if !empty(ZLIB_BUILDLINK3_MK:M\+)
+. include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_DEPENDS.zlib?= zlib>=1.1.4nb1
+BUILDLINK_PKGSRCDIR.zlib?= ../../devel/zlib
+.endif # ZLIB_BUILDLINK3_MK
+
+BUILDLINK_CHECK_BUILTIN.zlib?= NO
+
+.if !defined(BUILDLINK_IS_BUILTIN.zlib)
+BUILDLINK_IS_BUILTIN.zlib= NO
+. if exists(/usr/include/zlib.h)
+BUILDLINK_IS_BUILTIN.zlib= YES
+. endif
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.zlib:M[yY][eE][sS])
+_NEED_ZLIB= NO
+.endif
+
+.if !defined(_NEED_ZLIB)
+. if !empty(BUILDLINK_IS_BUILTIN.zlib:M[nN][oO])
+_NEED_ZLIB= YES
+. else
+_NEED_ZLIB= NO
+#
+# The listed platforms have a broken (for the purposes of pkgsrc) version
+# of this package.
+#
+_INCOMPAT_ZLIB= SunOS-*-*
+_INCOMPAT_ZLIB+= IRIX-*-*
+_INCOMPAT_ZLIB+= Darwin-*-*
+_INCOMPAT_ZLIB+= Linux-*-*
+#
+# Some NetBSD versions shipped with zlib 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 defined(USE_ZLIB)
+_NEED_ZLIB= YES
+. endif
+MAKEFLAGS+= _NEED_ZLIB="${_NEED_ZLIB}"
+.endif
+
+.if ${_NEED_ZLIB} == "YES"
+. 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/\+$//}