summaryrefslogtreecommitdiff
path: root/devel/zlib/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-02-03 06:42:17 +0000
committerhubertf <hubertf@pkgsrc.org>2001-02-03 06:42:17 +0000
commit0a11d404e3da0c79f90e76672a6bcef8932ed469 (patch)
tree54af85699ede0e21b01011e878e50ae50e5f665a /devel/zlib/Makefile
parent5eb6965be4f1974b9441056671ebea34b089d4f5 (diff)
downloadpkgsrc-0a11d404e3da0c79f90e76672a6bcef8932ed469.tar.gz
``Why drink and drive when you can smoke and fly''
(Use libtool to build this if it's installed; does not require port of NetBSD's share/mk for bootstrapping; old BSD-mk based build is still available as fallback if no libtool is found)
Diffstat (limited to 'devel/zlib/Makefile')
-rw-r--r--devel/zlib/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/devel/zlib/Makefile b/devel/zlib/Makefile
index d497b9edd50..b7838ad657f 100644
--- a/devel/zlib/Makefile
+++ b/devel/zlib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2001/01/21 20:42:17 tron Exp $
+# $NetBSD: Makefile,v 1.6 2001/02/03 06:42:17 hubertf Exp $
DISTNAME= zlib-1.1.3
CATEGORIES= devel
@@ -9,9 +9,23 @@ HOMEPAGE= ftp://ftp.freesoftware.com/pub/infozip/zlib/index.html
ONLY_FOR_PLATFORM= SunOS-*-* # in base NetBSD system
+.include "../../mk/bsd.prefs.mk"
+.if exists(${LOCALBASE}/bin/libtool)
+USE_LIBTOOL= yes
+MAKEFILE= lt.mk
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+
+post-extract:
+ ${CP} ${FILESDIR}/lt.mk ${WRKSRC}
+ ${SED} \
+ -e '/libz_pic.a/d' \
+ -e '/libz_p.a/d' \
+ <${PKGDIR}/PLIST >${PLIST_SRC}
+
+.else
MAKEFILE= bsd.mk
-MAKE_ENV+= NOLINT=yes
+.endif
-INSTALL_TARGET= install includes
+MAKE_ENV+= NOLINT=yes
.include "../../mk/bsd.pkg.mk"