diff options
Diffstat (limited to 'media-libs/openexr')
23 files changed, 534 insertions, 1048 deletions
diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest index 741a982337e6..70d169cd8c7b 100644 --- a/media-libs/openexr/Manifest +++ b/media-libs/openexr/Manifest @@ -1,4 +1,6 @@ -DIST openexr-2.5.6.tar.gz 27540385 BLAKE2B eea64c6ae4500de31673f3127da6ac98272e85a2c93e2aed96494cc24c397edbce508f0721387be5bbabc4dde596dccf61212709173b7cebd4212dbfbd1e4b65 SHA512 8d4582a5f2adcd5eb1486cabe033f9ecaa0292000bf7fa484a94e1d9ec908678a5a903fc6a1beba22bcd9c7f06ac51236834f448ea8aaf4462a338de886f0412 -DIST openexr-2.5.7.tar.gz 27539574 BLAKE2B 58fd81be52e13d2815b6aa8cea6793359379f5ebf866fd45b31ce30cf5f72aa4699625e7cec51189d62fe76f53418c3e0938f9b827d54ad18342e7aa67c8a3d2 SHA512 e44edfa2dcfff2fe372ed2ba07b39a472e549025978de178eff26be641767d22d1a3b543fb7672d9b7b2e9f4c308667f785829ed6d9032a2b42f2ffa0163de40 -DIST openexr-3.0.5.tar.gz 25060148 BLAKE2B 24b5601e27342eeff831219f75416797c30afb1ca28ae0a0692d97169297584da503d016c6dda80f63bd5bb9c9a31dc7f91d7713e6fc217a2760af2c662406f0 SHA512 7a0f83320ad5e1d8f8414b5175a64eef3c6b06a7ccd7d66d0aa21472ea22146e2617ff10c20e04203fc2a3326d8bac2d95023bec315badb03e6a006596b64595 -DIST openexr-3.1.1.tar.gz 25588029 BLAKE2B c2ce9622ad7b8a328ce556b6120a868cddb86e908917e001f543e70501b6d31ce549fc10d65806dd9d63e63872b273ad3a1d4f6813b5d23ea238c238f5815304 SHA512 430becbb214cedec5a57e9ff2363badd8a2d94e8a00edffbc75fbcf30d26d887a6eb3f4ff96e371cb26f9d44e63bf0fe2dc511493a0951171ddc64bba7aed735 +DIST openexr-3.1.11.tar.gz 20539852 BLAKE2B 9d57362c656a646a5b909063ff57eccfacbc70929a802561c2be71b050e97e7087221f78110f2686fcc1ea960d87880ccdbcb57b474f635a3392f3fa169ef3c5 SHA512 ebbad4b22315522f43cafefca77cf92ce38cac87f024c8dc6429aed04a6dad1f0a3d717faaab39c4c3605e440442952acc4630c5393754ea138929be4ad8a0d4 +DIST openexr-3.1.5.tar.gz 20327926 BLAKE2B 77ece3c62b34292d4714873149a5a54a47fe811e96f992f1082e7dca99ad7717649f937c2dd7b18011c4201f15056526fc4b706c4d2f1b7fa593b9f1ed6314bd SHA512 01ef16eacd2dde83c67b81522bae87f47ba272a41ce7d4e35d865dbdcaa03093e7ac504b95d2c1b3a19535f2364a4f937b0e0570c74243bb1c6e021fce7b620c +DIST openexr-3.1.7.tar.gz 20494812 BLAKE2B 2cc03ed8da77f4a9523b7a0f55c78e78ab55f8f6de67cb68f1b2b4ad4b512448d80f39d60a0cc9eab451da35539027a573a0c6d6900e7f81b39f90703909b5af SHA512 f72f5e728f10c06fca0172c9b4c1df752225c3aed7384b4eaa502f92f8547bb1df93fe96d4d132a81eb32b729cb9fd615be825aa6c5de78481d3038c0d47c4d5 +DIST openexr-3.1.12.tar.gz 20540857 BLAKE2B 94a78e4e45f892b56f9a05cabad5cea999ff1844ff8569995f1f301e8599e0be1c214477f501f351c248eea141db22508eb764c1c91508399e69932026361c04 SHA512 0fce6a1322d74354a29ece9f9afeca1c4874c4d55079ec720f3ef21ab2ab950ec333f793f1ffad6634f57b40c4276af578b31ac8bc3e11856d7b903d5475e5eb +DIST openexr-3.2.3.tar.gz 18855303 BLAKE2B 4f5dbd9033031e988e973ef039b67632ac92e1272cc1d3e4540992f09f6b275c3ecb4c8f690cd98620519993099d132b43bb4bb40bb0d11caa06db868404015a SHA512 6e0a6fdcfae57c6e8b060d9aeed57140d96d39bffe5e40edd6ea5beb06e569323833d07906316ffca05f48e8409d0ea4174e2cd84d554404a4ee432e07d7b5e6 +DIST openexr-images-1.0.tar.gz 252222962 BLAKE2B d57c458dfbd1b08c964429022b6e08a3309bf11cbd43c64e271ebc620dae6dbe70636e5221f47dabd7fe2aa0806f2cf3f3c9b3f55fd7f45b0a34f3e62b6029e7 SHA512 c1c83a26cd326d0fcda824daccb0044abad46f29e1bd2ceb1c38bc62b3e71f0aeef126dddc4517eb1cb9f7c9d0fe234276a48a754bdb7c7823e9aee459d8670a diff --git a/media-libs/openexr/files/openexr-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch b/media-libs/openexr/files/openexr-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch deleted file mode 100644 index a77705cb5a7d..000000000000 --- a/media-libs/openexr/files/openexr-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 866442b28b53f773efbb3690b6252d2e75bee137 Mon Sep 17 00:00:00 2001 -From: Bernd Waibel <waebbl@gmail.com> -Date: Fri, 3 Jul 2020 15:34:47 +0200 -Subject: [PATCH] IlmImfTest/main.cpp: disable tests - -Disable testOptimizedInterleavePatterns and testDwaLookup, which -are not working on x86. -For testOptimizedInterleavePatterns, see -https://github.com/AcademySoftwareFoundation/openexr/issues/67#issuecomment-21169748 - -Signed-off-by: Bernd Waibel <waebbl@gmail.com> ---- - IlmImfTest/main.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/IlmImfTest/main.cpp b/IlmImfTest/main.cpp -index 3245fc4..4ab45b1 100644 ---- a/IlmImfTest/main.cpp -+++ b/IlmImfTest/main.cpp -@@ -228,7 +228,7 @@ main (int argc, char *argv[]) - TEST (testExistingStreams, "core"); - TEST (testStandardAttributes, "core"); - TEST (testOptimized, "basic"); -- TEST (testOptimizedInterleavePatterns, "basic"); -+// TEST (testOptimizedInterleavePatterns, "basic"); - TEST (testYca, "basic"); - TEST (testTiledYa, "basic"); - TEST (testNativeFormat, "basic"); -@@ -255,7 +255,7 @@ main (int argc, char *argv[]) - TEST (testDwaCompressorSimd, "basic"); - TEST (testRle, "core"); - TEST (testB44ExpLogTable, "core"); -- TEST (testDwaLookups, "core"); -+// TEST (testDwaLookups, "core"); - - - //#ifdef ENABLE_IMFHUGETEST --- -2.27.0 - diff --git a/media-libs/openexr/files/openexr-2.5.7-0001-disable-testRgba-on-sparc.patch b/media-libs/openexr/files/openexr-2.5.7-0001-disable-testRgba-on-sparc.patch deleted file mode 100644 index 368c9173d133..000000000000 --- a/media-libs/openexr/files/openexr-2.5.7-0001-disable-testRgba-on-sparc.patch +++ /dev/null @@ -1,31 +0,0 @@ -From: Bernd Waibel <waebbl-gentoo@posteo.net> -Date: Mon, 21 Jun 2021 12:03:02 +0200 -Subject: [PATCH] disable testRgba on sparc - -Fails on sparc, bug #656680 and issue -https://github.com/openexr/openexr/issues/222 - -Bug: https://bugs.gentoo.org/656680 -Bug: https://github.com/AcademySoftwareFoundation/openexr/issues/222 - -Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> ---- - IlmImfTest/main.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/IlmImfTest/main.cpp b/IlmImfTest/main.cpp -index 3245fc4..3ba3e60 100644 ---- a/IlmImfTest/main.cpp -+++ b/IlmImfTest/main.cpp -@@ -206,7 +206,7 @@ main (int argc, char *argv[]) - TEST (testXdr, "core"); - TEST (testHuf, "core"); - TEST (testWav, "core"); -- TEST (testRgba, "basic"); -+// TEST (testRgba, "basic"); - TEST (testLargeDataWindowOffsets, "basic"); - TEST (testSharedFrameBuffer, "basic"); - TEST (testRgbaThreading, "basic"); --- -2.32.0 - diff --git a/media-libs/openexr/files/openexr-2.5.7-0002-increase-IlmImfTest-timeout.patch b/media-libs/openexr/files/openexr-2.5.7-0002-increase-IlmImfTest-timeout.patch deleted file mode 100644 index ef71bc0e6871..000000000000 --- a/media-libs/openexr/files/openexr-2.5.7-0002-increase-IlmImfTest-timeout.patch +++ /dev/null @@ -1,13 +0,0 @@ -This consists of A LOT of individual tests and on some hardware -(e.g. the RISC-V board BeagleV Starlight) the default test time-out -of 1500 seconds is greatly insufficient. On said BeagleV OpenEXR.IlmImf -takes almost 4800 s even on an otherwise idle system so let's add a bit -of margin and set the time-out of this test to 1.5 hours. - ---- a/IlmImfTest/CMakeLists.txt 2021-06-15 00:15:14.000000000 +0000 -+++ b/IlmImfTest/CMakeLists.txt 2021-07-16 16:51:20.600435829 +0000 -@@ -73,3 +73,4 @@ - target_compile_definitions(IlmImfTest PRIVATE OPENEXR_DLL) - endif() - add_test(NAME OpenEXR.IlmImf COMMAND $<TARGET_FILE:IlmImfTest>) -+set_tests_properties(OpenEXR.IlmImf PROPERTIES TIMEOUT 5400) diff --git a/media-libs/openexr/files/openexr-3.0.5-0001-changes-needed-for-proper-slotting.patch b/media-libs/openexr/files/openexr-3.0.5-0001-changes-needed-for-proper-slotting.patch deleted file mode 100644 index 30991f423b00..000000000000 --- a/media-libs/openexr/files/openexr-3.0.5-0001-changes-needed-for-proper-slotting.patch +++ /dev/null @@ -1,119 +0,0 @@ -From: Bernd Waibel <waebbl-gentoo@posteo.net> -Date: Fri, 2 Jul 2021 17:46:33 +0200 -Subject: [PATCH] changes needed for proper slotting - -Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> ---- - cmake/CMakeLists.txt | 8 ++++---- - cmake/LibraryDefine.cmake | 8 ++++---- - cmake/OpenEXR.pc.in | 4 ++-- - cmake/OpenEXRLibraryDefine.cmake | 8 ++++---- - 4 files changed, 14 insertions(+), 14 deletions(-) - -diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt -index 2014d27..7dfb2f2 100644 ---- a/cmake/CMakeLists.txt -+++ b/cmake/CMakeLists.txt -@@ -200,7 +200,7 @@ if(OPENEXR_INSTALL_PKG_CONFIG) - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig - ) - endfunction() -- openexr_pkg_config_help(OpenEXR.pc.in) -+ openexr_pkg_config_help(OpenEXR-${OpenEXR_VERSION_MAJOR}.pc.in) - else() - message(STATUS "-- pkg-config generation disabled") - endif() -@@ -220,7 +220,7 @@ include(CMakePackageConfigHelpers) - if(OPENEXR_INSTALL) - configure_package_config_file(${PROJECT_NAME}Config.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake -- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - ) - write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake" - VERSION ${PROJECT_VERSION} -@@ -229,11 +229,11 @@ write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake" - - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake -- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - ) - - install(EXPORT ${PROJECT_NAME} -- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - FILE ${PROJECT_NAME}Targets.cmake - NAMESPACE ${PROJECT_NAME}:: - EXPORT_LINK_INTERFACE_LIBRARIES -diff --git a/cmake/LibraryDefine.cmake b/cmake/LibraryDefine.cmake -index aa5bb46..2767420 100644 ---- a/cmake/LibraryDefine.cmake -+++ b/cmake/LibraryDefine.cmake -@@ -79,8 +79,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - install(TARGETS ${libname} - EXPORT ${PROJECT_NAME} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - PUBLIC_HEADER - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${OPENEXR_OUTPUT_SUBDIR} -@@ -90,8 +90,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) - set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${OPENEXR_LIB_SUFFIX}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) - set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) -- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -- install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR} ${baselibname} -> ${verlibname}\")") -+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -+ install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} ${baselibname} -> ${verlibname}\")") - set(verlibname) - set(baselibname) - endif() -diff --git a/cmake/OpenEXR.pc.in b/cmake/OpenEXR.pc.in -index 7d9bb7c..c7e1dd6 100644 ---- a/cmake/OpenEXR.pc.in -+++ b/cmake/OpenEXR.pc.in -@@ -5,9 +5,9 @@ - - prefix=@prefix@ - exec_prefix=@exec_prefix@ --libdir=@libdir@ -+libdir=@libdir@/@OPENEXR_OUTPUT_SUBDIR@ - includedir=@includedir@ --OpenEXR_includedir=@includedir@/OpenEXR -+OpenEXR_includedir=@includedir@/@OPENEXR_OUTPUT_SUBDIR@ - libsuffix=@LIB_SUFFIX_DASH@ - - Name: OpenEXR -diff --git a/cmake/OpenEXRLibraryDefine.cmake b/cmake/OpenEXRLibraryDefine.cmake -index 8022e2e..9f919c8 100644 ---- a/cmake/OpenEXRLibraryDefine.cmake -+++ b/cmake/OpenEXRLibraryDefine.cmake -@@ -54,8 +54,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - install(TARGETS ${libname} - EXPORT ${PROJECT_NAME} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - PUBLIC_HEADER - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${OPENEXR_OUTPUT_SUBDIR} -@@ -65,8 +65,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) - set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${OPENEXR_LIB_SUFFIX}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) - set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) -- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -- install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_DIR} ${baselibname} -> ${verlibname}\")") -+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -+ install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_DIR}/${OPENEXR_OUTPUT_SUBDIR} ${baselibname} -> ${verlibname}\")") - set(verlibname) - set(baselibname) - endif() --- -2.32.0 - diff --git a/media-libs/openexr/files/openexr-3.0.5-0002-add-version-to-binaries-for-slotting.patch b/media-libs/openexr/files/openexr-3.0.5-0002-add-version-to-binaries-for-slotting.patch deleted file mode 100644 index d6c6b532c879..000000000000 --- a/media-libs/openexr/files/openexr-3.0.5-0002-add-version-to-binaries-for-slotting.patch +++ /dev/null @@ -1,229 +0,0 @@ -From: Bernd Waibel <waebbl-gentoo@posteo.net> -Date: Sat, 22 May 2021 17:04:12 +0200 -Subject: [PATCH] add version to binaries for slotting - -Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> ---- - src/bin/exr2aces/CMakeLists.txt | 10 +++++----- - src/bin/exrenvmap/CMakeLists.txt | 10 +++++----- - src/bin/exrheader/CMakeLists.txt | 10 +++++----- - src/bin/exrmakepreview/CMakeLists.txt | 10 +++++----- - src/bin/exrmaketiled/CMakeLists.txt | 10 +++++----- - src/bin/exrmultipart/CMakeLists.txt | 10 +++++----- - src/bin/exrmultiview/CMakeLists.txt | 10 +++++----- - src/bin/exrstdattr/CMakeLists.txt | 10 +++++----- - 8 files changed, 40 insertions(+), 40 deletions(-) - -diff --git a/src/bin/exr2aces/CMakeLists.txt b/src/bin/exr2aces/CMakeLists.txt -index 72c4e1c..ede5973 100644 ---- a/src/bin/exr2aces/CMakeLists.txt -+++ b/src/bin/exr2aces/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exr2aces main.cpp) --target_link_libraries(exr2aces OpenEXR::OpenEXR) --set_target_properties(exr2aces PROPERTIES -+add_executable(exr2aces-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exr2aces-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exr2aces-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exr2aces DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exr2aces-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exr2aces PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exr2aces-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrenvmap/CMakeLists.txt b/src/bin/exrenvmap/CMakeLists.txt -index bbd26c0..cbe8401 100644 ---- a/src/bin/exrenvmap/CMakeLists.txt -+++ b/src/bin/exrenvmap/CMakeLists.txt -@@ -1,7 +1,7 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable( exrenvmap -+add_executable( exrenvmap-${OpenEXR_VERSION_MAJOR} - makeLatLongMap.cpp - readInputImage.cpp - resizeImage.cpp -@@ -11,13 +11,13 @@ add_executable( exrenvmap - EnvmapImage.cpp - ) - --target_link_libraries(exrenvmap OpenEXR::OpenEXR) --set_target_properties(exrenvmap PROPERTIES -+target_link_libraries(exrenvmap-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrenvmap-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrenvmap DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrenvmap-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrenvmap PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrenvmap-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrheader/CMakeLists.txt b/src/bin/exrheader/CMakeLists.txt -index c427445..b8b0e9a 100644 ---- a/src/bin/exrheader/CMakeLists.txt -+++ b/src/bin/exrheader/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrheader main.cpp) --target_link_libraries(exrheader OpenEXR::OpenEXR) --set_target_properties(exrheader PROPERTIES -+add_executable(exrheader-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exrheader-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrheader-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrheader DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrheader-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrheader PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrheader-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmakepreview/CMakeLists.txt b/src/bin/exrmakepreview/CMakeLists.txt -index bb8b548..03c0687 100644 ---- a/src/bin/exrmakepreview/CMakeLists.txt -+++ b/src/bin/exrmakepreview/CMakeLists.txt -@@ -1,17 +1,17 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmakepreview -+add_executable(exrmakepreview-${OpenEXR_VERSION_MAJOR} - main.cpp - makePreview.cpp - ) --target_link_libraries(exrmakepreview OpenEXR::OpenEXR) --set_target_properties(exrmakepreview PROPERTIES -+target_link_libraries(exrmakepreview-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmakepreview-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmakepreview DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmakepreview-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmakepreview PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmakepreview-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmaketiled/CMakeLists.txt b/src/bin/exrmaketiled/CMakeLists.txt -index 6c8dfa5..7116b54 100644 ---- a/src/bin/exrmaketiled/CMakeLists.txt -+++ b/src/bin/exrmaketiled/CMakeLists.txt -@@ -1,18 +1,18 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors (c) to the OpenEXR Project. - --add_executable(exrmaketiled -+add_executable(exrmaketiled-${OpenEXR_VERSION_MAJOR} - makeTiled.cpp - main.cpp - Image.cpp - ) --target_link_libraries(exrmaketiled OpenEXR::OpenEXR) --set_target_properties(exrmaketiled PROPERTIES -+target_link_libraries(exrmaketiled-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmaketiled-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmaketiled DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmaketiled-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmaketiled PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmaketiled-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmultipart/CMakeLists.txt b/src/bin/exrmultipart/CMakeLists.txt -index 7f8fc1b..dad8c8d 100644 ---- a/src/bin/exrmultipart/CMakeLists.txt -+++ b/src/bin/exrmultipart/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmultipart exrmultipart.cpp) --target_link_libraries(exrmultipart OpenEXR::OpenEXR) --set_target_properties(exrmultipart PROPERTIES -+add_executable(exrmultipart-${OpenEXR_VERSION_MAJOR} exrmultipart.cpp) -+target_link_libraries(exrmultipart-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmultipart-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmultipart DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmultipart-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmultipart PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmultipart-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmultiview/CMakeLists.txt b/src/bin/exrmultiview/CMakeLists.txt -index bbac3a6..eba48c1 100644 ---- a/src/bin/exrmultiview/CMakeLists.txt -+++ b/src/bin/exrmultiview/CMakeLists.txt -@@ -1,18 +1,18 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmultiview -+add_executable(exrmultiview-${OpenEXR_VERSION_MAJOR} - makeMultiView.cpp - main.cpp - Image.cpp - ) --target_link_libraries(exrmultiview OpenEXR::OpenEXR) --set_target_properties(exrmultiview PROPERTIES -+target_link_libraries(exrmultiview-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmultiview-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmultiview DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmultiview-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmultiview PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmultiview-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrstdattr/CMakeLists.txt b/src/bin/exrstdattr/CMakeLists.txt -index 79205fc..35ac580 100644 ---- a/src/bin/exrstdattr/CMakeLists.txt -+++ b/src/bin/exrstdattr/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrstdattr main.cpp) --target_link_libraries(exrstdattr OpenEXR::OpenEXR) --set_target_properties(exrstdattr PROPERTIES -+add_executable(exrstdattr-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exrstdattr-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrstdattr-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrstdattr DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrstdattr-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrstdattr PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrstdattr-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() --- -2.31.1 - diff --git a/media-libs/openexr/files/openexr-3.1.1-0001-changes-needed-for-proper-slotting.patch b/media-libs/openexr/files/openexr-3.1.1-0001-changes-needed-for-proper-slotting.patch deleted file mode 100644 index 29aef05acf5a..000000000000 --- a/media-libs/openexr/files/openexr-3.1.1-0001-changes-needed-for-proper-slotting.patch +++ /dev/null @@ -1,119 +0,0 @@ -From: Bernd Waibel <waebbl-gentoo@posteo.net> -Date: Tue, 3 Aug 2021 19:50:40 +0200 -Subject: [PATCH 1/2] changes needed for proper slotting - -Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> ---- - cmake/CMakeLists.txt | 8 ++++---- - cmake/LibraryDefine.cmake | 8 ++++---- - cmake/OpenEXR.pc.in | 4 ++-- - cmake/OpenEXRLibraryDefine.cmake | 8 ++++---- - 4 files changed, 14 insertions(+), 14 deletions(-) - -diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt -index 79497d9..a22afd1 100644 ---- a/cmake/CMakeLists.txt -+++ b/cmake/CMakeLists.txt -@@ -205,7 +205,7 @@ if(OPENEXR_INSTALL_PKG_CONFIG) - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig - ) - endfunction() -- openexr_pkg_config_help(OpenEXR.pc.in) -+ openexr_pkg_config_help(OpenEXR-${OpenEXR_VERSION_MAJOR}.pc.in) - else() - message(STATUS "-- pkg-config generation disabled") - endif() -@@ -225,7 +225,7 @@ include(CMakePackageConfigHelpers) - if(OPENEXR_INSTALL) - configure_package_config_file(${PROJECT_NAME}Config.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake -- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - ) - write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake" - VERSION ${PROJECT_VERSION} -@@ -234,11 +234,11 @@ write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake" - - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake -- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - ) - - install(EXPORT ${PROJECT_NAME} -- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} -+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${OpenEXR_VERSION_MAJOR} - FILE ${PROJECT_NAME}Targets.cmake - NAMESPACE ${PROJECT_NAME}:: - EXPORT_LINK_INTERFACE_LIBRARIES -diff --git a/cmake/LibraryDefine.cmake b/cmake/LibraryDefine.cmake -index 5696f3f..b4787b1 100644 ---- a/cmake/LibraryDefine.cmake -+++ b/cmake/LibraryDefine.cmake -@@ -79,8 +79,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - install(TARGETS ${libname} - EXPORT ${PROJECT_NAME} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - PUBLIC_HEADER - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${OPENEXR_OUTPUT_SUBDIR} -@@ -90,8 +90,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) - set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${OPENEXR_LIB_SUFFIX}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) - set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) -- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -- install(CODE "message(STATUS \"Creating symlink ${CMAKE_INSTALL_FULL_LIBDIR}/${baselibname} -> ${verlibname}\")") -+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -+ install(CODE "message(STATUS \"Creating symlink ${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR}/${baselibname} -> ${verlibname}\")") - set(verlibname) - set(baselibname) - endif() -diff --git a/cmake/OpenEXR.pc.in b/cmake/OpenEXR.pc.in -index a74979b..e124b8f 100644 ---- a/cmake/OpenEXR.pc.in -+++ b/cmake/OpenEXR.pc.in -@@ -5,9 +5,9 @@ - - prefix=@prefix@ - exec_prefix=@exec_prefix@ --libdir=@libdir@ -+libdir=@libdir@/@OPENEXR_OUTPUT_SUBDIR@ - includedir=@includedir@ --OpenEXR_includedir=@includedir@/OpenEXR -+OpenEXR_includedir=@includedir@/@OPENEXR_OUTPUT_SUBDIR@ - libsuffix=@LIB_SUFFIX_DASH@ - - Name: OpenEXR -diff --git a/cmake/OpenEXRLibraryDefine.cmake b/cmake/OpenEXRLibraryDefine.cmake -index c6ddd2e..0dc3663 100644 ---- a/cmake/OpenEXRLibraryDefine.cmake -+++ b/cmake/OpenEXRLibraryDefine.cmake -@@ -54,8 +54,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - install(TARGETS ${libname} - EXPORT ${PROJECT_NAME} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - PUBLIC_HEADER - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${OPENEXR_OUTPUT_SUBDIR} -@@ -65,8 +65,8 @@ function(OPENEXR_DEFINE_LIBRARY libname) - string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) - set(verlibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${OPENEXR_LIB_SUFFIX}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) - set(baselibname ${CMAKE_SHARED_LIBRARY_PREFIX}${libname}${CMAKE_${uppercase_CMAKE_BUILD_TYPE}_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}) -- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -- install(CODE "message(STATUS \"Creating symlink ${CMAKE_INSTALL_FULL_DIR}/${baselibname} -> ${verlibname}\")") -+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}/${OPENEXR_OUTPUT_SUBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})") -+ install(CODE "message(STATUS \"Creating symlink ${CMAKE_INSTALL_FULL_DIR}/${OPENEXR_OUTPUT_SUBDIR}/${baselibname} -> ${verlibname}\")") - set(verlibname) - set(baselibname) - endif() --- -2.32.0 - diff --git a/media-libs/openexr/files/openexr-3.1.1-0002-add-version-to-binaries-for-slotting.patch b/media-libs/openexr/files/openexr-3.1.1-0002-add-version-to-binaries-for-slotting.patch deleted file mode 100644 index d2f6dcd4bc33..000000000000 --- a/media-libs/openexr/files/openexr-3.1.1-0002-add-version-to-binaries-for-slotting.patch +++ /dev/null @@ -1,252 +0,0 @@ -From: Bernd Waibel <waebbl-gentoo@posteo.net> -Date: Tue, 3 Aug 2021 20:00:34 +0200 -Subject: [PATCH 2/2] add version to binaries for slotting - -Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> ---- - src/bin/exr2aces/CMakeLists.txt | 10 +++++----- - src/bin/exrenvmap/CMakeLists.txt | 10 +++++----- - src/bin/exrheader/CMakeLists.txt | 10 +++++----- - src/bin/exrinfo/CMakeLists.txt | 10 +++++----- - src/bin/exrmakepreview/CMakeLists.txt | 10 +++++----- - src/bin/exrmaketiled/CMakeLists.txt | 10 +++++----- - src/bin/exrmultipart/CMakeLists.txt | 10 +++++----- - src/bin/exrmultiview/CMakeLists.txt | 10 +++++----- - src/bin/exrstdattr/CMakeLists.txt | 10 +++++----- - 9 files changed, 45 insertions(+), 45 deletions(-) - -diff --git a/src/bin/exr2aces/CMakeLists.txt b/src/bin/exr2aces/CMakeLists.txt -index 72c4e1c..01b806f 100644 ---- a/src/bin/exr2aces/CMakeLists.txt -+++ b/src/bin/exr2aces/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exr2aces main.cpp) --target_link_libraries(exr2aces OpenEXR::OpenEXR) --set_target_properties(exr2aces PROPERTIES -+add_executable(exr2aces-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exr2aces-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exr2aces-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exr2aces DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exr2aces-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exr2aces PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exr2aces-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrenvmap/CMakeLists.txt b/src/bin/exrenvmap/CMakeLists.txt -index c798a65..3d35a19 100644 ---- a/src/bin/exrenvmap/CMakeLists.txt -+++ b/src/bin/exrenvmap/CMakeLists.txt -@@ -1,7 +1,7 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable( exrenvmap -+add_executable( exrenvmap-${OpenEXR_VERSION_MAJOR} - blurImage.cpp - EnvmapImage.cpp - main.cpp -@@ -11,13 +11,13 @@ add_executable( exrenvmap - resizeImage.cpp - ) - --target_link_libraries(exrenvmap OpenEXR::OpenEXR) --set_target_properties(exrenvmap PROPERTIES -+target_link_libraries(exrenvmap-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrenvmap-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrenvmap DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrenvmap-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrenvmap PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrenvmap-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrheader/CMakeLists.txt b/src/bin/exrheader/CMakeLists.txt -index c427445..8cdbb8e 100644 ---- a/src/bin/exrheader/CMakeLists.txt -+++ b/src/bin/exrheader/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrheader main.cpp) --target_link_libraries(exrheader OpenEXR::OpenEXR) --set_target_properties(exrheader PROPERTIES -+add_executable(exrheader-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exrheader-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrheader-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrheader DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrheader-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrheader PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrheader-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrinfo/CMakeLists.txt b/src/bin/exrinfo/CMakeLists.txt -index 19ace5f..07aee1a 100644 ---- a/src/bin/exrinfo/CMakeLists.txt -+++ b/src/bin/exrinfo/CMakeLists.txt -@@ -1,12 +1,12 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright Contributors to the OpenEXR Project. - --add_executable(exrinfo main.c) --target_link_libraries(exrinfo OpenEXR::OpenEXRCore) --set_target_properties(exrinfo PROPERTIES -+add_executable(exrinfo-${OpenEXR_VERSION_MAJOR} main.c) -+target_link_libraries(exrinfo-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXRCore) -+set_target_properties(exrinfo-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) --install(TARGETS exrinfo DESTINATION ${CMAKE_INSTALL_BINDIR}) -+install(TARGETS exrinfo-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - if(WIN32 AND (BUILD_SHARED_LIBS OR OPENEXR_BUILD_BOTH_STATIC_SHARED)) -- target_compile_definitions(exrinfo PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrinfo-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmakepreview/CMakeLists.txt b/src/bin/exrmakepreview/CMakeLists.txt -index bb8b548..8b5e441 100644 ---- a/src/bin/exrmakepreview/CMakeLists.txt -+++ b/src/bin/exrmakepreview/CMakeLists.txt -@@ -1,17 +1,17 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmakepreview -+add_executable(exrmakepreview-${OpenEXR_VERSION_MAJOR} - main.cpp - makePreview.cpp - ) --target_link_libraries(exrmakepreview OpenEXR::OpenEXR) --set_target_properties(exrmakepreview PROPERTIES -+target_link_libraries(exrmakepreview-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmakepreview-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmakepreview DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmakepreview-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmakepreview PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmakepreview-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmaketiled/CMakeLists.txt b/src/bin/exrmaketiled/CMakeLists.txt -index 1bc6cf4..6e70cf6 100644 ---- a/src/bin/exrmaketiled/CMakeLists.txt -+++ b/src/bin/exrmaketiled/CMakeLists.txt -@@ -1,18 +1,18 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors (c) to the OpenEXR Project. - --add_executable(exrmaketiled -+add_executable(exrmaketiled-${OpenEXR_VERSION_MAJOR} - Image.cpp - main.cpp - makeTiled.cpp - ) --target_link_libraries(exrmaketiled OpenEXR::OpenEXR) --set_target_properties(exrmaketiled PROPERTIES -+target_link_libraries(exrmaketiled-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmaketiled-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmaketiled DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmaketiled-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmaketiled PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmaketiled-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmultipart/CMakeLists.txt b/src/bin/exrmultipart/CMakeLists.txt -index 7f8fc1b..3770506 100644 ---- a/src/bin/exrmultipart/CMakeLists.txt -+++ b/src/bin/exrmultipart/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmultipart exrmultipart.cpp) --target_link_libraries(exrmultipart OpenEXR::OpenEXR) --set_target_properties(exrmultipart PROPERTIES -+add_executable(exrmultipart-${OpenEXR_VERSION_MAJOR} exrmultipart.cpp) -+target_link_libraries(exrmultipart-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmultipart-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmultipart DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmultipart-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmultipart PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmultipart-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrmultiview/CMakeLists.txt b/src/bin/exrmultiview/CMakeLists.txt -index 05ad081..9e535ad 100644 ---- a/src/bin/exrmultiview/CMakeLists.txt -+++ b/src/bin/exrmultiview/CMakeLists.txt -@@ -1,18 +1,18 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrmultiview -+add_executable(exrmultiview-${OpenEXR_VERSION_MAJOR} - Image.cpp - main.cpp - makeMultiView.cpp - ) --target_link_libraries(exrmultiview OpenEXR::OpenEXR) --set_target_properties(exrmultiview PROPERTIES -+target_link_libraries(exrmultiview-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrmultiview-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrmultiview DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrmultiview-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrmultiview PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrmultiview-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() -diff --git a/src/bin/exrstdattr/CMakeLists.txt b/src/bin/exrstdattr/CMakeLists.txt -index 79205fc..3ad0ffe 100644 ---- a/src/bin/exrstdattr/CMakeLists.txt -+++ b/src/bin/exrstdattr/CMakeLists.txt -@@ -1,14 +1,14 @@ - # SPDX-License-Identifier: BSD-3-Clause - # Copyright (c) Contributors to the OpenEXR Project. - --add_executable(exrstdattr main.cpp) --target_link_libraries(exrstdattr OpenEXR::OpenEXR) --set_target_properties(exrstdattr PROPERTIES -+add_executable(exrstdattr-${OpenEXR_VERSION_MAJOR} main.cpp) -+target_link_libraries(exrstdattr-${OpenEXR_VERSION_MAJOR} OpenEXR::OpenEXR) -+set_target_properties(exrstdattr-${OpenEXR_VERSION_MAJOR} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" - ) - if(OPENEXR_INSTALL_TOOLS) -- install(TARGETS exrstdattr DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ install(TARGETS exrstdattr-${OpenEXR_VERSION_MAJOR} DESTINATION ${CMAKE_INSTALL_BINDIR}) - endif() - if(WIN32 AND BUILD_SHARED_LIBS) -- target_compile_definitions(exrstdattr PRIVATE OPENEXR_DLL) -+ target_compile_definitions(exrstdattr-${OpenEXR_VERSION_MAJOR} PRIVATE OPENEXR_DLL) - endif() --- -2.32.0 - diff --git a/media-libs/openexr/files/openexr-3.1.5-Add-missing-include-cstdint-required-by-gcc-13-1264.patch b/media-libs/openexr/files/openexr-3.1.5-Add-missing-include-cstdint-required-by-gcc-13-1264.patch new file mode 100644 index 000000000000..3b104089350e --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.5-Add-missing-include-cstdint-required-by-gcc-13-1264.patch @@ -0,0 +1,44 @@ +From https://github.com/AcademySoftwareFoundation/openexr/commit/c5763cfdf59ef4880dacdb11664782822a0976cd +From: Cary Phillips <cary@ilm.com> +Date: Sun, 31 Jul 2022 13:36:03 -0700 +Subject: [PATCH 1/4] Add missing #include <cstdint> required by gcc-13 (#1264) + +Originally submitted as #1262, thanks. + +Signed-off-by: Cary Phillips <cary@ilm.com> + +Adapted changes in exrcheck/main.cpp for 3.1.5 code base on Gentoo (different +ordering of #included header files compared to current HEAD). +--- a/src/bin/exrcheck/main.cpp ++++ b/src/bin/exrcheck/main.cpp +@@ -4,6 +4,7 @@ + #include <ImfCheckFile.h> + #include <ImathConfig.h> + ++#include <cstdint> + #include <iostream> + #include <fstream> + #include <string.h> +--- a/src/lib/OpenEXR/ImfDeepTiledInputFile.h ++++ b/src/lib/OpenEXR/ImfDeepTiledInputFile.h +@@ -19,6 +19,7 @@ + + #include "ImfTileDescription.h" + ++#include <cstdint> + #include <ImathBox.h> + + OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER +--- a/src/lib/OpenEXR/ImfDeepTiledInputPart.h ++++ b/src/lib/OpenEXR/ImfDeepTiledInputPart.h +@@ -10,6 +10,7 @@ + + #include "ImfTileDescription.h" + ++#include <cstdint> + #include <ImathBox.h> + + OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER +-- +2.37.3 + diff --git a/media-libs/openexr/files/openexr-3.1.5-add-missed-include-cstdint-statement.patch b/media-libs/openexr/files/openexr-3.1.5-add-missed-include-cstdint-statement.patch new file mode 100644 index 000000000000..77ca274703cc --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.5-add-missed-include-cstdint-statement.patch @@ -0,0 +1,21 @@ +https://github.com/AcademySoftwareFoundation/openexr/pull/1276 + +From 974b14f67e89dddb6710364034116b3f7b9e0247 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Thu, 15 Sep 2022 18:58:01 +0200 +Subject: [PATCH] add missed #include <cstdint> statement + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- a/src/lib/OpenEXR/ImfTiledMisc.h ++++ b/src/lib/OpenEXR/ImfTiledMisc.h +@@ -19,6 +19,7 @@ + + #include <stdio.h> + #include <vector> ++#include <cstdint> + + OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER + +-- +2.37.3 + diff --git a/media-libs/openexr/files/openexr-3.1.5-drop-failing-testDwaLookups.patch b/media-libs/openexr/files/openexr-3.1.5-drop-failing-testDwaLookups.patch new file mode 100644 index 000000000000..7579ddd23156 --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.5-drop-failing-testDwaLookups.patch @@ -0,0 +1,29 @@ +From 6f3c61b994e9a503fcc9649cba439d81f40901d0 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Tue, 27 Sep 2022 07:29:11 +0200 +Subject: [PATCH] drop failing testDwaLookups + +On x86_32 testDwaLookups fails + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- a/src/test/OpenEXRTest/main.cpp ++++ b/src/test/OpenEXRTest/main.cpp +@@ -65,7 +65,6 @@ + #include "testDwaCompressorSimd.h" + #include "testRle.h" + #include "testB44ExpLogTable.h" +-#include "testDwaLookups.h" + #include "testIDManifest.h" + + #include "tmpDir.h" +@@ -229,7 +228,6 @@ main (int argc, char *argv[]) + TEST (testDwaCompressorSimd, "basic"); + TEST (testRle, "core"); + TEST (testB44ExpLogTable, "core"); +- TEST (testDwaLookups, "core"); + TEST (testIDManifest, "core"); + + // NB: If you add a test here, make sure to enumerate it in the +-- +2.37.3 + diff --git a/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch b/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch new file mode 100644 index 000000000000..2b7a31ac694d --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch @@ -0,0 +1,19 @@ +--- a/src/lib/Iex/IexMathFpu.cpp ++++ b/src/lib/Iex/IexMathFpu.cpp +@@ -251,14 +251,14 @@ + inline void + restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) + { +-# if defined(__GLIBC__) && defined(__i386__) ++# if defined(__linux__) && defined(__i386__) + setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); + #else + setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal); + # endif + + _fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs); +-# if defined(__GLIBC__) && defined(__i386__) ++# if defined(__linux__) && defined(__i386__) + setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); + #else + setMxcsr (kfp->mxcsr, clearExceptions); diff --git a/media-libs/openexr/files/openexr-3.1.7-musl-i386.patch b/media-libs/openexr/files/openexr-3.1.7-musl-i386.patch new file mode 100644 index 000000000000..e2bedf6e7a12 --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.7-musl-i386.patch @@ -0,0 +1,19 @@ +--- a/src/lib/Iex/IexMathFpu.cpp ++++ b/src/lib/Iex/IexMathFpu.cpp +@@ -251,14 +251,14 @@ + inline void + restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) + { +-# if (defined(__GLIBC__) && defined(__i386__)) || defined(__ANDROID_API__) ++# if (defined(__linux__) && defined(__i386__)) || defined(__ANDROID_API__) + setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); + #else + setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal); + # endif + + _fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs); +-# if defined(__GLIBC__) && defined(__i386__) ++# if defined(__linux__) && defined(__i386__) + setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); + #else + setMxcsr (kfp->mxcsr, clearExceptions); diff --git a/media-libs/openexr/files/openexr-3.2.1-bintests-iff-utils.patch b/media-libs/openexr/files/openexr-3.2.1-bintests-iff-utils.patch new file mode 100644 index 000000000000..c5c699b489fe --- /dev/null +++ b/media-libs/openexr/files/openexr-3.2.1-bintests-iff-utils.patch @@ -0,0 +1,14 @@ +diff --git a/src/test/bin/CMakeLists.txt b/src/test/bin/CMakeLists.txt +index e53b879..ad0190d 100644 +--- a/src/test/bin/CMakeLists.txt ++++ b/src/test/bin/CMakeLists.txt +@@ -3,6 +3,9 @@ + + if(BUILD_TESTING) + ++ if(NOT OPENEXR_BUILD_TOOLS) ++ return() ++ endif() + find_package(Python3 COMPONENTS Interpreter) + if (NOT Python3_FOUND) + message(STATUS "Python3 not found: skipping bin tests") diff --git a/media-libs/openexr/metadata.xml b/media-libs/openexr/metadata.xml index 8e60441561f5..e70affd96c19 100644 --- a/media-libs/openexr/metadata.xml +++ b/media-libs/openexr/metadata.xml @@ -2,8 +2,8 @@ <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person" proxied="yes"> - <email>waebbl-gentoo@posteo.net</email> - <name>Bernd Waibel</name> + <email>negril.nx+gentoo@gmail.com</email> + <name>Paul Zander</name> </maintainer> <maintainer type="project" proxied="proxy"> <email>proxy-maint@gentoo.org</email> diff --git a/media-libs/openexr/openexr-2.5.6.ebuild b/media-libs/openexr/openexr-2.5.6.ebuild deleted file mode 100644 index ec9bb6f201d0..000000000000 --- a/media-libs/openexr/openexr-2.5.6.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -inherit cmake-multilib flag-o-matic toolchain-funcs - -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://www.openexr.com/" -SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${P}/OpenEXR" - -LICENSE="BSD" -SLOT="0/25" # based on SONAME -KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" -IUSE="cpu_flags_x86_avx doc examples static-libs utils test" -RESTRICT="!test? ( test )" - -RDEPEND=" - ~media-libs/ilmbase-${PV}:=[static-libs?,${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -DOCS=( PATENTS README.md ) - -src_prepare() { - # Fix path for testsuite - sed -i -e "s:/var/tmp/:${T}:" "${S}"/IlmImfTest/tmpDir.h || die "failed to set temp path for tests" - - if use abi_x86_32 && use test; then - eapply "${FILESDIR}/${PN}-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch" - fi - - multilib_foreach_abi cmake_src_prepare -} - -multilib_src_configure() { - local mycmakeargs=( - -DBUILD_TESTING=$(usex test) - -DINSTALL_OPENEXR_DOCS=$(usex doc) - -DINSTALL_OPENEXR_EXAMPLES=$(usex examples) - -DOPENEXR_BUILD_BOTH_STATIC_SHARED=$(usex static-libs) - -DOPENEXR_BUILD_UTILS=$(usex utils) - -DOPENEXR_INSTALL_PKG_CONFIG=ON - -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy - ) - - cmake_src_configure -} - -multilib_src_install_all() { - if use doc; then - DOCS+=( doc/*.pdf ) - fi - einstalldocs - - use examples && docompress -x /usr/share/doc/${PF}/examples -} diff --git a/media-libs/openexr/openexr-2.5.7.ebuild b/media-libs/openexr/openexr-2.5.7.ebuild deleted file mode 100644 index 241131a5bc3a..000000000000 --- a/media-libs/openexr/openexr-2.5.7.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -inherit cmake-multilib flag-o-matic toolchain-funcs - -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://www.openexr.com/" -SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${P}/OpenEXR" - -LICENSE="BSD" -SLOT="0/25" # based on SONAME -KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ~ppc ~ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" -IUSE="cpu_flags_x86_avx doc examples static-libs utils test" -RESTRICT="!test? ( test )" - -RDEPEND=" - ~media-libs/ilmbase-${PV}:=[static-libs?,${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -DOCS=( PATENTS README.md ) - -src_prepare() { - # Fix path for testsuite - sed -i -e "s:/var/tmp/:${T}:" "${S}"/IlmImfTest/tmpDir.h || die "failed to set temp path for tests" - - # disable failing tests on various arches - if use test; then - if use abi_x86_32; then - eapply "${FILESDIR}/${PN}-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch" - fi - - # Technically this doesn't disable anything, it just gives this test time to complete. - # Could probably be applied unconditionally but will leave this to the maintainers. - if use riscv; then - eapply "${FILESDIR}/${P}-0002-increase-IlmImfTest-timeout.patch" - fi - - if use sparc; then - eapply "${FILESDIR}/${P}-0001-disable-testRgba-on-sparc.patch" - fi - fi - - multilib_foreach_abi cmake_src_prepare -} - -multilib_src_configure() { - local mycmakeargs=( - -DBUILD_TESTING=$(usex test) - -DINSTALL_OPENEXR_DOCS=$(usex doc) - -DINSTALL_OPENEXR_EXAMPLES=$(usex examples) - -DOPENEXR_BUILD_BOTH_STATIC_SHARED=$(usex static-libs) - -DOPENEXR_BUILD_UTILS=$(usex utils) - -DOPENEXR_INSTALL_PKG_CONFIG=ON - -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy - ) - - cmake_src_configure -} - -multilib_src_install_all() { - if use doc; then - DOCS+=( doc/*.pdf ) - fi - einstalldocs - - use examples && docompress -x /usr/share/doc/${PF}/examples -} diff --git a/media-libs/openexr/openexr-3.0.5.ebuild b/media-libs/openexr/openexr-3.0.5.ebuild deleted file mode 100644 index 242e04c95413..000000000000 --- a/media-libs/openexr/openexr-3.0.5.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake flag-o-matic toolchain-funcs - -MY_PN=OpenEXR -MY_PV=$(ver_cut 1) -MY_P=${MY_PN}-${MY_PV} - -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://www.openexr.com/" -SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="3/29" # based on SONAME -# imath needs keywording: arm{,64}, hppa, ia64, ppc{,64}, sparc, x64-macos, x86-solaris -KEYWORDS="~amd64 ~ia64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" -IUSE="cpu_flags_x86_avx doc examples large-stack static-libs utils test threads" -RESTRICT="!test? ( test )" - -RDEPEND=" - ~dev-libs/imath-${PV}:= - sys-libs/zlib -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${P}-0001-changes-needed-for-proper-slotting.patch - "${FILESDIR}"/${P}-0002-add-version-to-binaries-for-slotting.patch -) - -DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md docs/SymbolVisibility.md ) - -src_prepare() { - # Fix path for testsuite - sed -e "s:/var/tmp/:${T}:" \ - -i "${S}"/src/test/${MY_PN}{,Fuzz,Util}Test/tmpDir.h || die "failed to set temp path for tests" - - cmake_src_prepare - - mv "${S}"/cmake/${MY_PN}.pc.in "${S}"/cmake/${MY_P}.pc.in || die -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=$(usex !static-libs) - -DBUILD_TESTING=$(usex test) - -DOPENEXR_BUILD_UTILS=$(usex utils) - -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) - -DOPENEXR_ENABLE_THREADING=$(usex threads) - -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) - -DOPENEXR_INSTALL_PKG_CONFIG=ON - -DOPENEXR_INSTALL_TOOLS=$(usex utils) - -DOPENEXR_OUTPUT_SUBDIR="${MY_P}" - -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy - ) - - use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) - - cmake_src_configure -} - -src_install() { - if use doc; then - DOCS+=( docs/*.pdf ) - fi - use examples && docompress -x /usr/share/doc/${PF}/examples - cmake_src_install - - cat > "${T}"/99${PN}3 <<-EOF || die - LDPATH=/usr/$(get_libdir)/${MY_P} - EOF - doenvd "${T}"/99${PN}3 -} diff --git a/media-libs/openexr/openexr-3.1.11.ebuild b/media-libs/openexr/openexr-3.1.11.ebuild new file mode 100644 index 000000000000..71969a113652 --- /dev/null +++ b/media-libs/openexr/openexr-3.1.11.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="amd64 ~arm ~arm64 ~loong -ppc ~ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cpu_flags_x86_avx examples large-stack utils test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/imath-3.1.6:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch ) +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + if use x86; then + eapply "${FILESDIR}"/${PN}-3.1.5-drop-failing-testDwaLookups.patch + fi + + cmake_src_prepare +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DBUILD_DOCS=OFF # needs sphinx_press_theme which we don't have in ::gentoo + -DBUILD_TESTING=$(usex test) + -DOPENEXR_BUILD_TOOLS=$(usex utils) + -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) + -DOPENEXR_ENABLE_THREADING=$(usex threads) + -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) + -DOPENEXR_INSTALL_PKG_CONFIG=ON + -DOPENEXR_INSTALL_TOOLS=$(usex utils) + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + ) + + use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x /usr/share/doc/${PF}/examples + + cmake_src_install +} diff --git a/media-libs/openexr/openexr-3.1.12.ebuild b/media-libs/openexr/openexr-3.1.12.ebuild new file mode 100644 index 000000000000..bc37e4bd424e --- /dev/null +++ b/media-libs/openexr/openexr-3.1.12.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="~amd64 ~arm ~arm64 ~loong -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cpu_flags_x86_avx examples large-stack utils test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/imath-3.1.6:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch ) +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + if use x86; then + eapply "${FILESDIR}"/${PN}-3.1.5-drop-failing-testDwaLookups.patch + fi + + cmake_src_prepare +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DBUILD_DOCS=OFF # needs sphinx_press_theme which we don't have in ::gentoo + -DBUILD_TESTING=$(usex test) + -DOPENEXR_BUILD_TOOLS=$(usex utils) + -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) + -DOPENEXR_ENABLE_THREADING=$(usex threads) + -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) + -DOPENEXR_INSTALL_PKG_CONFIG=ON + -DOPENEXR_INSTALL_TOOLS=$(usex utils) + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + ) + + use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x /usr/share/doc/${PF}/examples + + cmake_src_install +} diff --git a/media-libs/openexr/openexr-3.1.1.ebuild b/media-libs/openexr/openexr-3.1.5-r1.ebuild index 572fb41e9506..8ec80d3071e3 100644 --- a/media-libs/openexr/openexr-3.1.1.ebuild +++ b/media-libs/openexr/openexr-3.1.5-r1.ebuild @@ -1,36 +1,38 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake flag-o-matic toolchain-funcs +inherit cmake flag-o-matic MY_PN=OpenEXR -MY_PV=$(ver_cut 1) -MY_P=${MY_PN}-${MY_PV} DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://www.openexr.com/" +HOMEPAGE="https://openexr.com/" SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" -SLOT="3/30" # based on SONAME -# imath needs keywording: x64-macos, x86-solaris -KEYWORDS="~amd64 ~ia64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" -IUSE="cpu_flags_x86_avx doc examples large-stack static-libs utils test threads" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="amd64 ~arm arm64 ~loong -ppc ~ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" RESTRICT="!test? ( test )" RDEPEND=" - >=dev-libs/imath-3.1.0:= + >=dev-libs/imath-${PV}:= sys-libs/zlib " DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" +BDEPEND=" + doc? ( dev-python/breathe ) + virtual/pkgconfig +" PATCHES=( - "${FILESDIR}"/${P}-0001-changes-needed-for-proper-slotting.patch - "${FILESDIR}"/${P}-0002-add-version-to-binaries-for-slotting.patch - "${FILESDIR}"/${P}-0003-disable-failing-test.patch + "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch + "${FILESDIR}"/${P}-Add-missing-include-cstdint-required-by-gcc-13-1264.patch + "${FILESDIR}"/${P}-add-missed-include-cstdint-statement.patch + "${FILESDIR}"/${P}-musl-i386.patch ) DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md docs/SymbolVisibility.md ) @@ -40,23 +42,28 @@ src_prepare() { sed -e "s:/var/tmp/:${T}:" \ -i "${S}"/src/test/${MY_PN}{,Fuzz,Util}Test/tmpDir.h || die "failed to set temp path for tests" - cmake_src_prepare + if use x86; then + eapply "${FILESDIR}"/${P}-drop-failing-testDwaLookups.patch + fi - mv "${S}"/cmake/${MY_PN}.pc.in "${S}"/cmake/${MY_P}.pc.in || die + cmake_src_prepare } src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + local mycmakeargs=( - -DBUILD_SHARED_LIBS=$(usex !static-libs) -DBUILD_TESTING=$(usex test) + -DDOCS=$(usex doc) -DOPENEXR_BUILD_TOOLS=$(usex utils) -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) -DOPENEXR_ENABLE_THREADING=$(usex threads) -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) -DOPENEXR_INSTALL_PKG_CONFIG=ON -DOPENEXR_INSTALL_TOOLS=$(usex utils) - -DOPENEXR_OUTPUT_SUBDIR="${MY_P}" - -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy ) use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) @@ -65,13 +72,7 @@ src_configure() { } src_install() { - if use doc; then - DOCS+=( docs/*.pdf ) - fi use examples && docompress -x /usr/share/doc/${PF}/examples - cmake_src_install - newenvd - 99${PN}3 <<-EOF - LDPATH=/usr/$(get_libdir)/${MY_P} - EOF + cmake_src_install } diff --git a/media-libs/openexr/openexr-3.1.7.ebuild b/media-libs/openexr/openexr-3.1.7.ebuild new file mode 100644 index 000000000000..cedfef02a75b --- /dev/null +++ b/media-libs/openexr/openexr-3.1.7.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="amd64 ~arm arm64 ~loong -ppc ~ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cpu_flags_x86_avx examples large-stack utils test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/imath-3.1.6:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch + "${FILESDIR}"/${PN}-3.1.7-musl-i386.patch +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + if use x86; then + eapply "${FILESDIR}"/${PN}-3.1.5-drop-failing-testDwaLookups.patch + fi + + cmake_src_prepare +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DBUILD_DOCS=OFF # needs sphinx_press_theme which we don't have in ::gentoo + -DBUILD_TESTING=$(usex test) + -DOPENEXR_BUILD_TOOLS=$(usex utils) + -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) + -DOPENEXR_ENABLE_THREADING=$(usex threads) + -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) + -DOPENEXR_INSTALL_PKG_CONFIG=ON + -DOPENEXR_INSTALL_TOOLS=$(usex utils) + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + ) + + use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x /usr/share/doc/${PF}/examples + + cmake_src_install +} diff --git a/media-libs/openexr/openexr-3.2.3.ebuild b/media-libs/openexr/openexr-3.2.3.ebuild new file mode 100644 index 000000000000..29c1e2625355 --- /dev/null +++ b/media-libs/openexr/openexr-3.2.3.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + utils? ( + https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz + -> openexr-images-1.0.tar.gz + ) + ) +" + +LICENSE="BSD" +SLOT="0/31" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="~amd64 ~arm ~arm64 ~loong -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" +REQUIRED_USE="doc? ( utils )" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/libdeflate[zlib] + >=dev-libs/imath-3.1.6:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( sys-apps/help2man ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.1-bintests-iff-utils.patch" +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + sed -e "s:if(INSTALL_DOCS):if(OPENEXR_INSTALL_DOCS):" \ + -i docs/CMakeLists.txt || die + + cmake_src_prepare + + if use test && use utils; then + IMAGES=( + Beachball/multipart.0001.exr + Beachball/singlepart.0001.exr + Chromaticities/Rec709.exr + Chromaticities/Rec709_YC.exr + Chromaticities/XYZ.exr + Chromaticities/XYZ_YC.exr + LuminanceChroma/Flowers.exr + LuminanceChroma/Garden.exr + MultiResolution/ColorCodedLevels.exr + MultiResolution/WavyLinesCube.exr + MultiResolution/WavyLinesLatLong.exr + MultiView/Adjuster.exr + TestImages/GammaChart.exr + TestImages/GrayRampsHorizontal.exr + v2/LeftView/Balls.exr + v2/Stereo/Trunks.exr + ) + + mkdir -p "${BUILD_DIR}/src/test/bin" || die + + for image in "${IMAGES[@]}"; do + mkdir -p "${BUILD_DIR}/src/test/bin/$(dirname "${image}")" || die + cp -a "${WORKDIR}/openexr-images-1.0/${image}" "${BUILD_DIR}/src/test/bin/${image}" || die + done + fi + +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DOPENEXR_CXX_STANDARD="17" + + -DBUILD_SHARED_LIBS="yes" + -DBUILD_TESTING="$(usex test)" + -DBUILD_WEBSITE="no" + + -DOPENEXR_BUILD_EXAMPLES="$(usex examples)" + -DOPENEXR_BUILD_PYTHON="no" + -DOPENEXR_BUILD_TOOLS="$(usex utils)" + -DOPENEXR_ENABLE_LARGE_STACK="$(usex large-stack)" + -DOPENEXR_ENABLE_THREADING="$(usex threads)" + + -DOPENEXR_INSTALL="yes" + -DOPENEXR_INSTALL_DOCS="$(usex doc)" + -DOPENEXR_INSTALL_PKG_CONFIG="yes" + -DOPENEXR_INSTALL_TOOLS="$(usex utils)" + + -DOPENEXR_USE_CLANG_TIDY="no" # don't look for clang-tidy + + -DOPENEXR_FORCE_INTERNAL_DEFLATE="no" + -DOPENEXR_FORCE_INTERNAL_IMATH="no" + ) + if use test; then + # OPENEXR_RUN_FUZZ_TESTS depends on BUILD_TESTING, see + # - https://bugs.gentoo.org/925128 + # - https://openexr.com/en/latest/install.html#component-options + + # NOTE: the fuzz tests are very slow + mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS="ON" ) + fi + + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=() + + use x86 && CMAKE_SKIP_TESTS+=( + '^OpenEXR.testDwaLookups$' + ) + + cmake_src_test +} + +src_install() { + use examples && docompress -x "/usr/share/doc/${PF}/examples" + + cmake_src_install +} |