2006-11-21 23:43:30 +11:00
|
|
|
# Description: C subroutine library for computing discrete Fourier transform.
|
|
|
|
# URL: http://www.fftw.org/
|
|
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
|
|
# Packager: acrux, acrux at linuxmail dot org
|
|
|
|
# Depends on: gcc-fortran
|
|
|
|
|
|
|
|
name=fftw
|
|
|
|
version=3.1.2
|
2007-02-23 15:10:12 +11:00
|
|
|
release=2
|
|
|
|
source=(http://www.fftw.org/fftw-$version.tar.gz)
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
build() {
|
2007-02-23 15:10:12 +11:00
|
|
|
cd fftw-$version
|
|
|
|
|
|
|
|
export CFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
|
|
|
|
export CXXFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
|
|
|
|
export FFLAGS="-O3 -mtune=$(uname -p) -pipe -fomit-frame-pointer"
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
local Configure='
|
|
|
|
--prefix=/usr
|
|
|
|
--mandir=/usr/man
|
|
|
|
--enable-threads
|
|
|
|
--enable-type-prefix
|
|
|
|
--with-gnu-ld
|
|
|
|
--disable-nls
|
2007-02-23 15:10:12 +11:00
|
|
|
--enable-shared'
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2007-02-23 15:10:12 +11:00
|
|
|
## compiling long double precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
|
|
|
$Configure \
|
|
|
|
--enable-long-double \
|
|
|
|
# --enable-k7
|
|
|
|
# --enable-sse
|
|
|
|
# --enable-sse2
|
|
|
|
# --enable-altivec
|
|
|
|
|
2007-02-23 15:10:12 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
make clean
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2007-02-23 15:10:12 +11:00
|
|
|
## compiling single precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
|
|
|
$Configure \
|
|
|
|
--enable-single \
|
|
|
|
# --enable-k7
|
|
|
|
# --enable-sse
|
|
|
|
# --enable-sse2
|
|
|
|
# --enable-altivec
|
|
|
|
|
2007-02-23 15:10:12 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
make clean
|
|
|
|
|
|
|
|
## compiling double precision library
|
|
|
|
./configure \
|
|
|
|
$Configure \
|
|
|
|
# --enable-k7
|
|
|
|
# --enable-sse
|
|
|
|
# --enable-sse2
|
|
|
|
# --enable-altivec
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share
|
2006-11-21 23:43:30 +11:00
|
|
|
}
|
|
|
|
|