diff options
Diffstat (limited to 'extra/fftw')
-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 db4322f0b..c689801ea 100644 --- a/extra/fftw/PKGBUILD +++ b/extra/fftw/PKGBUILD @@ -6,7 +6,7 @@ pkgname=fftw pkgver=3.3.2 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=('11a8c31186ff5a7d686a79a3f21b2530888e0dc2') 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 --enable-type-prefix" - # 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 } |