void-packages/srcpkgs/fftw/template

74 lines
1.7 KiB
Text
Raw Normal View History

2011-10-22 08:32:16 +00:00
# Template file for 'fftw'
pkgname=fftw
2014-03-31 21:55:23 +00:00
version=3.3.4
revision=1
2014-02-19 13:40:55 +00:00
hostmakedepends="libtool automake gcc-fortran"
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/"
update_site="http://www.fftw.org/download.html"
2012-11-26 12:33:11 +00:00
distfiles="${homepage}/fftw-${version}.tar.gz"
2014-03-31 21:55:23 +00:00
checksum=8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982
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"
2014-02-19 13:40:55 +00:00
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) _sse="--enable-sse"; _sse2="--enable-sse2";;
esac
2011-10-22 08:32:16 +00:00
# double precision
mkdir build-double
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
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
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
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
cd ${wrksrc}/build-${f}
make DESTDIR=${DESTDIR} install
2011-10-22 08:32:16 +00:00
done
}
libfftw_package() {
2014-02-19 13:40:55 +00:00
short_desc+=" - runtime library"
pkg_install() {
2014-02-19 13:40:55 +00:00
vmove "usr/lib/*.so.*"
}
}
fftw-devel_package() {
2014-02-19 13:40:55 +00:00
depends="libfftw>=${version}_${revision}"
short_desc+=" - Development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
2014-02-19 13:40:55 +00:00
vmove "usr/lib/*.so"
vmove usr/share/info
}
}