diff options
author | wiz <wiz> | 2006-04-16 23:19:15 +0000 |
---|---|---|
committer | wiz <wiz> | 2006-04-16 23:19:15 +0000 |
commit | 320c1f8f4011892730c3b36e5fe7d9b7e7abda1b (patch) | |
tree | 34bfb180bedd5a6d67ad399da1bc00ab4e6c6617 /graphics/png/patches/patch-aa | |
parent | 1f6cbe9ecc65d7680c2d6fbb15f38b7e4b5b7cf0 (diff) | |
download | pkgsrc-320c1f8f4011892730c3b36e5fe7d9b7e7abda1b.tar.gz |
Update to 1.2.9nb1:
. pngconf.h included "config.h" if HAVE_CONFIG_H is defined -- really not
a good idea, patch it out. broke at least libwmf, reported by veego@
. install some libpng12 files -- IIUC, libpng12* is the future and
libpng* is becoming obsolete -- at least according to the wishes of
the authors. Don't follow this completely yet, but still patch the
pkg-config file to link against -lpng instead of -lpng12, which
would require a recursive PKGREVISION bump. We should probably do this
at some future time.
. switch pkgconfig file to look for headers in include/libpng12 -- the
headers still exist in include/ for backwards compatibility.
. switch to using GNU_CONFIGURE and the included libtool handling instead
of patching in our own into a Makefile. Gets rid of patches and pkgsrc
Makefile code.
Diffstat (limited to 'graphics/png/patches/patch-aa')
-rw-r--r-- | graphics/png/patches/patch-aa | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/graphics/png/patches/patch-aa b/graphics/png/patches/patch-aa deleted file mode 100644 index 3b960523098..00000000000 --- a/graphics/png/patches/patch-aa +++ /dev/null @@ -1,71 +0,0 @@ -$NetBSD: patch-aa,v 1.23 2006/04/16 19:39:46 wiz Exp $ - ---- scripts/makefile.std.orig 2006-03-06 17:06:28.000000000 +0000 -+++ scripts/makefile.std -@@ -4,7 +4,7 @@ - # For conditions of distribution and use, see copyright notice in png.h - - # where make install puts libpng.a and png.h --prefix=/usr/local -+prefix=${PREFIX} - INCPATH=$(prefix)/include - LIBPATH=$(prefix)/lib - -@@ -24,45 +24,34 @@ DESTDIR= - ZLIBLIB=../zlib - ZLIBINC=../zlib - --CC=cc -+CC=${LIBTOOL} --mode=compile ${REALCC} - AR_RC=ar rc - MKDIR_P=mkdir - LN_SF=ln -sf - RANLIB=ranlib - RM_F=rm -f - --CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5 --LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm -+#CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5 -+#LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm - - OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ - pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ - pngwtran.o pngmem.o pngerror.o pngpread.o - --all: libpng.a pngtest -+all: libpng.la pngtest - --libpng.a: $(OBJS) -- $(AR_RC) $@ $(OBJS) -- $(RANLIB) $@ -- --pngtest: pngtest.o libpng.a -- $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) -+libpng.la: $(OBJS) -+ ${LIBTOOL} --mode=link $(REALCC) -o $@ ${OBJS:.o=.lo} -rpath $(LIBPATH) ${LDFLAGS} -lz -lm -version-info ${LIBPNG_SO_MAJOR}:${LIBPNG_SO_MINOR} -+ -+pngtest: pngtest.o libpng.la -+ ${LIBTOOL} --mode=link $(REALCC) -o pngtest $(CFLAGS) pngtest.o ${LDFLAGS} libpng.la -lz -lm - - test: pngtest - ./pngtest - --install: libpng.a -- -@$(MKDIR_P) $(DESTDIR)$(INCPATH) -- -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng -- -@$(MKDIR_P) $(DESTDIR)$(LIBPATH) -- -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h -- -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h -- cp png.h $(DESTDIR)$(INCPATH)/libpng -- cp pngconf.h $(DESTDIR)$(INCPATH)/libpng -- chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h -- chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h -- (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) -- cp libpng.a $(DESTDIR)$(LIBPATH) -- chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a -+install: libpng.la -+ ${BSD_INSTALL_DATA} png.h pngconf.h $(INCPATH) -+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libpng.la $(LIBPATH) - - clean: - $(RM_F) *.o libpng.a pngtest pngout.png |