summaryrefslogtreecommitdiff
path: root/math/grace
diff options
context:
space:
mode:
Diffstat (limited to 'math/grace')
-rw-r--r--math/grace/Makefile4
-rw-r--r--math/grace/files/patch-src-rstdrv.c19
2 files changed, 21 insertions, 2 deletions
diff --git a/math/grace/Makefile b/math/grace/Makefile
index 27bba392a14a..737a7995bd21 100644
--- a/math/grace/Makefile
+++ b/math/grace/Makefile
@@ -7,7 +7,7 @@
PORTNAME= grace
PORTVERSION= 5.1.22
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= math print
#
MASTER_SITES= ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \
@@ -22,7 +22,7 @@ COMMENT= A powerful plotting tool (successor of xmgr)
LIB_DEPENDS= t1:${PORTSDIR}/devel/t1lib \
jpeg.11:${PORTSDIR}/graphics/jpeg \
- png.6:${PORTSDIR}/graphics/png \
+ png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
fftw.2:${PORTSDIR}/math/fftw \
pdf.6:${PORTSDIR}/print/pdflib \
diff --git a/math/grace/files/patch-src-rstdrv.c b/math/grace/files/patch-src-rstdrv.c
new file mode 100644
index 000000000000..c48c18824399
--- /dev/null
+++ b/math/grace/files/patch-src-rstdrv.c
@@ -0,0 +1,19 @@
+--- src/rstdrv.c.orig 2004-07-03 22:47:46.000000000 +0200
++++ src/rstdrv.c 2012-04-27 20:54:10.000000000 +0200
+@@ -54,6 +54,7 @@
+
+ #ifdef HAVE_LIBPNG
+ # include <png.h>
++# include <zlib.h>
+ #endif
+
+ #ifndef NONE_GUI
+@@ -885,7 +886,7 @@
+ return;
+ }
+
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return;
+ }