Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/libjpeg-turbo
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-26 19:57:08 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-26 19:57:08 +0200
commit84b3a5afa9ef5b1b544c4d6818044190902c5de8 (patch)
tree96def4dfe7eebf2e1d7b473dda2628bab46a9377 /extra/libjpeg-turbo
parent936ea7238aa2601a0466560d39930ca5a8a5657c (diff)
extra/libjpeg-turbo: i486 no SIMD and no java
Diffstat (limited to 'extra/libjpeg-turbo')
-rw-r--r--extra/libjpeg-turbo/PKGBUILD18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/libjpeg-turbo/PKGBUILD b/extra/libjpeg-turbo/PKGBUILD
new file mode 100644
index 00000000..e33bc686
--- /dev/null
+++ b/extra/libjpeg-turbo/PKGBUILD
@@ -0,0 +1,18 @@
+if [ "${CARCH}" = "i486" ]; then
+ # no Java
+ makedepends=(${makedepends[@]//jdk8-openjdk/})
+ eval "$(
+ declare -f build | \
+ sed '
+ s/-DWITH_JAVA=1/-DWITH_JAVA=0/
+ '
+ )"
+
+ # no SIMD optimizations
+ eval "$(
+ declare -f build | \
+ sed '
+ s/cmake/cmake -DWITH_SIMD=0/
+ '
+ )"
+fi