hugin: fix cross compilation

Closes: #10552 [via git-merge-pr]
This commit is contained in:
newbluemoon 2018-01-07 18:40:38 +01:00 committed by Jürgen Buchmüller
parent 3c59f3c5a9
commit a7ead4aef3
1 changed files with 4 additions and 1 deletions

View File

@ -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 <lemmi@nerd2nerd.org>"
@ -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 '/<sys\/sysctl.h>/d' src/hugin_base/hugin_utils/platform.cpp
sed -i 's|-O3||g' src/celeste/CMakeLists.txt