summaryrefslogtreecommitdiff
path: root/devel/zlib/Makefile
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1999-09-19 21:53:29 +0000
committerkim <kim@pkgsrc.org>1999-09-19 21:53:29 +0000
commit0c99ebb04162849c52a11ff41381e584081bae7d (patch)
treed14deaf70a9b62eff8f9be8872c9509976a3d1da /devel/zlib/Makefile
parent0dd669b887d1aae7c547255796f26b132a870773 (diff)
downloadpkgsrc-0c99ebb04162849c52a11ff41381e584081bae7d.tar.gz
A general purpose data compression library (for Solaris use).
Diffstat (limited to 'devel/zlib/Makefile')
-rw-r--r--devel/zlib/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/devel/zlib/Makefile b/devel/zlib/Makefile
new file mode 100644
index 00000000000..842b686faae
--- /dev/null
+++ b/devel/zlib/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/09/19 21:53:29 kim Exp $
+#
+
+DISTNAME= zlib-1.1.3
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.cdrom.com/pub/infozip/zlib/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.cdrom.com/pub/infozip/zlib/
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} --shared
+
+.include "../../mk/bsd.prefs.mk"
+
+#.if ${OPSYS} == "SunOS"
+#.if !make(fake-pkg)
+#CC= cc
+#.endif
+#.endif
+
+.if exists(/usr/lib/libz.a)
+IGNORE= "is part of your NetBSD distribution"
+.endif
+
+post-extract:
+ @cd ${WRKDIR} && ${MKDIR} static && ${PAX} -rw ${DISTNAME} static
+
+post-patch:
+ @${MAKE} do-patch WRKSRC=${WRKDIR}/static/${DISTNAME}
+
+post-configure:
+ @${MAKE} do-configure WRKSRC=${WRKDIR}/static/${DISTNAME} \
+ CONFIGURE_ARGS="`${ECHO} ${CONFIGURE_ARGS} | ${SED} -e 's/--shared//'`"
+
+post-build:
+ @${MAKE} do-build WRKSRC=${WRKDIR}/static/${DISTNAME}
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/static/${DISTNAME}/libz.a ${PREFIX}/lib
+ cd ${PREFIX}/lib && ranlib libz.a
+
+.include "../../mk/bsd.pkg.mk"