contrib/fftw/Pkgfile

62 lines
1.1 KiB
Plaintext
Raw Normal View History

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