summaryrefslogtreecommitdiff
path: root/user/libjpeg-turbo
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-06-12 19:30:07 -0500
committerMax Rees <maxcrees@me.com>2020-06-12 19:30:07 -0500
commit8c8498bd45cbacc5d0436c9ac5cdd64b3d960405 (patch)
tree98d557aea8981595bc6f1b294cc38355567786aa /user/libjpeg-turbo
parente06ce962717e9524f5bb68880bca3ecfe3c47647 (diff)
downloadpackages-8c8498bd45cbacc5d0436c9ac5cdd64b3d960405.tar.gz
packages-8c8498bd45cbacc5d0436c9ac5cdd64b3d960405.tar.bz2
packages-8c8498bd45cbacc5d0436c9ac5cdd64b3d960405.tar.xz
packages-8c8498bd45cbacc5d0436c9ac5cdd64b3d960405.zip
user/libjpeg-turbo: set -DFLOATTEST=64bit for ppc
Diffstat (limited to 'user/libjpeg-turbo')
-rw-r--r--user/libjpeg-turbo/APKBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/libjpeg-turbo/APKBUILD b/user/libjpeg-turbo/APKBUILD
index 00b4ec314..cbecdd1a4 100644
--- a/user/libjpeg-turbo/APKBUILD
+++ b/user/libjpeg-turbo/APKBUILD
@@ -28,6 +28,13 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
+
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/344
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
+ case "$CARCH" in
+ ppc) _floattest=64bit;;
+ esac
+
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
@@ -36,6 +43,7 @@ build() {
-DCMAKE_C_FLAGS="$CFLAGS" \
-DENABLE_STATIC=OFF \
-DWITH_JPEG8=ON \
+ ${_floattest:+-DFLOATTEST="$_floattest"} \
${CMAKE_CROSSOPTS} .
make
}