# Description: A library for computing the discrete Fourier transform (DFT)
# URL: http://www.fftw.org/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on:

name=fftw
version=3.2.2
release=1
source=(http://www.fftw.org/$name-$version.tar.gz)


build() {
  cd $name-$version
  
 # build & install double precision
  ./configure F77=gfortran --prefix=/usr \
              --enable-shared
  make
  make DESTDIR=$PKG install
  make clean 

  # build & install long double precission
  ./configure F77=gfortran --prefix=/usr \
   --enable-long-double  --enable-shared
  make 
  make DESTDIR=$PKG install
  make clean

  # build + install single precision
  ./configure F77=gfortran --prefix=/usr \
              --enable-float --enable-shared 
  make 
  make DESTDIR=$PKG install
  rm $PKG/usr/share/info/dir
}