summaryrefslogtreecommitdiff
path: root/repo/openexr
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/openexr
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/openexr')
-rw-r--r--repo/openexr/fix-x86.patch33
-rw-r--r--repo/openexr/openexr.xibuild28
2 files changed, 61 insertions, 0 deletions
diff --git a/repo/openexr/fix-x86.patch b/repo/openexr/fix-x86.patch
new file mode 100644
index 0000000..49b62a5
--- /dev/null
+++ b/repo/openexr/fix-x86.patch
@@ -0,0 +1,33 @@
+From 0293978345d9b9188da36e48aa5fa419f81a57ac Mon Sep 17 00:00:00 2001
+From: Leon Marz <main@lmarz.org>
+Date: Mon, 18 Apr 2022 10:35:52 +0200
+Subject: [PATCH] fix x86
+
+---
+ src/lib/Iex/IexMathFpu.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lib/Iex/IexMathFpu.cpp b/src/lib/Iex/IexMathFpu.cpp
+index b73e98f..2482c36 100644
+--- a/src/lib/Iex/IexMathFpu.cpp
++++ b/src/lib/Iex/IexMathFpu.cpp
+@@ -251,14 +251,14 @@ restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
+ inline void
+ restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
+ {
+-# if defined(__GLIBC__) && defined(__i386__)
++# if 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(__i386__)
+ setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions);
+ #else
+ setMxcsr (kfp->mxcsr, clearExceptions);
+--
+2.35.2
+
diff --git a/repo/openexr/openexr.xibuild b/repo/openexr/openexr.xibuild
new file mode 100644
index 0000000..94647c1
--- /dev/null
+++ b/repo/openexr/openexr.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="openexr"
+DESC="A high dynamic-range image file format library"
+
+MAKEDEPS="boost chrpath cmake ninja zlib"
+
+PKG_VER=3.1.5
+SOURCE="https://github.com/openexr/openexr/archive/v$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-x86.patch
+"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ $CMAKE_CROSSOPTS
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+