From 33e66e9b76d9100bece0da72f7da51643e00acad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> Date: Thu, 19 Nov 2015 14:01:30 +0000 Subject: [PATCH] main/fftw: fix arm build (neon works only with single precision) --- main/fftw/APKBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main/fftw/APKBUILD b/main/fftw/APKBUILD index 9df071f6d8eb..9bc7a4b46e3a 100644 --- a/main/fftw/APKBUILD +++ b/main/fftw/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=fftw pkgver=3.3.4 -pkgrel=1 +pkgrel=2 pkgdesc="fastest fourier transform in the west" url="http://www.fftw.org/" license="GPL" @@ -33,14 +33,14 @@ build() { long-double)_cf="--enable-long-double";; esac - if [ "$i" = "single" ] || [ "$i" = "double" ]; then - case "$CARCH" in - x86_64)_cf="$_cf --enable-sse2 --enable-avx";; - armhf)_cf="$_cf --enable-neon";; - esac - fi + case "$i--$CARCH" in + single--x86_64 | double--x86_64) + _cf="$_cf --enable-sse2 --enable-avx";; + single--arm*) + _cf="$_cf --enable-neon";; + esac - msg "Building for $i precision" + msg "Building for $i precision ($_cf)" cd "$_builddir"/$i ./configure \ --build=$CBUILD \ -- GitLab