diff options
Diffstat (limited to 'media-libs/openexr')
-rw-r--r-- | media-libs/openexr/Manifest | 6 | ||||
-rw-r--r-- | media-libs/openexr/files/openexr-3.2.1-bintests-iff-utils.patch | 14 | ||||
-rw-r--r-- | media-libs/openexr/openexr-3.1.12.ebuild | 69 | ||||
-rw-r--r-- | media-libs/openexr/openexr-3.2.2.ebuild | 130 |
4 files changed, 219 insertions, 0 deletions
diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest index a834929ad522..cf8aa2a87205 100644 --- a/media-libs/openexr/Manifest +++ b/media-libs/openexr/Manifest @@ -2,10 +2,16 @@ AUX openexr-3.1.1-0003-disable-failing-test.patch 1193 BLAKE2B d4a40151e2c0b2278 AUX openexr-3.1.5-Add-missing-include-cstdint-required-by-gcc-13-1264.patch 1187 BLAKE2B 2e415fce94cf501b3780f6aff6bdc076db6395b53334d98484a8ac2d7b1e9ec0a5b85bc2199e7861cfb6870f81b843621ffb9a90c493cfb544b219f353362d87 SHA512 19431be0f2d8733265840ae9d428a9ddae823e37017e23d798a12a3390c879b1d8bcffd4b7d12bca8f7f929fe307fd4bff9f421830ca7b5607a188364f02bb8f AUX openexr-3.1.5-add-missed-include-cstdint-statement.patch 546 BLAKE2B 43a64e815ef6fb9ef6d0022560553f1f025dd0cea0b309a7126602b30440125d8aaca8b550c7f07778db4888499662fd3afdb6557c9ac67b98bb3238a7f4df0a SHA512 04d538237c9945eb33546098be4b34a3c82d93fa3f14655528bf8da49bc1e34402f74385d6d6f93fa2a724d7a495082c35bd0abbc5965119c52d5efa49229bce AUX openexr-3.1.5-drop-failing-testDwaLookups.patch 868 BLAKE2B 6ae9b57b222e038a57499e3b466f018840b0e358048283acea7519eca5f2a4140b9d553ad6cdca9bd449e8fc3d42fd84dae11a34f5c4264c3786b38a59ab4125 SHA512 f8cdab71c97953984ada16cf2a26fea0fce5ebfcfa465992a80080ad1882a3eecd925fc94bacdd60e1463a7c8a1678e93c89d9c7a9ec5e27726bcc98465f909f +AUX openexr-3.2.1-bintests-iff-utils.patch 399 BLAKE2B b2ba76b0fe8430cb6275bd7520ce307b8f44f642efaa90c36cea03c34b0b5d6e93cc4bc81cc30b662c3d58941696f87c76604dfd614742051e8a6be7af3115e7 SHA512 58deaacc1e81c46cccfa4190498cfbf964e1fcfef384d73f86b8b18e8348886579385f292317588f64f0f6fd1ef062465ed6253d7c7d672bdb49b1e43f8addc7 DIST openexr-3.1.11.tar.gz 20539852 BLAKE2B 9d57362c656a646a5b909063ff57eccfacbc70929a802561c2be71b050e97e7087221f78110f2686fcc1ea960d87880ccdbcb57b474f635a3392f3fa169ef3c5 SHA512 ebbad4b22315522f43cafefca77cf92ce38cac87f024c8dc6429aed04a6dad1f0a3d717faaab39c4c3605e440442952acc4630c5393754ea138929be4ad8a0d4 +DIST openexr-3.1.12.tar.gz 20540857 BLAKE2B 94a78e4e45f892b56f9a05cabad5cea999ff1844ff8569995f1f301e8599e0be1c214477f501f351c248eea141db22508eb764c1c91508399e69932026361c04 SHA512 0fce6a1322d74354a29ece9f9afeca1c4874c4d55079ec720f3ef21ab2ab950ec333f793f1ffad6634f57b40c4276af578b31ac8bc3e11856d7b903d5475e5eb 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.2.2.tar.gz 18825996 BLAKE2B 535d7798263ee63cbb79981bfd5b8edf4805acd672b7f98457876b7017840263bd6f1491dc63afcd3a66751a73fbb8463764c85ba06c18d59839d9f25a6769db SHA512 b6537a8218686bfad7e6d29ae087d0548624cce81308d31581d99b4b741de3223b22fb8748fe9223e4e3609761815bef5e1bcc55e06302aeaf25d9d9a6134bab +DIST openexr-images-1.0.tar.gz 252222962 BLAKE2B d57c458dfbd1b08c964429022b6e08a3309bf11cbd43c64e271ebc620dae6dbe70636e5221f47dabd7fe2aa0806f2cf3f3c9b3f55fd7f45b0a34f3e62b6029e7 SHA512 c1c83a26cd326d0fcda824daccb0044abad46f29e1bd2ceb1c38bc62b3e71f0aeef126dddc4517eb1cb9f7c9d0fe234276a48a754bdb7c7823e9aee459d8670a EBUILD openexr-3.1.11.ebuild 1880 BLAKE2B dd7d09c4fd911b7f7a2738636e507f3cec991b6dc1f8484b6be081f25eb4dbac92c2ef5a8de957172d43e732a9e1ad0fa6ab3e751d822178c20d3073c927f152 SHA512 fa177bdc3a9550420927dd9e6002df468520e76cbd0ce07c9038b7336e40067c1b699def09f05ccc12a7c0e24484c809ec6e3ac7dcff6b53cefb65346de73334 +EBUILD openexr-3.1.12.ebuild 1882 BLAKE2B 2f3cdb3ab5d11f88bb9d761e1b7c76bfb2466549679ee42fd7d0581f303dc01a7d014b39626677aaa2882feb01340845db9b3e1e7971baee62b028d4c5133c03 SHA512 aa1ff62a47fc6a6119d9f3d39fa122b7c3753a0f07384eba6c969ebd67e423b50716add203390a27c00af237c0407aa22b73bc36ab734a48265b26a5c7fae0d4 EBUILD openexr-3.1.5-r1.ebuild 2031 BLAKE2B 1cf7246aff474dbb3163e83665560cc311fd4e690fc1d1c8735a321af45cb113c4c753ee0b9b757f2d7a6ce473e5e1b37d5e501c401c5cec2dddc249b5701195 SHA512 623e93ca5b56f4cfc0a6f5b50db1ca4488071748a6531c80ae542bd0fb2fa5e176b01e87a99c592d46e1997e39e976183fdb5d39eefc64556b8cfff9ec56de89 EBUILD openexr-3.1.7.ebuild 1879 BLAKE2B d8130bb53dd321cfa0d805e513a314a6b47f443eb17d7814fb6050e2691142c419c9a58024503a46dbd3b07f0464a9b063ae8f7d6c8e16e0c4c980d1ea75eb1b SHA512 06fd0d6b8ae0f90bc538bfd5ebbc7133fdafa349810d04fec1da4d14aa17fb67d6c9be9398fd12fbee8bf31c23b4d3b48223860594f63b5b4320f8c4ca16531f +EBUILD openexr-3.2.2.ebuild 3269 BLAKE2B 99fc517503ed85900a3bec3eabe51c9077b2405314bb5471524411f2781b0a7991bf1f5a4fb9cebe5960993c69f56e203dc23b02167ae438827f6678ab34d90a SHA512 da2f3f5e0b9a7bedad5ed9dc82426cfecc9488a0b2b4cf9d37eb2e293041f8ffae0c3e4fd54e87f6c5622472c4b166e957df9ebe0f4f226f0a5712418161f57f MISC metadata.xml 797 BLAKE2B e9d8032b4c63b24e2e7b1874d46bbbcf4f31342c4540279d1ba243e69090c320e6d9caed29e15dee87f7fbfb4b806de3a1665b7a4385baa4107ea41a2ae74d32 SHA512 12f7cce7d5cee0a88e4c3f8babfa10f890d5b38c0131becafa46423dc642c2df03ac78b2e3bbcdb4846b929eeb7138e9b3d12cddbf1da984ac5446b6cc792dee 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/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.2.2.ebuild b/media-libs/openexr/openexr-3.2.2.ebuild new file mode 100644 index 000000000000..71b9a4937dcb --- /dev/null +++ b/media-libs/openexr/openexr-3.2.2.ebuild @@ -0,0 +1,130 @@ +# 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" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/libdeflate + >=dev-libs/imath-3.1.6:= + doc? ( + sys-apps/help2man + dev-python/sphinx-press-theme + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +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 + + if use x86; then + eapply "${FILESDIR}/${PN}-3.1.5-drop-failing-testDwaLookups.patch" + fi + + cmake_src_prepare + + if use test; then + if 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/$(dirname "${image}")/" || die + done + fi + 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_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 "$(usex utils)")" + -DOPENEXR_INSTALL_EXAMPLES="$(usex examples)" + -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" + -DOPENEXR_RUN_FUZZ_TESTS="$(usex test)" # NOTE expensive + ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x "/usr/share/doc/${PF}/examples" + + cmake_src_install +} |