summaryrefslogtreecommitdiff
path: root/print/hp2xx
diff options
context:
space:
mode:
Diffstat (limited to 'print/hp2xx')
-rw-r--r--print/hp2xx/Makefile4
-rw-r--r--print/hp2xx/files/patch-png.c19
2 files changed, 21 insertions, 2 deletions
diff --git a/print/hp2xx/Makefile b/print/hp2xx/Makefile
index bdeca88d63c3..cff156dca901 100644
--- a/print/hp2xx/Makefile
+++ b/print/hp2xx/Makefile
@@ -7,7 +7,7 @@
PORTNAME= hp2xx
PORTVERSION= 3.4.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= print x11
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,7 +15,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A HPGL to vector- and raster formats converter and previewer for X11
-LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
+LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
WRKSRC= ${WRKDIR}/${DISTNAME}/sources
diff --git a/print/hp2xx/files/patch-png.c b/print/hp2xx/files/patch-png.c
new file mode 100644
index 000000000000..48162b3d7dae
--- /dev/null
+++ b/print/hp2xx/files/patch-png.c
@@ -0,0 +1,19 @@
+--- png.c.orig 2003-06-21 17:31:51.000000000 +0200
++++ png.c 2012-05-06 06:59:14.000000000 +0200
+@@ -6,6 +6,7 @@
+ #include <stdlib.h>
+ #include "to_png.h"
+ #include <png.h>
++#include <zlib.h>
+
+ #define PDNCOL 256
+
+@@ -36,7 +37,7 @@
+ }
+
+ /* set up error handlimg for libpng */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return;
+ }