From 9a7b521aea91454a31116123f18cd40b8aebd443 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 27 Apr 2021 17:48:10 +0200 Subject: extra/graphene: setting sse2 meson options correctly --- extra/graphene/PKGBUILD | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extra/graphene/PKGBUILD (limited to 'extra/graphene') diff --git a/extra/graphene/PKGBUILD b/extra/graphene/PKGBUILD new file mode 100644 index 00000000..692e4c8e --- /dev/null +++ b/extra/graphene/PKGBUILD @@ -0,0 +1,17 @@ +# enable SSE2 optimizations only on pentium4 +if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then + eval "$( + declare -f build | \ + sed ' + s/arch-meson/arch-meson -D sse2=false/ + ' + )" +fi +if [ "$CARCH" = 'pentium4' ]; then + eval "$( + declare -f build | \ + sed ' + s/arch-meson/arch-meson -D sse2=true/ + ' + )" +fi -- cgit v1.2.3-70-g09d2