2011-10-22 08:32:16 +00:00
|
|
|
# Template file for 'fftw'
|
|
|
|
pkgname=fftw
|
2012-11-26 12:33:11 +00:00
|
|
|
version=3.3.3
|
2013-05-26 08:41:55 +00:00
|
|
|
revision=3
|
2011-10-22 08:32:16 +00:00
|
|
|
short_desc="Library for computing the discrete Fourier transform (DFT)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
2012-11-26 12:33:11 +00:00
|
|
|
homepage="http://www.fftw.org/"
|
|
|
|
distfiles="${homepage}/fftw-${version}.tar.gz"
|
|
|
|
checksum=85cdfc0a0ba10d8fa4f0f8e733aac1a5936c859832a9e3d5c0731fb5c54a97f3
|
2011-10-22 08:32:16 +00: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."
|
|
|
|
|
2013-04-13 20:28:18 +00:00
|
|
|
hostmakedepends="libtool automake gcc-fortran"
|
2013-03-24 10:42:04 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2011-10-22 08:32:16 +00:00
|
|
|
|
|
|
|
do_configure() {
|
2013-03-24 10:42:04 +00:00
|
|
|
local CARGS="--enable-shared --enable-threads"
|
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
_sse="--enable-sse"
|
|
|
|
_sse2="--enable-sse2"
|
|
|
|
fi
|
2011-10-22 08:32:16 +00:00
|
|
|
|
|
|
|
# double precision
|
|
|
|
mkdir build-double
|
2013-05-26 08:41:55 +00:00
|
|
|
cd ${wrksrc}/build-double
|
|
|
|
../configure ${configure_args} ${CARGS} ${_sse2}
|
2011-10-22 08:32:16 +00:00
|
|
|
|
|
|
|
# long double precission
|
|
|
|
mkdir ${wrksrc}/build-long-double
|
2013-05-26 08:41:55 +00:00
|
|
|
cd ${wrksrc}/build-long-double
|
|
|
|
../configure ${configure_args} ${CARGS} --enable-long-double
|
2011-10-22 08:32:16 +00:00
|
|
|
|
|
|
|
# single precission
|
|
|
|
mkdir ${wrksrc}/build-single
|
2013-05-26 08:41:55 +00:00
|
|
|
cd ${wrksrc}/build-single
|
|
|
|
../configure ${configure_args} ${CARGS} --enable-float ${_sse}
|
2011-10-22 08:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
for f in double long-double single; do
|
2013-05-26 08:41:55 +00:00
|
|
|
cd ${wrksrc}/build-${f}
|
|
|
|
make ${makejobs}
|
2011-10-22 08:32:16 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
for f in double long-double single; do
|
2013-05-26 08:41:55 +00:00
|
|
|
cd ${wrksrc}/build-${f}
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2011-10-22 08:32:16 +00:00
|
|
|
done
|
|
|
|
}
|
2013-04-12 09:16:02 +00:00
|
|
|
|
|
|
|
libfftw_package() {
|
2013-05-26 08:41:55 +00:00
|
|
|
short_desc+=" - Runtime library"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fftw-devel_package() {
|
|
|
|
depends="libfftw>=${version}"
|
2013-05-26 08:41:55 +00:00
|
|
|
short_desc+=" - Development files"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/info
|
|
|
|
}
|
|
|
|
}
|