From 67bd2304e516545f2b203f975ac5dd30d2b479b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 26 Dec 2016 23:06:11 +0100 Subject: [PATCH] - fix building with ImageMagick 7 - rel 7 --- imagemagick7.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pfstools.spec | 4 +++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 imagemagick7.patch diff --git a/imagemagick7.patch b/imagemagick7.patch new file mode 100644 index 0000000..6010438 --- /dev/null +++ b/imagemagick7.patch @@ -0,0 +1,46 @@ +diff -ur pfstools-2.0.4/src/fileformat/pfsinimgmagick.cpp pfstools-2.0.4-im7/src/fileformat/pfsinimgmagick.cpp +--- pfstools-2.0.4/src/fileformat/pfsinimgmagick.cpp 2015-07-15 11:58:19.000000000 +0200 ++++ pfstools-2.0.4-im7/src/fileformat/pfsinimgmagick.cpp 2016-12-26 23:03:33.929300971 +0100 +@@ -35,6 +35,7 @@ + + #define PROG_NAME "pfsinimgmagick" + ++using namespace Magick; + + class QuietException + { +@@ -112,7 +113,7 @@ + Magick::Image imImage( ff.fileName ); + + VERBOSE_STR << "input image gamma: " << imImage.gamma() << std::endl; +- bool hasAlpha = imImage.matte(); ++ bool hasAlpha = imImage.alpha(); + if( hasAlpha ) + VERBOSE_STR << "alpha channel found" << std::endl; + +@@ -127,18 +128,19 @@ + + // Copy line by line to pfs::Frame + int pixInd = 0; +- const float maxValue = (float)(1<= 6.0 BuildRequires: OpenEXR-devel >= 1.0 @@ -95,6 +96,7 @@ Wiązania języka Octave do pfstools. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build install -d build -- 2.44.0