From eccf691b6702a141357fe4c3b5c3b4a0049d2910 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 14 Jul 2013 09:37:53 +0200 Subject: [PATCH] libunwind: cross build support. --- srcpkgs/libunwind/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template index 00bc006c50f..dbbd7e09493 100644 --- a/srcpkgs/libunwind/template +++ b/srcpkgs/libunwind/template @@ -1,7 +1,7 @@ # Template file for 'libunwind'. pkgname=libunwind version=1.1 -revision=1 +revision=2 build_style=gnu-configure makedepends="liblzma-devel" short_desc="Portable and efficient C programming interface (API) to determine the call-chain of a program" @@ -11,13 +11,21 @@ license="GPL-2" distfiles="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$version.tar.gz" checksum=9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a +if [ "$CROSS_BUILD" ]; then + hostmakedepends="libtool automake" + pre_configure() { + autoreconf -fi + } +fi + libunwind-devel_package() { depends="${sourcepkg}>=${version}" - short_desc+=" -- development files" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" + vmove "usr/lib/*.so" vmove usr/share } }