2006-11-21 23:43:30 +11:00
|
|
|
# Description: C subroutine library for computing discrete Fourier transform.
|
|
|
|
# URL: http://www.fftw.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2016-08-29 13:09:25 +10:00
|
|
|
# Depends on: gcc-fortran
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
name=fftw
|
2018-03-07 22:55:29 +11:00
|
|
|
version=3.3.7
|
2008-11-18 18:22:05 +11:00
|
|
|
release=1
|
2017-07-16 00:28:29 +10:00
|
|
|
source=(http://www.fftw.org/$name-$version.tar.gz)
|
2006-11-21 23:43:30 +11:00
|
|
|
|
|
|
|
build() {
|
2017-07-16 00:28:29 +10:00
|
|
|
cd $name-$version
|
2006-11-21 23:43:30 +11:00
|
|
|
|
2009-02-15 16:22:47 +11:00
|
|
|
local config="\
|
2016-08-29 13:09:25 +10:00
|
|
|
F77=gfortran \
|
2009-02-15 16:22:47 +11:00
|
|
|
--prefix=/usr \
|
|
|
|
--enable-threads \
|
|
|
|
--with-gnu-ld \
|
2016-08-29 13:09:25 +10:00
|
|
|
--enable-shared \
|
|
|
|
--enable-openmp"
|
|
|
|
|
|
|
|
# use upstream default CFLAGS while keeping our -march/-mtune
|
|
|
|
CFLAGS+=" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math"
|
2008-01-27 01:51:33 +11:00
|
|
|
|
2016-05-10 21:43:28 +10:00
|
|
|
# compiling single precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
2008-01-27 01:51:33 +11:00
|
|
|
$config \
|
2018-03-07 22:55:29 +11:00
|
|
|
--enable-single \
|
|
|
|
--enable-sse \
|
|
|
|
--enable-avx
|
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
|
|
|
|
2016-05-10 21:43:28 +10:00
|
|
|
# compiling double precision library
|
2018-03-07 22:55:29 +11:00
|
|
|
./configure \
|
|
|
|
$config \
|
|
|
|
--enable-sse2 \
|
|
|
|
--enable-avx
|
2016-05-10 21:43:28 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
make clean
|
|
|
|
|
|
|
|
# compiling long double precision library
|
2006-11-21 23:43:30 +11:00
|
|
|
./configure \
|
2008-01-27 01:51:33 +11:00
|
|
|
$config \
|
2016-05-10 21:43:28 +10:00
|
|
|
--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
|
|
|
|
|
2016-05-10 21:43:28 +10:00
|
|
|
# compiling quad precision library
|
|
|
|
./configure \
|
|
|
|
$config \
|
|
|
|
--enable-quad-precision
|
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
|
2016-05-10 21:43:28 +10:00
|
|
|
|
|
|
|
# clean up
|
|
|
|
rm -r $PKG/usr/share/info
|
2006-11-21 23:43:30 +11:00
|
|
|
}
|