1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
4 pkgname=lib32-${_pkgbase}
7 pkgdesc="A library for computing the discrete Fourier transform (DFT) (32 bit)"
10 url="http://www.fftw.org/"
11 depends=('lib32-glibc' "${_pkgbase}")
12 makedepends=('gcc-fortran-multilib')
14 source=(http://www.fftw.org/${_pkgbase}-${pkgver}.tar.gz)
15 sha1sums=('e44493ba4babeacba184568e727876d9aed44205')
18 # http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69
19 # http://www.fftw.org/faq/section2.html#singleprec
20 # http://www.fftw.org/fftw3_doc/Precision.html#Precision
26 export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
28 cd "${srcdir}/${_pkgbase}-${pkgver}"
30 # use upstream default CFLAGS while keeping our -march/-mtune
31 CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
33 CONFIGURE="./configure F77=gfortran --prefix=/usr \
34 --enable-shared --enable-threads --libdir=/usr/lib32"
36 # build & install double precision
37 $CONFIGURE --enable-sse2
39 make DESTDIR="${pkgdir}" install
42 # Disabled single and long double precision - this is a difference from the
43 # original 'fftw'. This can be activated anytime by uncommenting the list below,
44 # but be warned that compilation time will drastically increase. -- josephgbr
46 ## build & install long double precission
47 #$CONFIGURE --enable-long-double
49 #make DESTDIR="${pkgdir}" install
52 ## build & install single precision
53 #$CONFIGURE --enable-float --enable-sse
55 #make DESTDIR="${pkgdir}" install
57 rm -rf "${pkgdir}/usr"/{bin,include,share}