2006-11-21 23:43:30 +11:00
|
|
|
# Description: C subroutine library for computing discrete Fourier transform.
|
|
|
|
# URL: http://www.fftw.org/
|
2008-03-26 13:45:31 +11:00
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
2006-11-21 23:43:30 +11:00
|
|
|
# Packager: acrux, acrux at linuxmail dot org
|
2007-08-20 04:31:12 +10:00
|
|
|
# Depends on:
|
2008-01-27 01:51:33 +11:00
|
|
|
# Optional: gcc-fortran
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
name=fftw
|
2008-11-18 18:22:05 +11:00
|
|
|
version=3.2
|
|
|
|
release=1
|
|
|
|
source=(http://www.fftw.org/$name-$version.tar.gz)
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
build() {
|
2008-11-18 18:22:05 +11:00
|
|
|
cd $name-$version
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
local config='
|
|
|
|
--prefix=/usr
|
|
|
|
--mandir=/usr/man
|
|
|
|
--enable-threads
|
|
|
|
--enable-type-prefix
|
|
|
|
--with-gnu-ld
|
2008-01-27 05:46:05 +11:00
|
|
|
--disable-nls
|
|
|
|
--enable-shared'
|
2008-01-27 01:51:33 +11:00
|
|
|
|
|
|
|
# compiling long double precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
2008-01-27 01:51:33 +11:00
|
|
|
$config \
|
|
|
|
--enable-long-double
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
make
|
2007-02-23 15:10:12 +11:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
make clean
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
# compiling single precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
2008-01-27 01:51:33 +11:00
|
|
|
$config \
|
|
|
|
--enable-single
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
make
|
2007-02-23 15:10:12 +11:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
make clean
|
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
# compiling double precision library
|
2007-02-23 15:10:12 +11:00
|
|
|
./configure \
|
2008-01-27 01:51:33 +11:00
|
|
|
$config
|
2007-02-23 15:10:12 +11:00
|
|
|
|
2008-01-27 01:51:33 +11:00
|
|
|
make
|
2007-02-23 15:10:12 +11:00
|
|
|
make DESTDIR=$PKG install
|
2008-01-27 01:51:33 +11:00
|
|
|
rm -r $PKG/usr/share
|
2006-11-21 23:43:30 +11:00
|
|
|
}
|
|
|
|
|