From c647ccee5592a3c933afa036a66b3ce39bb434f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 May 2013 09:20:06 +0200 Subject: [PATCH] orc: cross build support. --- srcpkgs/orc/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/orc/template b/srcpkgs/orc/template index cf0821b122..4363b9f161 100644 --- a/srcpkgs/orc/template +++ b/srcpkgs/orc/template @@ -1,7 +1,7 @@ # Template build file for 'orc'. pkgname=orc version=0.4.16 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="pkg-config" @@ -17,13 +17,21 @@ long_desc=" language that represents many of the features available in SIMD architectures, including saturated addition and subtraction, and many arithmetic operations." +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" automake libtool" + pre_configure() { + sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac + autoreconf -fi + } +fi + post_install() { vinstall COPYING 644 usr/share/licenses/orc } orc-devel_package() { depends="orc>=${version}" - short_desc="${short_desc} - development files" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig