diff options
Diffstat (limited to 'extra/fftw/PKGBUILD')
-rw-r--r-- | extra/fftw/PKGBUILD | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/extra/fftw/PKGBUILD b/extra/fftw/PKGBUILD index 053915392..f70d86843 100644 --- a/extra/fftw/PKGBUILD +++ b/extra/fftw/PKGBUILD @@ -6,7 +6,7 @@ pkgname=fftw pkgver=3.3.1 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') @@ -25,26 +25,36 @@ sha1sums=('3fecc492f576503a6a509d2073bd82b3fe0aef13') build() { cd ${srcdir}/${pkgname}-${pkgver} + 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 & install double precision - $CONFIGURE --enable-sse2 + msg "Build & install double precision" + $CONFIGURE $sse2 make make DESTDIR=${pkgdir} install - make clean + make clean - # build & install long double precission + msg "build & install long double precission" $CONFIGURE --enable-long-double make make DESTDIR=${pkgdir} install make clean - # build & install single precision - $CONFIGURE --enable-float --enable-sse + msg "build & install single precision" + $CONFIGURE --enable-float $sse make make DESTDIR=${pkgdir} install } |