void-packages/srcpkgs/fftw/template

53 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-10-22 10:32:16 +02:00
# Template file for 'fftw'
pkgname=fftw
2012-05-20 15:26:31 +02:00
version=3.3.2
2011-10-22 10:32:16 +02:00
homepage="http://www.fftw.org/"
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
short_desc="Library for computing the discrete Fourier transform (DFT)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
2012-05-20 15:26:31 +02:00
checksum=b1236a780ca6e66fc5f8eda6ef0665d680e8253d9f01d7bf211b714a50032d01
2011-10-22 10:32:16 +02:00
long_desc="
FFTW is a free collection of fast C routines for computing the Discrete
Fourier Transform in one or more dimensions. It includes complex, real,
symmetric, and parallel transforms, and can handle arbitrary array sizes
efficiently. FFTW is typically faster than other publically-available FFT
implementations, and is even competitive with vendor-tuned libraries."
subpackages="lib${pkgname} ${pkgname}-devel"
Add_dependency build gcc-fortran
do_configure() {
local CARGS="--enable-shared --enable-threads"
# double precision
mkdir build-double
cd ${wrksrc}/build-double && \
../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} --enable-sse2
# long double precission
mkdir ${wrksrc}/build-long-double
cd ${wrksrc}/build-long-double && \
../configure ${CONFIGURE_SHARED_ARGS} \
${CARGS} --enable-long-double
# single precission
mkdir ${wrksrc}/build-single
cd ${wrksrc}/build-single && \
../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} \
--enable-float --enable-sse
}
do_build() {
for f in double long-double single; do
cd ${wrksrc}/build-${f} && make ${makejobs}
done
}
do_install() {
for f in double long-double single; do
cd ${wrksrc}/build-${f} && make DESTDIR=${DESTDIR} install
done
}