aboutsummaryrefslogtreecommitdiff
path: root/graphics/rawstudio
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 /graphics/rawstudio
parent24315159daa0089f08acea4ba1b130fb6721ad5c (diff)
Notes
Diffstat (limited to 'graphics/rawstudio')
-rw-r--r--graphics/rawstudio/Makefile3
-rw-r--r--graphics/rawstudio/files/patch-exiv2-colorspace.cpp19
-rw-r--r--graphics/rawstudio/files/patch-output-pngfile.c10
3 files changed, 31 insertions, 1 deletions
diff --git a/graphics/rawstudio/Makefile b/graphics/rawstudio/Makefile
index 4bceac6585a4..6fa2a0b2520c 100644
--- a/graphics/rawstudio/Makefile
+++ b/graphics/rawstudio/Makefile
@@ -7,7 +7,7 @@
PORTNAME= rawstudio
PORTVERSION= 2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://rawstudio.org/files/release/
@@ -17,6 +17,7 @@ COMMENT= Open-source program to read and manipulate RAW photo images
LICENSE= GPLv2
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
+ png15:${PORTSDIR}/graphics/png \
lcms.1:${PORTSDIR}/graphics/lcms \
exiv2.10:${PORTSDIR}/graphics/exiv2 \
dbus-1.3:${PORTSDIR}/devel/dbus \
diff --git a/graphics/rawstudio/files/patch-exiv2-colorspace.cpp b/graphics/rawstudio/files/patch-exiv2-colorspace.cpp
new file mode 100644
index 000000000000..ff3002ace1e1
--- /dev/null
+++ b/graphics/rawstudio/files/patch-exiv2-colorspace.cpp
@@ -0,0 +1,19 @@
+--- plugins/load-gdk/exiv2-colorspace.cpp.orig 2011-02-23 23:35:18.000000000 +0100
++++ plugins/load-gdk/exiv2-colorspace.cpp 2012-05-12 12:15:07.000000000 +0200
+@@ -26,6 +26,7 @@
+ #include "exiv2-colorspace.h"
+ #include <math.h>
+ #include <png.h>
++#include <pngpriv.h>
+ #include <jpeglib.h>
+
+ #ifndef EXIV2_TEST_VERSION
+@@ -129,7 +130,7 @@
+ {
+ png_uint_32 retval = png_get_iCCP (png_ptr, info_ptr,
+ (png_charpp) &icc_profile_title, &compression_type,
+- (png_charpp) &icc_profile, (png_uint_32*) &icc_profile_size);
++ (png_byte**) (&icc_profile), (png_uint_32*) &icc_profile_size);
+ if (retval != 0)
+ {
+ RSIccProfile *icc = rs_icc_profile_new_from_memory((gchar*)icc_profile, icc_profile_size, TRUE);
diff --git a/graphics/rawstudio/files/patch-output-pngfile.c b/graphics/rawstudio/files/patch-output-pngfile.c
new file mode 100644
index 000000000000..267a284c53e9
--- /dev/null
+++ b/graphics/rawstudio/files/patch-output-pngfile.c
@@ -0,0 +1,10 @@
+--- plugins/output-pngfile/output-pngfile.c.orig 2011-03-26 02:52:29.000000000 +0100
++++ plugins/output-pngfile/output-pngfile.c 2012-05-12 14:23:21.000000000 +0200
+@@ -23,6 +23,7 @@
+ #include <gettext.h>
+ #include "config.h"
+ #include <png.h>
++#include <zlib.h>
+
+ #define RS_TYPE_PNGFILE (rs_pngfile_type)
+ #define RS_PNGFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RS_TYPE_PNGFILE, RSPngfile))