From f31ae7c54ff29bb63b767a5781a6fefcac491734 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Thu, 21 Mar 2024 19:40:10 +0200 Subject: extra/opencolorio: Fix SSE patching --- extra/opencolorio/OpenColorIO-2.1.1-no-sse2.patch | 12 ------------ extra/opencolorio/PKGBUILD | 14 ++------------ 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 extra/opencolorio/OpenColorIO-2.1.1-no-sse2.patch (limited to 'extra/opencolorio') diff --git a/extra/opencolorio/OpenColorIO-2.1.1-no-sse2.patch b/extra/opencolorio/OpenColorIO-2.1.1-no-sse2.patch deleted file mode 100644 index f6ad78c1..00000000 --- a/extra/opencolorio/OpenColorIO-2.1.1-no-sse2.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rauN OpenColorIO-2.1.1/share/cmake/utils/CompilerFlags.cmake OpenColorIO-2.1.1-no-sse2-patch/share/cmake/utils/CompilerFlags.cmake ---- OpenColorIO-2.1.1/share/cmake/utils/CompilerFlags.cmake 2021-12-16 20:19:03.000000000 +0100 -+++ OpenColorIO-2.1.1-no-sse2-patch/share/cmake/utils/CompilerFlags.cmake 2022-04-02 11:24:18.450648391 +0200 -@@ -86,7 +86,7 @@ - ############################################################################### - # Define if SSE2 can be used. - --include(CheckSupportSSE2) -+#include(CheckSupportSSE2) - - if(NOT HAVE_SSE2) - message(STATUS "Disabling SSE optimizations, as the target doesn't support them") diff --git a/extra/opencolorio/PKGBUILD b/extra/opencolorio/PKGBUILD index 7d8f94cf..2bed32b2 100644 --- a/extra/opencolorio/PKGBUILD +++ b/extra/opencolorio/PKGBUILD @@ -1,16 +1,6 @@ -# Disable SSE2 in the cmake probing (we cannot set it from outside, so -# cross-compilation or building in a chrooted environment fails) -source+=('OpenColorIO-2.1.1-no-sse2.patch') -sha512sums+=('8055b90d387e2cd674a25344b520d093ef8f761f294a77c71694f7ba93806a58350140b7e373e91432d555def5addd35fad4aca59518aab12b56c5b6106c4352') +# Disable SSE2 if [ "$CARCH" = 'i686' -o "$CARCH" = 'i486' ]; then eval "$( - { - declare -f prepare || \ - printf 'prepare() {\n}\n' - } \ - | sed ' - $i cd "$srcdir/OpenColorIO-$pkgver" \ - patch -Np1 -i "$srcdir/OpenColorIO-2.1.1-no-sse2.patch" - ' + declare -f build | sed 's/cmake /cmake -DOCIO_USE_SIMD=OFF /' )" fi -- cgit v1.2.3-70-g09d2