summaryrefslogtreecommitdiff
path: root/print/ghostscript8
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
commit2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch)
treec04604583d8be53b3ed7f10975be828c731f87cb /print/ghostscript8
parent- Allow for larger database UIDs (diff)
- update png to 1.5.10
Notes
Notes: svn path=/head/; revision=297915
Diffstat (limited to 'print/ghostscript8')
-rw-r--r--print/ghostscript8/Makefile6
-rw-r--r--print/ghostscript8/files/patch-base-gdevpng.c11
-rw-r--r--print/ghostscript8/files/patch-base-png_.h9
3 files changed, 23 insertions, 3 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile
index 9b80c6fa7507..91044c7cb61d 100644
--- a/print/ghostscript8/Makefile
+++ b/print/ghostscript8/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ghostscript8
PORTVERSION= 8.71
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= print
MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
@@ -27,7 +27,7 @@ LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \
jasper:${PORTSDIR}/graphics/jasper \
jbig2dec:${PORTSDIR}/graphics/jbig2dec \
jpeg:${PORTSDIR}/graphics/jpeg \
- png:${PORTSDIR}/graphics/png \
+ png15:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME:S,8,,}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
@@ -56,7 +56,7 @@ CONFIGURE_ARGS= --disable-compile-inits \
--with-drivers=""
CPPFLAGS+= -DUPD_SIGNAL=0 -I. \
-I${WRKSRC}/jasper/src/libjasper/include \
- -I${LOCALBASE}/include/libpng \
+ -I${LOCALBASE}/include/libpng15 \
-I${LOCALBASE}/include
XCFLAGS= ${PTHREAD_CFLAGS}
XLDFLAGS= ${PTHREAD_LIBS}
diff --git a/print/ghostscript8/files/patch-base-gdevpng.c b/print/ghostscript8/files/patch-base-gdevpng.c
new file mode 100644
index 000000000000..e60b57eb8ec1
--- /dev/null
+++ b/print/ghostscript8/files/patch-base-gdevpng.c
@@ -0,0 +1,11 @@
+--- base/gdevpng.c.orig 2008-07-17 04:34:01.000000000 +0200
++++ base/gdevpng.c 2012-04-27 20:19:52.000000000 +0200
+@@ -280,7 +280,7 @@
+ goto done;
+ }
+ /* set error handling */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* If we get here, we had a problem reading the file */
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
diff --git a/print/ghostscript8/files/patch-base-png_.h b/print/ghostscript8/files/patch-base-png_.h
new file mode 100644
index 000000000000..f41e1f171439
--- /dev/null
+++ b/print/ghostscript8/files/patch-base-png_.h
@@ -0,0 +1,9 @@
+--- base/png_.h.orig 2007-06-06 00:23:38.000000000 +0200
++++ base/png_.h 2012-04-27 19:31:55.000000000 +0200
+@@ -22,5 +22,6 @@
+ #else
+ #include "png.h"
+ #endif
++#include "pngpriv.h"
+
+ #endif /* png__INCLUDED */