summaryrefslogtreecommitdiffstats
path: root/extra/fftw/Pkgfile
blob: 9b29dd8dc77e45eb58fc3f8f6687545784a5dfd8 (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
# 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: glibc, bash

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

# notes:
# http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69
# http://www.fftw.org/faq/section2.html#singleprec
# http://www.fftw.org/fftw3_doc/Precision.html#Precision

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
}