fftw: cross build and dbg support.

This commit is contained in:
Juan RP 2013-03-24 11:42:04 +01:00
parent 373ffc4e05
commit 550bbc2749
3 changed files with 18 additions and 14 deletions

View file

@ -1,14 +1,11 @@
# Template file for 'fftw-devel'. # Template file for 'fftw-devel'.
# #
noarch=yes
depends="libfftw>=${version}" depends="libfftw>=${version}"
short_desc="${short_desc} - Development files" short_desc="${short_desc} - Development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install() { do_install() {
vmove usr/include usr vmove usr/include usr
vmove usr/lib/pkgconfig usr/lib vmove usr/lib/pkgconfig usr/lib
vmove "usr/lib/*.a" usr/lib
vmove usr/share/info usr/share vmove usr/share/info usr/share
} }

View file

@ -1,9 +1,6 @@
# Template file for 'libfftw'. # Template file for 'libfftw'.
# #
short_desc="${short_desc} - Runtime library" short_desc="${short_desc} - Runtime library"
long_desc="${long_desc}
This package contains the FFTW runtime lib(s)."
do_install() { do_install() {
vmove "usr/lib/*.so*" usr/lib vmove "usr/lib/*.so*" usr/lib

View file

@ -1,7 +1,7 @@
# Template file for 'fftw' # Template file for 'fftw'
pkgname=fftw pkgname=fftw
version=3.3.3 version=3.3.3
revision=1 revision=2
short_desc="Library for computing the discrete Fourier transform (DFT)" short_desc="Library for computing the discrete Fourier transform (DFT)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2" license="GPL-2"
@ -16,15 +16,25 @@ long_desc="
implementations, and is even competitive with vendor-tuned libraries." implementations, and is even competitive with vendor-tuned libraries."
subpackages="libfftw fftw-devel" subpackages="libfftw fftw-devel"
makedepends="gcc-fortran" hostmakedepends="automake gcc-fortran"
pre_configure() {
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
autoreconf -fi
}
do_configure() { do_configure() {
local CARGS="--disable-static --enable-shared --enable-threads" 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
# double precision # double precision
mkdir build-double mkdir build-double
cd ${wrksrc}/build-double && \ cd ${wrksrc}/build-double && \
../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} --enable-sse2 ../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} ${_sse2}
# long double precission # long double precission
mkdir ${wrksrc}/build-long-double mkdir ${wrksrc}/build-long-double
@ -36,7 +46,7 @@ do_configure() {
mkdir ${wrksrc}/build-single mkdir ${wrksrc}/build-single
cd ${wrksrc}/build-single && \ cd ${wrksrc}/build-single && \
../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} \ ../configure ${CONFIGURE_SHARED_ARGS} ${CARGS} \
--enable-float --enable-sse --enable-float ${_sse}
} }
do_build() { do_build() {