1 # $Id: PKGBUILD 34513 2009-04-09 21:32:12Z ronald $
2 # Maintainer: Ronald van Haren <ronald.archlinux.org>
3 # Contributor: damir <damir@archlinux.org>
4 # Contributor: twa022 <twa022@gmail.com>
10 pkgdesc="A library for computing the discrete Fourier transform (DFT)"
11 arch=('i686' 'x86_64')
13 url="http://www.fftw.org/"
14 depends=('glibc' 'bash')
15 makedepends=('gcc-fortran')
17 source=(http://www.fftw.org/${_pkgname}-${pkgver}.tar.gz)
19 conflicts=("$_pkgname")
20 provides=("$_pkgname=$pkgver")
23 # http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69
24 # http://www.fftw.org/faq/section2.html#singleprec
25 # http://www.fftw.org/fftw3_doc/Precision.html#Precision
28 cd ${srcdir}/${_pkgname}-${pkgver}
30 # build & install double precision
31 ./configure F77=gfortran --prefix=/usr \
32 --enable-double --enable-shared --enable-threads \
35 make DESTDIR=${pkgdir} install || return 1
38 # build & install long double precission
39 ./configure F77=gfortran --prefix=/usr \
40 --enable-long-double --enable-shared --enable-threads \
43 make DESTDIR=${pkgdir} install || return 1
46 # build + install single precision
47 ./configure F77=gfortran --prefix=/usr \
48 --enable-float --enable-shared --enable-threads \
51 make DESTDIR=${pkgdir} install || return 1
54 rm -f $pkgdir/usr/share/info/dir
55 gzip $pkgdir/usr/share/info/*
57 md5sums=('b616e5c91218cc778b5aa735fefb61ae')