diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:46:37 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:46:37 (GMT) |
commit | 8e6a771ec0549f45b472155c5e00435366a846ac (patch) | |
tree | d3340e39298a0f9c1e0585e0795f0ff43134c6ef /abs | |
parent | 8d5f9eddfaded22bdb0ff3c34d8bce4410107ab6 (diff) | |
download | linhes_pkgbuild-8e6a771ec0549f45b472155c5e00435366a846ac.zip linhes_pkgbuild-8e6a771ec0549f45b472155c5e00435366a846ac.tar.gz linhes_pkgbuild-8e6a771ec0549f45b472155c5e00435366a846ac.tar.bz2 |
fftw 3.3.2
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/fftw/PKGBUILD | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/abs/extra/fftw/PKGBUILD b/abs/extra/fftw/PKGBUILD index a4ca689..db4322f 100644 --- a/abs/extra/fftw/PKGBUILD +++ b/abs/extra/fftw/PKGBUILD @@ -1,49 +1,50 @@ -# $Id: PKGBUILD 20304 2008-12-02 10:48:00Z ronald $ +# $Id: PKGBUILD 159277 2012-05-20 10:35:50Z ronald $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=fftw -pkgver=3.2.2 +pkgver=3.3.2 pkgrel=1 pkgdesc="A library for computing the discrete Fourier transform (DFT)" arch=('i686' 'x86_64') license=('GPL2') url="http://www.fftw.org/" -depends=('glibc') -options=(!libtool) -source=(http://www.fftw.org/${pkgname}-${pkgver}.tar.gz) +depends=('glibc' 'bash') +makedepends=('gcc-fortran') +options=('!libtool') +source=("http://www.fftw.org/${pkgname}-${pkgver}.tar.gz") install=fftw.install +sha1sums=('11a8c31186ff5a7d686a79a3f21b2530888e0dc2') # notes: # http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69 # http://www.fftw.org/faq/section2.html#singleprec # http://www.fftw.org/fftw3_doc/Precision.html#Precision + build() { cd ${srcdir}/${pkgname}-${pkgver} - - # build & install double precision - ./configure F77=gfortran --prefix=/usr \ - --enable-shared || return 1 - make || return 1 - make DESTDIR=${pkgdir} install || return 1 + + # use upstream default CFLAGS while keeping our -march/-mtune + CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math" + + CONFIGURE="./configure F77=gfortran --prefix=/usr \ + --enable-shared --enable-threads --enable-type-prefix" + + # build & install double precision + $CONFIGURE --enable-sse2 + make + make DESTDIR=${pkgdir} install make clean # build & install long double precission - ./configure F77=gfortran --prefix=/usr \ - --enable-long-double --enable-shared || return 1 - make || return 1 - make DESTDIR=${pkgdir} install || return 1 + $CONFIGURE --enable-long-double + make + make DESTDIR=${pkgdir} install make clean - # build + install single precision - ./configure F77=gfortran --prefix=/usr \ - --enable-float --enable-shared || return 1 - make || return 1 - make DESTDIR=${pkgdir} install || return 1 - - # handle info files - rm -f $pkgdir/usr/share/info/dir - gzip $pkgdir/usr/share/info/* + # build & install single precision + $CONFIGURE --enable-float --enable-sse + make + make DESTDIR=${pkgdir} install } -md5sums=('b616e5c91218cc778b5aa735fefb61ae') |