Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-04-27 17:48:10 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-04-27 17:48:10 +0200
commit9a7b521aea91454a31116123f18cd40b8aebd443 (patch)
tree725840b5894dd030360db1e59411c23aa9c75515 /extra
parent208d9f0b12d6af46a1d7bd6c70d4ec9c6dce837b (diff)
extra/graphene: setting sse2 meson options correctly
Diffstat (limited to 'extra')
-rw-r--r--extra/graphene/PKGBUILD17
1 files changed, 17 insertions, 0 deletions
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