From a7ead4aef3741783a44fd4f7d83c5acf562e1786 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sun, 7 Jan 2018 18:40:38 +0100 Subject: [PATCH] hugin: fix cross compilation Closes: #10552 [via git-merge-pr] --- srcpkgs/hugin/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template index a9578a5b3d4..8222d1cf45f 100644 --- a/srcpkgs/hugin/template +++ b/srcpkgs/hugin/template @@ -4,7 +4,6 @@ version=2017.0.0 revision=6 wrksrc=${pkgname}-${version} build_style=cmake -configure_args="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-3.0" pycompile_module="hpi.py hsi.py" pycompile_dirs="usr/share/hugin/data/plugins usr/share/hugin/data/plugins-templates" maintainer="lemmi " @@ -20,6 +19,10 @@ short_desc="An easy to use panoramic imaging toolchain" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2" checksum=86646ea27f32b959d38e7d36270703214b1ae961e379dd64b14d027139cd4609 +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" python" +fi + pre_configure() { sed -i '//d' src/hugin_base/hugin_utils/platform.cpp sed -i 's|-O3||g' src/celeste/CMakeLists.txt