summaryrefslogtreecommitdiff
path: root/extra/fftw/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/fftw/PKGBUILD')
-rw-r--r--extra/fftw/PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/extra/fftw/PKGBUILD b/extra/fftw/PKGBUILD
index 54a1c08ee..67a9365a0 100644
--- a/extra/fftw/PKGBUILD
+++ b/extra/fftw/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=fftw
pkgver=3.3.3
pkgrel=1
pkgdesc="A library for computing the discrete Fourier transform (DFT)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://www.fftw.org/"
depends=('glibc' 'bash')
@@ -30,15 +30,25 @@ build() {
mv ${pkgname}-${pkgver} ${pkgname}-${pkgver}-single
+ if [ "$CARCH" = "mips64el" ] ; then
+ sse2=""
+ sse=""
+ aligndouble=""
+ else
+ sse2="--enable-sse2"
+ sse="--enable-sse"
+ aligndouble="-malign-double"
+ fi
+
# use upstream default CFLAGS while keeping our -march/-mtune
- CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
+ CFLAGS+=" -O3 -fomit-frame-pointer $aligndouble -fstrict-aliasing -ffast-math"
CONFIGURE="./configure F77=gfortran --prefix=/usr \
--enable-shared --enable-threads"
# build double precision
cd ${srcdir}/${pkgname}-${pkgver}-double
- $CONFIGURE --enable-sse2
+ $CONFIGURE $sse2
make
# build & install long double precission
@@ -48,7 +58,7 @@ build() {
# build & install single precision
cd ${srcdir}/${pkgname}-${pkgver}-single
- $CONFIGURE --enable-float --enable-sse
+ $CONFIGURE --enable-float $sse
make
}