blob: 85014a1a4ef0ad20cb4ee55ca9fce478702cc101 (
plain)
1 # Description: C subroutine library for computing discrete Fourier transform.
2 # URL: http://www.fftw.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: acrux, acrux at linuxmail dot org
5 # Depends on:
6 # Optional: gcc-fortran
7
8 name=fftw
9 version=3.3.4
10 release=1
11 source=(http://www.fftw.org/$name-$version.tar.gz)
12
13 build() {
14 cd $name-$version
15
16 local config="\
17 --prefix=/usr \
18 --enable-threads \
19 --with-gnu-ld \
20 --enable-shared"
21
22 # compiling single precision library
23 ./configure \
24 $config \
25 --enable-single
26
27 make
28 make DESTDIR=$PKG install
29 make clean
30
31 # compiling double precision library
32 ./configure $config
33
34 make
35 make DESTDIR=$PKG install
36 make clean
37
38 # compiling long double precision library
39 ./configure \
40 $config \
41 --enable-long-double
42
43 make
44 make DESTDIR=$PKG install
45 make clean
46
47 # compiling quad precision library
48 ./configure \
49 $config \
50 --enable-quad-precision
51
52 make
53 make DESTDIR=$PKG install
54
55 # clean up
56 rm -r $PKG/usr/share/info
57 }
|