summaryrefslogtreecommitdiff
path: root/devel/zlib
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1999-09-20 23:23:57 +0000
committerkim <kim@pkgsrc.org>1999-09-20 23:23:57 +0000
commit3426b02198e1c0741e10bc24921db80a3e5df898 (patch)
tree986c72d578072b998c616ea532aad6cf90f0dce0 /devel/zlib
parent05ea3dcf601b6e36c376fb68db76fb20ab25db97 (diff)
downloadpkgsrc-3426b02198e1c0741e10bc24921db80a3e5df898.tar.gz
Well, today this procedure works better...
Diffstat (limited to 'devel/zlib')
-rw-r--r--devel/zlib/Makefile14
-rw-r--r--devel/zlib/files/patch-sum3
-rw-r--r--devel/zlib/patches/patch-aa12
3 files changed, 5 insertions, 24 deletions
diff --git a/devel/zlib/Makefile b/devel/zlib/Makefile
index 842b686faae..0fc9b82284d 100644
--- a/devel/zlib/Makefile
+++ b/devel/zlib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 1999/09/19 21:53:29 kim Exp $
+# $NetBSD: Makefile,v 1.2 1999/09/20 23:23:57 kim Exp $
#
DISTNAME= zlib-1.1.3
@@ -13,16 +13,12 @@ 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
+CFLAGS= -fPIC -O3
+
post-extract:
@cd ${WRKDIR} && ${MKDIR} static && ${PAX} -rw ${DISTNAME} static
@@ -30,11 +26,11 @@ post-patch:
@${MAKE} do-patch WRKSRC=${WRKDIR}/static/${DISTNAME}
post-configure:
- @${MAKE} do-configure WRKSRC=${WRKDIR}/static/${DISTNAME} \
+ @${MAKE} do-configure WRKSRC=${WRKDIR}/static/${DISTNAME} CFLAGS=-O3 \
CONFIGURE_ARGS="`${ECHO} ${CONFIGURE_ARGS} | ${SED} -e 's/--shared//'`"
post-build:
- @${MAKE} do-build WRKSRC=${WRKDIR}/static/${DISTNAME}
+ @${MAKE} do-build WRKSRC=${WRKDIR}/static/${DISTNAME} CFLAGS=-O3
post-install:
${INSTALL_DATA} ${WRKDIR}/static/${DISTNAME}/libz.a ${PREFIX}/lib
diff --git a/devel/zlib/files/patch-sum b/devel/zlib/files/patch-sum
deleted file mode 100644
index 102e2d821a9..00000000000
--- a/devel/zlib/files/patch-sum
+++ /dev/null
@@ -1,3 +0,0 @@
-$NetBSD: patch-sum,v 1.1.1.1 1999/09/19 21:53:29 kim Exp $
-
-MD5 (patch-aa) = 141a62f0ffe8b9a5f1a0a7276e654560
diff --git a/devel/zlib/patches/patch-aa b/devel/zlib/patches/patch-aa
deleted file mode 100644
index 4c85cef4366..00000000000
--- a/devel/zlib/patches/patch-aa
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/09/19 21:53:29 kim Exp $
-
---- configure.orig Wed Jul 8 14:19:35 1998
-+++ configure Sun Sep 19 17:45:48 1999
-@@ -73,6 +73,7 @@
- CFLAGS="$cflags"
- case `(uname -s || echo unknown) 2>/dev/null` in
- Linux | linux) LDSHARED=${LDSHARED-"gcc -shared -Wl,-soname,libz.so.1"};;
-+ SunOS\ 5*) LDSHARED=${LDSHARED-"gcc -G -Wl,-soname,libz.so.1"};;
- *) LDSHARED=${LDSHARED-"gcc -shared"};;
- esac
- else