aboutsummaryrefslogtreecommitdiff
path: root/graphics/jasper
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-06-12 15:47:04 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-06-12 15:47:04 +0000
commiteb1485b28ebe148955d7ab1c22b1d1c4bb97c34b (patch)
tree72b4e3ba27e7825fc650d4d844bc617c8320e5d5 /graphics/jasper
parent5e29b1b922bad5ec1a6ad1007bacc96ed99b68e3 (diff)
downloadports-eb1485b28ebe148955d7ab1c22b1d1c4bb97c34b.tar.gz
ports-eb1485b28ebe148955d7ab1c22b1d1c4bb97c34b.zip
Notes
Diffstat (limited to 'graphics/jasper')
-rw-r--r--graphics/jasper/Makefile3
-rw-r--r--graphics/jasper/files/patch-src-libjasper-base-jas_stream.c19
2 files changed, 21 insertions, 1 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile
index 7982c6268b4e..7add389bd3ec 100644
--- a/graphics/jasper/Makefile
+++ b/graphics/jasper/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jasper
PORTVERSION= 1.900.1
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \
${MASTER_SITE_IMAGEMAGICK}
@@ -15,7 +16,7 @@ MASTER_SITE_SUBDIR= ImageMagick/delegates
MAINTAINER= ports@FreeBSD.org
COMMENT= An implementation of the codec specified in the JPEG-2000 standard
-LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
USE_AUTOTOOLS= libtool:15
USE_ZIP= yes
diff --git a/graphics/jasper/files/patch-src-libjasper-base-jas_stream.c b/graphics/jasper/files/patch-src-libjasper-base-jas_stream.c
new file mode 100644
index 000000000000..83bc7ca2acce
--- /dev/null
+++ b/graphics/jasper/files/patch-src-libjasper-base-jas_stream.c
@@ -0,0 +1,19 @@
+--- src/libjasper/base/jas_stream.c Fri Jan 19 16:43:05 2007
++++ src/libjasper/base/jas_stream.c Tue Jun 12 10:26:02 2007
+@@ -362,13 +362,12 @@
+ obj->fd = -1;
+ obj->flags = 0;
+- obj->pathname[0] = '\0';
++ snprintf(obj->pathname, sizeof(obj->pathname), "/tmp/jasper.XXXXXX");
+ stream->obj_ = obj;
+
+ /* Choose a file name. */
+- tmpnam(obj->pathname);
++ obj->fd = mkstemp(obj->pathname);
+
+ /* Open the underlying file. */
+- if ((obj->fd = open(obj->pathname, O_CREAT | O_EXCL | O_RDWR | O_TRUNC | O_BINARY,
+- JAS_STREAM_PERMS)) < 0) {
++ if (obj->fd < 0) {
+ jas_stream_destroy(stream);
+ return 0;