summaryrefslogtreecommitdiff
path: root/graphics/png/patches/patch-aa
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-28 02:41:54 +0000
committerjlam <jlam@pkgsrc.org>2001-05-28 02:41:54 +0000
commitd0fb8a773f6da54a74293edb36312477c900e241 (patch)
treee6f281a912df125dfe6d8ccb80ca86cb4449ba5b /graphics/png/patches/patch-aa
parentfb945676796b4f358eb21e669c0cb6d429fbc3a5 (diff)
downloadpkgsrc-d0fb8a773f6da54a74293edb36312477c900e241.tar.gz
png depends on zlib, so add dependency on zlib for those platforms without
in the base system. Make sure that libz.so is found during the build.
Diffstat (limited to 'graphics/png/patches/patch-aa')
-rw-r--r--graphics/png/patches/patch-aa12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/png/patches/patch-aa b/graphics/png/patches/patch-aa
index f837f4df3fd..47e4bae1cab 100644
--- a/graphics/png/patches/patch-aa
+++ b/graphics/png/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.15 2001/05/21 21:39:14 wiz Exp $
+$NetBSD: patch-aa,v 1.16 2001/05/28 02:41:55 jlam Exp $
---- scripts/makefile.std.orig Wed Dec 8 18:44:40 1999
-+++ scripts/makefile.std
+--- scripts/makefile.std.orig Fri Jan 5 19:25:50 2001
++++ scripts/makefile.std Sun May 27 22:36:02 2001
@@ -3,7 +3,7 @@
# For conditions of distribution and use, see copyright notice in png.h
@@ -20,7 +20,7 @@ $NetBSD: patch-aa,v 1.15 2001/05/21 21:39:14 wiz Exp $
-LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+CC=${LIBTOOL} --mode=compile $(REALCC)
+#CFLAGS+=-O # -g -DPNG_DEBUG=5
-+LDFLAGS=libpng.la -lz -lm
++#LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
#RANLIB=echo
RANLIB=ranlib
@@ -35,12 +35,12 @@ $NetBSD: patch-aa,v 1.15 2001/05/21 21:39:14 wiz Exp $
- ar rc $@ $(OBJS)
- $(RANLIB) $@
+libpng.la: $(OBJS)
-+ ${LIBTOOL} --mode=link $(REALCC) -o $@ ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -lz -lm -version-info 2:0
++ ${LIBTOOL} --mode=link $(REALCC) -o $@ ${OBJS:.o=.lo} -rpath ${PREFIX}/lib ${LDFLAGS} -lz -lm -version-info 2:0
-pngtest: pngtest.o libpng.a
- $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+pngtest: pngtest.o libpng.la
-+ ${LIBTOOL} --mode=link $(REALCC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
++ ${LIBTOOL} --mode=link $(REALCC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) libpng.la -lz -lm
test: pngtest
./pngtest