From 342a02795a8162a64863dd4af91b40a72eb3ed3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= Date: Mon, 10 Oct 2022 20:14:40 +0100 Subject: [PATCH] openexr: update to 3.1.5; adopt. --- common/shlibs | 5 +++ srcpkgs/openexr/patches/musl-_fpstate.patch | 21 ------------ .../openexr/patches/pkgconfig-prefix.patch | 15 -------- srcpkgs/openexr/template | 34 +++++++------------ 4 files changed, 17 insertions(+), 58 deletions(-) delete mode 100644 srcpkgs/openexr/patches/musl-_fpstate.patch delete mode 100644 srcpkgs/openexr/patches/pkgconfig-prefix.patch diff --git a/common/shlibs b/common/shlibs index 54c2d2e7423..71ddd09f345 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4217,3 +4217,8 @@ libpanel-1.so.1 libpanel-1.0.1_1 libqrtr.so.1 qrtr-ns-1.0_1 libbpf.so.1 libbpf-1.0.0_1 libImath-3_1.so.29 imath-3.1.5_1 +libIex-3_1.so.30 libopenexr-3.1.5_1 +libIlmThread-3_1.so.30 libopenexr-3.1.5_1 +libOpenEXR-3_1.so.30 libopenexr-3.1.5_1 +libOpenEXRCore-3_1.so.30 libopenexr-3.1.5_1 +libOpenEXRUtil-3_1.so.30 libopenexr-3.1.5_1 diff --git a/srcpkgs/openexr/patches/musl-_fpstate.patch b/srcpkgs/openexr/patches/musl-_fpstate.patch deleted file mode 100644 index 0584598bb38..00000000000 --- a/srcpkgs/openexr/patches/musl-_fpstate.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/IlmBase/IexMath/IexMathFpu.cpp 2019-12-01 15:42:08.143387128 +0100 -+++ b/IlmBase/IexMath/IexMathFpu.cpp 2019-12-01 15:43:02.402389927 +0100 -@@ -281,10 +281,18 @@ - inline void - restoreControlRegs (const ucontext_t & ucon, bool clearExceptions) - { -+#if defined(__GLIBC__) || 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__) - setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); -+#else -+ setMxcsr (kfp->mxcsr, clearExceptions); -+#endif - } - - #endif diff --git a/srcpkgs/openexr/patches/pkgconfig-prefix.patch b/srcpkgs/openexr/patches/pkgconfig-prefix.patch deleted file mode 100644 index d28d9a6e33d..00000000000 --- a/srcpkgs/openexr/patches/pkgconfig-prefix.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/OpenEXR/OpenEXR.pc.in 2019-09-18 03:02:06.000000000 +0200 -+++ b/OpenEXR/OpenEXR.pc.in 2019-12-01 17:30:08.680721453 +0100 -@@ -6,8 +6,8 @@ - prefix=@prefix@ --exec_prefix=@exec_prefix@ --libdir=@libdir@ --includedir=@includedir@ --OpenEXR_includedir=@includedir@/OpenEXR -+exec_prefix=${prefix}/@exec_prefix@ -+libdir=${prefix}/@libdir@ -+includedir=${prefix}/@includedir@ -+OpenEXR_includedir=${prefix}/@includedir@/OpenEXR - libsuffix=@LIB_SUFFIX_DASH@ - - Name: OpenEXR diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template index 3f1b59753c1..9a37d32f125 100644 --- a/srcpkgs/openexr/template +++ b/srcpkgs/openexr/template @@ -1,38 +1,28 @@ # Template file for 'openexr' pkgname=openexr -version=2.4.1 -revision=2 +version=3.1.5 +revision=1 build_style=cmake build_helper="qemu" hostmakedepends="pkg-config" -makedepends="ilmbase-devel zlib-devel" +makedepends="zlib-devel imath-devel" short_desc="High dynamic-range (HDR) image file format" -maintainer="Orphaned " +maintainer="André Cerqueira " license="BSD-3-Clause" homepage="https://www.openexr.com/" +changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr/main/CHANGES.md" distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" -checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1 +checksum=93925805c1fc4f8162b35f0ae109c4a75344e6decae5a240afdfce25f8a433ec -pre_configure() { - if [ "$CROSS_BUILD" ]; then - vsed -i IlmBase/Half/CMakeLists.txt \ - IlmBase/ImathTest/CMakeLists.txt \ - OpenEXR/IlmImf/CMakeLists.txt \ - -e "s; COMMAND ; COMMAND qemu-${XBPS_TARGET_QEMU_MACHINE}-static ;g" - fi -} +if [ "$XBPS_TARGET_WORDSIZE" = "32" ] +then + make_check=no # Test Fails in i868 + # See upstream: + # https://github.com/AcademySoftwareFoundation/openexr/issues/876 +fi post_install() { - local d f - vlicense LICENSE.md - - # Remove files which are already in ilmbase{,-devel} - for pkg in ilmbase ilmbase-devel; do - for f in $(xbps-query -Rf $pkg|awk '{print $1}'); do - rm -f "${DESTDIR}/$f" - done - done } libopenexr_package() {