summaryrefslogtreecommitdiff
path: root/community/fftw2/PKGBUILD
blob: 2980711e9c50d6e511e85a6e5d737e4ccf7c93fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $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=5
pkgdesc="A C subroutine library for computing the discrete Fourier transform (DFT)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.fftw.org/"
license=('GPL2')
depends=('glibc')
makedepends=('gcc-fortran')
options=('!libtool')
source=("http://www.fftw.org/fftw-${pkgver}.tar.gz")
md5sums=('8d16a84f3ca02a785ef9eb36249ba433')

build() {
  cd "${srcdir}"
  
  cp -r fftw-${pkgver} fftw-${pkgver}-double
 
  # build single precision
  cd fftw-${pkgver}
  ./configure F77=gfortran --prefix=/usr \
              --enable-float \
              --enable-type-prefix \
              --enable-shared \
              --enable-threads \
              --infodir=/usr/share/info
  make
  cd ../

  # build double precision
  cd fftw-${pkgver}-double
  ./configure F77=gfortran --prefix=/usr \
              --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
}