From adb5c06c2eaebf3f3904b657abc0343d6efcc9f6 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sun, 14 Nov 2004 07:06:38 +0000 Subject: [PATCH] - update to 10.25 does not fix the problem generating transparent png's --- graphics/netpbm/Makefile | 5 ++++- graphics/netpbm/distinfo | 4 ++-- graphics/netpbm/files/Makefile.config.FreeBSD | 1 + .../files/patch-converter-other-infotopam.c | 12 ----------- graphics/netpbm/files/patch-lib-Makefile | 20 ++++++++++--------- 5 files changed, 18 insertions(+), 24 deletions(-) delete mode 100644 graphics/netpbm/files/patch-converter-other-infotopam.c diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index e5d9812822a2..920819a157e2 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -6,7 +6,7 @@ # PORTNAME= netpbm -PORTVERSION= 10.24 +PORTVERSION= 10.25 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -19,6 +19,7 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \ jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png \ jbig.1:${PORTSDIR}/graphics/jbigkit +# jasper.4:${PORTSDIR}/graphics/jasper USE_PERL5= yes USE_REINPLACE= yes @@ -48,6 +49,8 @@ pre-configure: s|%%LOCALBASE%%|${LOCALBASE}|g ; \ s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/pm_config.in.h @${REINPLACE_CMD} -e 's|||g' ${WRKSRC}/lib/pm.h + @${REINPLACE_CMD} -e 's| jpeg2000||g' \ + ${WRKSRC}/converter/other/Makefile @${CP} ${FILESDIR}/Makefile.config.FreeBSD ${WRKSRC}/Makefile.config @${LN} -sf ${WRKSRC}/lib/util/shhopt.h ${WRKSRC}/lib/util/pm_shhopt.h @${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo index b03c7b1900c7..ab5e98427a2e 100644 --- a/graphics/netpbm/distinfo +++ b/graphics/netpbm/distinfo @@ -1,2 +1,2 @@ -MD5 (netpbm-10.24.tgz) = 06580a8cadb6908f95733dcbd3f4e3d8 -SIZE (netpbm-10.24.tgz) = 2500156 +MD5 (netpbm-10.25.tgz) = ebdf59acdd603c5ef2829df9138b8720 +SIZE (netpbm-10.25.tgz) = 2521599 diff --git a/graphics/netpbm/files/Makefile.config.FreeBSD b/graphics/netpbm/files/Makefile.config.FreeBSD index fa7a0df46214..7d89a0d2704f 100644 --- a/graphics/netpbm/files/Makefile.config.FreeBSD +++ b/graphics/netpbm/files/Makefile.config.FreeBSD @@ -19,6 +19,7 @@ JBIGLIB = ${LOCALBASE}/lib/libjbig.so JBIGHDR_DIR = ${LOCALBASE}/include URTLIB = $(BUILDDIR)/urt/librle.a URTHDR_DIR = $(SRCDIR)/urt +JASPERHDR_DIR = ${LOCALBASE}/include LINUXSVGALIB = NONE LINUXSVGAHDR_DIR = NONE NETPBMLIBTYPE = unixshared diff --git a/graphics/netpbm/files/patch-converter-other-infotopam.c b/graphics/netpbm/files/patch-converter-other-infotopam.c deleted file mode 100644 index 3cab97b41f75..000000000000 --- a/graphics/netpbm/files/patch-converter-other-infotopam.c +++ /dev/null @@ -1,12 +0,0 @@ ---- converter/other/infotopam.c.orig Sat May 1 21:44:08 2004 -+++ converter/other/infotopam.c Thu Jul 22 19:19:16 2004 -@@ -73,7 +73,9 @@ - #include "mallocvar.h" - - #include -+#ifndef __FreeBSD__ - #include -+#endif - #include - #include - #include diff --git a/graphics/netpbm/files/patch-lib-Makefile b/graphics/netpbm/files/patch-lib-Makefile index 4a2aab34c6b9..78b7935b1bc2 100644 --- a/graphics/netpbm/files/patch-lib-Makefile +++ b/graphics/netpbm/files/patch-lib-Makefile @@ -1,6 +1,6 @@ ---- lib/Makefile.orig Thu Mar 18 19:09:21 2004 -+++ lib/Makefile Sun Apr 4 08:05:19 2004 -@@ -34,6 +34,8 @@ +--- lib/Makefile.orig Sat Oct 16 19:29:23 2004 ++++ lib/Makefile Sun Nov 14 06:55:14 2004 +@@ -35,6 +35,8 @@ # Library objects to be linked but not built by Makefile.common: LIBOBJECTS_X = util/shhopt.o util/nstring.o @@ -9,14 +9,16 @@ MANUALS3 = libnetpbm MANUALS5 = pbm pgm ppm pnm pam -@@ -74,12 +76,15 @@ +@@ -76,13 +78,17 @@ $(LIBOBJECTS): %.o: %.c $(HEADERLINKS) # Note that the user may have configured -I options into CFLAGS. -+ $(CC) -c $(INCLUDES) $(CFLAGS) $(CADD) -o $@ $< ++ $(CC) -c $(INCLUDES) -DNDEBUG $(CFLAGS) \ ++ $(CFLAGS_PERSONAL) $(CADD) -o $@ $< + +$(SHLIBOBJECTS): %.lo: %.c $(HEADERLINKS) - $(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $(CADD) -o $@ $< + $(CC) -c $(INCLUDES) -DNDEBUG $(CFLAGS) $(CFLAGS_SHLIB) \ + $(CFLAGS_PERSONAL) $(CADD) -o $@ $< MAJ = $(NETPBM_MAJOR_RELEASE) MIN = $(NETPBM_MINOR_RELEASE) @@ -26,7 +28,7 @@ ifeq ($(NETPBMLIBTYPE),irixshared) # The libxxx.so link is needed to link the executables. -@@ -104,12 +109,9 @@ +@@ -107,12 +113,9 @@ # The $(SONAME) link is needed only to test the programs without # installing the libraries (in that case, you also need to direct the # dynamic linker to the source directories, e.g. set LD_LIBRARY_PATH). @@ -42,7 +44,7 @@ endif ifeq ($(NETPBMLIBTYPE),dll) -@@ -186,13 +188,10 @@ +@@ -189,13 +192,10 @@ .PHONY: install.lib ifeq ($(NETPBMLIBTYPE),unixshared) # install a Unix-style shared library @@ -60,7 +62,7 @@ endif ifeq ($(NETPBMLIBTYPE),dll) #install a Windows DLL shared library -@@ -222,23 +221,23 @@ +@@ -225,23 +225,23 @@ # directory when you compile your programs. %_installhdr: $(PKGDIR)/include