diff options
author | arved <arved@FreeBSD.org> | 2007-10-10 23:02:00 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-10-10 23:02:00 +0800 |
commit | b62b8331d596e49c410d14c0213fc5fc182505fa (patch) | |
tree | ff270ce5a41ce6c2ada356cb8f52b0224149d73f /graphics/kdegraphics3 | |
parent | dbfaf6a4cb538c28d822d311f26a89c9ff6b5c2e (diff) | |
download | freebsd-ports-gnome-b62b8331d596e49c410d14c0213fc5fc182505fa.tar.gz freebsd-ports-gnome-b62b8331d596e49c410d14c0213fc5fc182505fa.tar.zst freebsd-ports-gnome-b62b8331d596e49c410d14c0213fc5fc182505fa.zip |
Fix build with OpenEXR 1.6.0
Obtained from: KDE SVN r703387
Reported by: chmeee on #kde-freebsd
Diffstat (limited to 'graphics/kdegraphics3')
-rw-r--r-- | graphics/kdegraphics3/files/patch-kfile-plugins::exr::kfile_exr.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/kdegraphics3/files/patch-kfile-plugins::exr::kfile_exr.cpp b/graphics/kdegraphics3/files/patch-kfile-plugins::exr::kfile_exr.cpp new file mode 100644 index 000000000000..112a5f5f2e67 --- /dev/null +++ b/graphics/kdegraphics3/files/patch-kfile-plugins::exr::kfile_exr.cpp @@ -0,0 +1,25 @@ +--- branches/KDE/3.5/kdegraphics/kfile-plugins/exr/kfile_exr.cpp 2005/09/29 14:33:08 465369 ++++ kfile-plugins/exr/kfile_exr.cpp 2007/08/22 12:19:02 703387 +@@ -32,6 +32,7 @@ + #include <ImfVecAttribute.h> + #include <ImfPreviewImage.h> + #include <ImfVersion.h> ++#include <ImfCRgbaFile.h> + + #include <iostream> + +@@ -226,7 +227,14 @@ + qcapDateString.setLength(capDateString.size()); + appendItem( stdgroup, "Capture Date", qcapDateString ); + } ++ // This define was introduced in EXR 1.6.0 ++#ifndef IMF_B44_COMPRESSION ++ // This is the 1.4 and earlier version + if ( hasutcOffset(h) ) { ++#else ++ // This is the 1.6.0 and later version ++ if ( hasUtcOffset(h) ) { ++#endif + QString UTCOffset; + if (utcOffset(h)>0.0) { + UTCOffset.append(QString("%1").arg(utcOffset(h)/3600, 0, 'f', 1)); |