diff options
author | root <root@rshg054.dnsready.net> | 2011-09-15 23:14:42 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-15 23:14:42 +0000 |
commit | 062d1ba2c4d5de52d97f339c5a3ac1199b8533f6 (patch) | |
tree | bd00d2e476e1761b3771b1849a3a207dd8cb5c57 /community/fftw2 | |
parent | d5effc9aadfb9ed5890376ca9497eef52fafcf83 (diff) |
Thu Sep 15 23:14:42 UTC 2011
Diffstat (limited to 'community/fftw2')
-rw-r--r-- | community/fftw2/PKGBUILD | 60 |
1 files changed, 39 insertions, 21 deletions
diff --git a/community/fftw2/PKGBUILD b/community/fftw2/PKGBUILD index 4198e96fc..e46a44e49 100644 --- a/community/fftw2/PKGBUILD +++ b/community/fftw2/PKGBUILD @@ -1,34 +1,52 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: damir <damir@archlinux.org> +# $Id: PKGBUILD 55583 2011-09-14 11:20:19Z andrea $ +# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> +# Contributor: damir <damir@archlinux.org> pkgname=fftw2 pkgver=2.1.5 -pkgrel=4 -pkgdesc="FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of both real and complex data, and of arbitrary input size. This is package is offering backwards compatibility version 2.x.y. of fftw." -arch=(i686 x86_64) +pkgrel=5 +pkgdesc="A C subroutine library for computing the discrete Fourier transform (DFT)" +arch=('i686' 'x86_64') url="http://www.fftw.org/" license=('GPL2') depends=('glibc') -options=(!libtool) -source=(http://www.fftw.org/fftw-${pkgver}.tar.gz) +makedepends=('gcc-fortran') +options=('!libtool') +source=("http://www.fftw.org/fftw-${pkgver}.tar.gz") md5sums=('8d16a84f3ca02a785ef9eb36249ba433') build() { - cd ${startdir}/src/fftw-${pkgver} - # build + install double precision + cd "${srcdir}" + + cp -r fftw-${pkgver} fftw-${pkgver}-double + + # build single precision + cd fftw-${pkgver} ./configure F77=gfortran --prefix=/usr \ - --enable-type-prefix --enable-shared \ - --enable-threads - make || return 1 - make DESTDIR=${startdir}/pkg install || return 1 + --enable-float \ + --enable-type-prefix \ + --enable-shared \ + --enable-threads \ + --infodir=/usr/share/info + make + cd ../ - make clean - - # build + install single precision + # build double precision + cd fftw-${pkgver}-double ./configure F77=gfortran --prefix=/usr \ - --enable-float --enable-type-prefix --enable-shared \ - --enable-threads - make || return 1 - #make prefix=$startdir/pkg/usr install || return 1 - make DESTDIR=${startdir}/pkg install || return 1 + --enable-type-prefix \ + --enable-shared \ + --enable-threads \ + --infodir=/usr/share/info + make +} + +package() { + # install single precision + cd "${srcdir}"/fftw-${pkgver} + make DESTDIR="${pkgdir}" install + + # install double precision + cd "${srcdir}"/fftw-${pkgver}-double + make DESTDIR="${pkgdir}" install } |