# Description: C subroutine library for computing discrete Fourier transform. # URL: http://www.fftw.org/ # Maintainer: Danny Rawlins, monster dot romster at gmail dot com # Packager: acrux, acrux at linuxmail dot org # Depends on: # Optional: gcc-fortran name=fftw version=3.1.2 release=4 source=(http://www.fftw.org/fftw-$version.tar.gz) build() { cd fftw-$version # use -mtune to be processor-specific optimisations without # -march as this will give the best speed but wont be portable. export CFLAGS="-O3 $(echo $CFLAGS |sed -e 's/-O[s0-3] //')" export CXXFLAGS="-O3 $(echo $CXXFLAGS |sed -e 's/-O[s0-3] //')" export FFLAGS="-O3 $(echo $FFLAGS |sed -e 's/-O[s0-3] //')" local config=' --prefix=/usr --mandir=/usr/man --enable-threads --enable-type-prefix --with-gnu-ld --disable-nls --enable-shared' # compiling long double precision library ./configure \ $config \ --enable-long-double make make DESTDIR=$PKG install make clean # compiling single precision library ./configure \ $config \ --enable-single make make DESTDIR=$PKG install make clean # compiling double precision library ./configure \ $config make make DESTDIR=$PKG install rm -r $PKG/usr/share }