summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-12 16:42:40 +0000
committerSam James <sam@gentoo.org>2022-02-12 16:42:40 +0000
commitb42a99ee007f0b2ae28d8d9b7da23f66a2888b80 (patch)
tree23d800bbc0706b4d374749ca244c8c7de9085623 /media-libs/openimageio
parentmedia-libs/openimageio: try harder to avoid OpenEXR 2 (diff)
downloadgentoo-b42a99ee007f0b2ae28d8d9b7da23f66a2888b80.tar.gz
gentoo-b42a99ee007f0b2ae28d8d9b7da23f66a2888b80.tar.bz2
gentoo-b42a99ee007f0b2ae28d8d9b7da23f66a2888b80.zip
media-libs/openimageio: Revert "try harder to avoid OpenEXR 2"
This reverts commit 666a5bcdd83606553c0f35894fdbb90fd0653137. Not there yet. Bug: https://bugs.gentoo.org/833194 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openimageio')
-rw-r--r--media-libs/openimageio/files/openimageio-2.3.11.0-imath-openexr-3.patch325
-rw-r--r--media-libs/openimageio/openimageio-2.3.11.0-r2.ebuild (renamed from media-libs/openimageio/openimageio-2.3.11.0-r3.ebuild)0
-rw-r--r--media-libs/openimageio/openimageio-2.3.12.0-r1.ebuild (renamed from media-libs/openimageio/openimageio-2.3.12.0-r2.ebuild)0
3 files changed, 302 insertions, 23 deletions
diff --git a/media-libs/openimageio/files/openimageio-2.3.11.0-imath-openexr-3.patch b/media-libs/openimageio/files/openimageio-2.3.11.0-imath-openexr-3.patch
index eab08909e831..ad6ee04c16e6 100644
--- a/media-libs/openimageio/files/openimageio-2.3.11.0-imath-openexr-3.patch
+++ b/media-libs/openimageio/files/openimageio-2.3.11.0-imath-openexr-3.patch
@@ -1,23 +1,302 @@
-diff --git a/src/cmake/modules/FindOpenEXR.cmake b/src/cmake/modules/FindOpenEXR.cmake
-index 5e356dd..595445c 100644
---- a/src/cmake/modules/FindOpenEXR.cmake
-+++ b/src/cmake/modules/FindOpenEXR.cmake
-@@ -35,14 +35,14 @@
- #
-
- # First, try to fine just the right config files
--find_package(Imath CONFIG)
--if (NOT TARGET Imath::Imath)
-+find_package(Imath-3 CONFIG)
-+if (NOT TARGET Imath-3::Imath)
- # Couldn't find Imath::Imath, maybe it's older and has IlmBase?
- find_package(IlmBase CONFIG)
- endif ()
--find_package(OpenEXR CONFIG)
-+find_package(OpenEXR-3 CONFIG)
-
--if (TARGET OpenEXR::OpenEXR AND TARGET Imath::Imath)
-+if (TARGET OpenEXR-3::OpenEXR AND TARGET Imath-3::Imath)
- # OpenEXR 3.x if both of these targets are found
- set (FOUND_OPENEXR_WITH_CONFIG 1)
- if (NOT OpenEXR_FIND_QUIETLY)
+diff --git a/src/dpx.imageio/dpxinput.cpp b/src/dpx.imageio/dpxinput.cpp
+index edfeb02..7890b46 100644
+--- a/src/dpx.imageio/dpxinput.cpp
++++ b/src/dpx.imageio/dpxinput.cpp
+@@ -6,7 +6,7 @@
+ #include <iomanip>
+ #include <memory>
+
+-#include <OpenEXR/ImfTimeCode.h> //For TimeCode support
++#include <OpenEXR-3/ImfTimeCode.h> //For TimeCode support
+
+ // Note: libdpx originally from: https://github.com/PatrickPalmer/dpx
+ // But that seems not to be actively maintained.
+diff --git a/src/field3d.imageio/field3d_pvt.h b/src/field3d.imageio/field3d_pvt.h
+index 066574f..19b4ac9 100644
+--- a/src/field3d.imageio/field3d_pvt.h
++++ b/src/field3d.imageio/field3d_pvt.h
+@@ -8,7 +8,7 @@
+ #include <OpenImageIO/Imath.h>
+
+ #if OIIO_USING_IMATH >= 3
+-# include <Imath/ImathBox.h>
++# include <Imath-3/ImathBox.h>
+ #else
+ # include <OpenEXR/ImathBox.h>
+ #endif
+diff --git a/src/include/OpenImageIO/Imath.h.in b/src/include/OpenImageIO/Imath.h.in
+index 7f13fae..23afffc 100644
+--- a/src/include/OpenImageIO/Imath.h.in
++++ b/src/include/OpenImageIO/Imath.h.in
+@@ -13,10 +13,10 @@
+ #define OIIO_USING_IMATH @OIIO_USING_IMATH@
+
+ #if OIIO_USING_IMATH >= 3
+-# include <Imath/ImathColor.h>
+-# include <Imath/ImathMatrix.h>
+-# include <Imath/ImathVec.h>
+-# include <Imath/half.h>
++# include <Imath-3/ImathColor.h>
++# include <Imath-3/ImathMatrix.h>
++# include <Imath-3/ImathVec.h>
++# include <Imath-3/half.h>
+ #else
+ # include <OpenEXR/ImathColor.h>
+ # include <OpenEXR/ImathMatrix.h>
+diff --git a/src/libOpenImageIO/imagebufalgo_xform.cpp b/src/libOpenImageIO/imagebufalgo_xform.cpp
+index 496a055..6484ccc 100644
+--- a/src/libOpenImageIO/imagebufalgo_xform.cpp
++++ b/src/libOpenImageIO/imagebufalgo_xform.cpp
+@@ -18,7 +18,7 @@
+ #include <OpenImageIO/thread.h>
+
+ #if OIIO_USING_IMATH >= 3
+-# include <Imath/ImathBox.h>
++# include <Imath-3/ImathBox.h>
+ #else
+ # include <OpenEXR/ImathBox.h>
+ #endif
+diff --git a/src/libutil/fmath_test.cpp b/src/libutil/fmath_test.cpp
+index ea4e708..ed7e1ff 100644
+--- a/src/libutil/fmath_test.cpp
++++ b/src/libutil/fmath_test.cpp
+@@ -18,7 +18,7 @@
+ #include <OpenImageIO/unittest.h>
+
+ #if OIIO_USING_IMATH >= 3
+-# include <Imath/ImathFun.h>
++# include <Imath-3/ImathFun.h>
+ #else
+ # include <OpenEXR/ImathFun.h>
+ #endif
+diff --git a/src/libutil/typedesc_test.cpp b/src/libutil/typedesc_test.cpp
+index 6840738..58f6a64 100644
+--- a/src/libutil/typedesc_test.cpp
++++ b/src/libutil/typedesc_test.cpp
+@@ -9,12 +9,14 @@
+ #include <OpenImageIO/Imath.h>
+
+ #if OIIO_USING_IMATH >= 3
+-# include <Imath/ImathBox.h>
++# include <Imath-3/ImathBox.h>
++# include <OpenEXR-3/ImfKeyCode.h>
++# include <OpenEXR-3/ImfTimeCode.h>
+ #else
+ # include <OpenEXR/ImathBox.h>
++# include <OpenEXR/ImfKeyCode.h>
++# include <OpenEXR/ImfTimeCode.h>
+ #endif
+-#include <OpenEXR/ImfKeyCode.h>
+-#include <OpenEXR/ImfTimeCode.h>
+
+ #include <OpenImageIO/typedesc.h>
+ #include <OpenImageIO/unittest.h>
+diff --git a/src/oiiotool/oiiotool.cpp b/src/oiiotool/oiiotool.cpp
+index 0f5e739..4292b50 100644
+--- a/src/oiiotool/oiiotool.cpp
++++ b/src/oiiotool/oiiotool.cpp
+@@ -17,7 +17,7 @@
+ #include <utility>
+ #include <vector>
+
+-#include <OpenEXR/ImfTimeCode.h>
++#include <OpenEXR-3/ImfTimeCode.h>
+
+ #include <OpenImageIO/argparse.h>
+ #include <OpenImageIO/color.h>
+diff --git a/src/openexr.imageio/exrinput.cpp b/src/openexr.imageio/exrinput.cpp
+index d9c51ab..8b86ad8 100644
+--- a/src/openexr.imageio/exrinput.cpp
++++ b/src/openexr.imageio/exrinput.cpp
+@@ -25,11 +25,11 @@ using boost::integer::gcd;
+ using boost::math::gcd;
+ #endif
+
+-#include <OpenEXR/ImfChannelList.h>
+-#include <OpenEXR/ImfEnvmap.h>
+-#include <OpenEXR/ImfInputFile.h>
+-#include <OpenEXR/ImfTestFile.h>
+-#include <OpenEXR/ImfTiledInputFile.h>
++#include <OpenEXR-3/ImfChannelList.h>
++#include <OpenEXR-3/ImfEnvmap.h>
++#include <OpenEXR-3/ImfInputFile.h>
++#include <OpenEXR-3/ImfTestFile.h>
++#include <OpenEXR-3/ImfTiledInputFile.h>
+
+ #ifdef OPENEXR_VERSION_MAJOR
+ # define OPENEXR_CODED_VERSION \
+@@ -40,7 +40,7 @@ using boost::math::gcd;
+ #endif
+
+ #if OPENEXR_CODED_VERSION >= 20400 \
+- || __has_include(<OpenEXR/ImfFloatVectorAttribute.h>)
++ || __has_include(<OpenEXR-3/ImfFloatVectorAttribute.h>)
+ # define OPENEXR_HAS_FLOATVECTOR 1
+ #else
+ # define OPENEXR_HAS_FLOATVECTOR 0
+@@ -51,37 +51,37 @@ using boost::math::gcd;
+ OIIO_PRAGMA_VISIBILITY_PUSH
+ OIIO_PRAGMA_WARNING_PUSH
+ OIIO_GCC_PRAGMA(GCC diagnostic ignored "-Wunused-parameter")
+-#include <OpenEXR/IexBaseExc.h>
+-#include <OpenEXR/IexThrowErrnoExc.h>
+-#include <OpenEXR/ImfBoxAttribute.h>
+-#include <OpenEXR/ImfChromaticitiesAttribute.h>
+-#include <OpenEXR/ImfCompressionAttribute.h>
+-#include <OpenEXR/ImfDeepFrameBuffer.h>
+-#include <OpenEXR/ImfDeepScanLineInputPart.h>
+-#include <OpenEXR/ImfDeepTiledInputPart.h>
+-#include <OpenEXR/ImfDoubleAttribute.h>
+-#include <OpenEXR/ImfEnvmapAttribute.h>
+-#include <OpenEXR/ImfFloatAttribute.h>
+-#include <OpenEXR/ImfHeader.h>
++#include <OpenEXR-3/IexBaseExc.h>
++#include <OpenEXR-3/IexThrowErrnoExc.h>
++#include <OpenEXR-3/ImfBoxAttribute.h>
++#include <OpenEXR-3/ImfChromaticitiesAttribute.h>
++#include <OpenEXR-3/ImfCompressionAttribute.h>
++#include <OpenEXR-3/ImfDeepFrameBuffer.h>
++#include <OpenEXR-3/ImfDeepScanLineInputPart.h>
++#include <OpenEXR-3/ImfDeepTiledInputPart.h>
++#include <OpenEXR-3/ImfDoubleAttribute.h>
++#include <OpenEXR-3/ImfEnvmapAttribute.h>
++#include <OpenEXR-3/ImfFloatAttribute.h>
++#include <OpenEXR-3/ImfHeader.h>
+ #if OPENEXR_HAS_FLOATVECTOR
+-# include <OpenEXR/ImfFloatVectorAttribute.h>
++# include <OpenEXR-3/ImfFloatVectorAttribute.h>
+ #endif
+-#include <OpenEXR/ImfInputPart.h>
+-#include <OpenEXR/ImfIntAttribute.h>
+-#include <OpenEXR/ImfKeyCodeAttribute.h>
+-#include <OpenEXR/ImfMatrixAttribute.h>
+-#include <OpenEXR/ImfMultiPartInputFile.h>
+-#include <OpenEXR/ImfPartType.h>
+-#include <OpenEXR/ImfRationalAttribute.h>
+-#include <OpenEXR/ImfStringAttribute.h>
+-#include <OpenEXR/ImfStringVectorAttribute.h>
+-#include <OpenEXR/ImfTiledInputPart.h>
+-#include <OpenEXR/ImfTimeCodeAttribute.h>
+-#include <OpenEXR/ImfVecAttribute.h>
++#include <OpenEXR-3/ImfInputPart.h>
++#include <OpenEXR-3/ImfIntAttribute.h>
++#include <OpenEXR-3/ImfKeyCodeAttribute.h>
++#include <OpenEXR-3/ImfMatrixAttribute.h>
++#include <OpenEXR-3/ImfMultiPartInputFile.h>
++#include <OpenEXR-3/ImfPartType.h>
++#include <OpenEXR-3/ImfRationalAttribute.h>
++#include <OpenEXR-3/ImfStringAttribute.h>
++#include <OpenEXR-3/ImfStringVectorAttribute.h>
++#include <OpenEXR-3/ImfTiledInputPart.h>
++#include <OpenEXR-3/ImfTimeCodeAttribute.h>
++#include <OpenEXR-3/ImfVecAttribute.h>
+ OIIO_PRAGMA_WARNING_POP
+ OIIO_PRAGMA_VISIBILITY_POP
+
+-#include <OpenEXR/ImfCRgbaFile.h>
++#include <OpenEXR-3/ImfCRgbaFile.h>
+
+ #if OPENEXR_CODED_VERSION >= 30100 && defined(OIIO_USE_EXR_C_API)
+ # define USE_OPENEXR_CORE
+diff --git a/src/openexr.imageio/exrinput_c.cpp b/src/openexr.imageio/exrinput_c.cpp
+index 4376333..1c566da 100644
+--- a/src/openexr.imageio/exrinput_c.cpp
++++ b/src/openexr.imageio/exrinput_c.cpp
+@@ -25,7 +25,7 @@ using boost::integer::gcd;
+ using boost::math::gcd;
+ #endif
+
+-#include <OpenEXR/openexr.h>
++#include <OpenEXR-3/openexr.h>
+
+ #ifdef OPENEXR_VERSION_MAJOR
+ # define OPENEXR_CODED_VERSION \
+diff --git a/src/openexr.imageio/exroutput.cpp b/src/openexr.imageio/exroutput.cpp
+index e11cf0c..0fd2295 100644
+--- a/src/openexr.imageio/exroutput.cpp
++++ b/src/openexr.imageio/exroutput.cpp
+@@ -13,10 +13,10 @@
+
+ #include <OpenImageIO/platform.h>
+
+-#include <OpenEXR/ImfChannelList.h>
+-#include <OpenEXR/ImfEnvmap.h>
+-#include <OpenEXR/ImfOutputFile.h>
+-#include <OpenEXR/ImfTiledOutputFile.h>
++#include <OpenEXR-3/ImfChannelList.h>
++#include <OpenEXR-3/ImfEnvmap.h>
++#include <OpenEXR-3/ImfOutputFile.h>
++#include <OpenEXR-3/ImfTiledOutputFile.h>
+
+ #ifdef OPENEXR_VERSION_MAJOR
+ # define OPENEXR_CODED_VERSION \
+@@ -27,7 +27,7 @@
+ #endif
+
+ #if OPENEXR_CODED_VERSION >= 20400 \
+- || __has_include(<OpenEXR/ImfFloatVectorAttribute.h>)
++ || __has_include(<OpenEXR-3/ImfFloatVectorAttribute.h>)
+ # define OPENEXR_HAS_FLOATVECTOR 1
+ #else
+ # define OPENEXR_HAS_FLOATVECTOR 0
+@@ -38,34 +38,34 @@
+ OIIO_PRAGMA_VISIBILITY_PUSH
+ OIIO_PRAGMA_WARNING_PUSH
+ OIIO_GCC_PRAGMA(GCC diagnostic ignored "-Wunused-parameter")
+-#include <OpenEXR/IexBaseExc.h>
+-#include <OpenEXR/ImfBoxAttribute.h>
+-#include <OpenEXR/ImfCRgbaFile.h> // JUST to get symbols to figure out version!
+-#include <OpenEXR/ImfChromaticitiesAttribute.h>
+-#include <OpenEXR/ImfCompressionAttribute.h>
+-#include <OpenEXR/ImfEnvmapAttribute.h>
+-#include <OpenEXR/ImfFloatAttribute.h>
++#include <OpenEXR-3/IexBaseExc.h>
++#include <OpenEXR-3/ImfBoxAttribute.h>
++#include <OpenEXR-3/ImfCRgbaFile.h> // JUST to get symbols to figure out version!
++#include <OpenEXR-3/ImfChromaticitiesAttribute.h>
++#include <OpenEXR-3/ImfCompressionAttribute.h>
++#include <OpenEXR-3/ImfEnvmapAttribute.h>
++#include <OpenEXR-3/ImfFloatAttribute.h>
+ #if OPENEXR_HAS_FLOATVECTOR
+-# include <OpenEXR/ImfFloatVectorAttribute.h>
++# include <OpenEXR-3/ImfFloatVectorAttribute.h>
+ #endif
+-#include <OpenEXR/ImfHeader.h>
+-#include <OpenEXR/ImfIntAttribute.h>
+-#include <OpenEXR/ImfKeyCodeAttribute.h>
+-#include <OpenEXR/ImfMatrixAttribute.h>
+-#include <OpenEXR/ImfRationalAttribute.h>
+-#include <OpenEXR/ImfStringAttribute.h>
+-#include <OpenEXR/ImfTimeCodeAttribute.h>
+-#include <OpenEXR/ImfVecAttribute.h>
+-
+-#include <OpenEXR/ImfDeepFrameBuffer.h>
+-#include <OpenEXR/ImfDeepScanLineOutputPart.h>
+-#include <OpenEXR/ImfDeepTiledOutputPart.h>
+-#include <OpenEXR/ImfDoubleAttribute.h>
+-#include <OpenEXR/ImfMultiPartOutputFile.h>
+-#include <OpenEXR/ImfOutputPart.h>
+-#include <OpenEXR/ImfPartType.h>
+-#include <OpenEXR/ImfStringVectorAttribute.h>
+-#include <OpenEXR/ImfTiledOutputPart.h>
++#include <OpenEXR-3/ImfHeader.h>
++#include <OpenEXR-3/ImfIntAttribute.h>
++#include <OpenEXR-3/ImfKeyCodeAttribute.h>
++#include <OpenEXR-3/ImfMatrixAttribute.h>
++#include <OpenEXR-3/ImfRationalAttribute.h>
++#include <OpenEXR-3/ImfStringAttribute.h>
++#include <OpenEXR-3/ImfTimeCodeAttribute.h>
++#include <OpenEXR-3/ImfVecAttribute.h>
++
++#include <OpenEXR-3/ImfDeepFrameBuffer.h>
++#include <OpenEXR-3/ImfDeepScanLineOutputPart.h>
++#include <OpenEXR-3/ImfDeepTiledOutputPart.h>
++#include <OpenEXR-3/ImfDoubleAttribute.h>
++#include <OpenEXR-3/ImfMultiPartOutputFile.h>
++#include <OpenEXR-3/ImfOutputPart.h>
++#include <OpenEXR-3/ImfPartType.h>
++#include <OpenEXR-3/ImfStringVectorAttribute.h>
++#include <OpenEXR-3/ImfTiledOutputPart.h>
+ OIIO_PRAGMA_WARNING_POP
+ OIIO_PRAGMA_VISIBILITY_POP
+
diff --git a/media-libs/openimageio/openimageio-2.3.11.0-r3.ebuild b/media-libs/openimageio/openimageio-2.3.11.0-r2.ebuild
index 79438a824283..79438a824283 100644
--- a/media-libs/openimageio/openimageio-2.3.11.0-r3.ebuild
+++ b/media-libs/openimageio/openimageio-2.3.11.0-r2.ebuild
diff --git a/media-libs/openimageio/openimageio-2.3.12.0-r2.ebuild b/media-libs/openimageio/openimageio-2.3.12.0-r1.ebuild
index 79438a824283..79438a824283 100644
--- a/media-libs/openimageio/openimageio-2.3.12.0-r2.ebuild
+++ b/media-libs/openimageio/openimageio-2.3.12.0-r1.ebuild