diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template index 40142a3f79d..1c93467bc09 100644 --- a/srcpkgs/hugin/template +++ b/srcpkgs/hugin/template @@ -1,10 +1,9 @@ # Template file for 'hugin' pkgname=hugin version=2019.2.0 -revision=2 +revision=3 wrksrc="${pkgname}-${version}" build_style=cmake -pycompile_module="hpi.py hsi.py" pycompile_dirs="usr/share/hugin/data/plugins usr/share/hugin/data/plugins-templates" hostmakedepends="pkg-config exiftool swig gettext" makedepends="wxWidgets-gtk3-devel tiff-devel libpng-devel libopenexr-devel libgomp-devel @@ -27,13 +26,13 @@ else fi pre_configure() { - # workaround for cmake to find wx-config-gtk3 - # can be removed once there is only one 'wx-config' - if [ "$CROSS_BUILD" ]; then - # cannot override wxWidgets_CONFIG_EXECUTABLE set in - # the cross toolchain file otherwise - ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,} - else - sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt - fi + # workaround for cmake to find wx-config-gtk3 + # can be removed once there is only one 'wx-config' + if [ "$CROSS_BUILD" ]; then + # cannot override wxWidgets_CONFIG_EXECUTABLE set in + # the cross toolchain file otherwise + ln -s ${XBPS_WRAPPERDIR}/wx-config{-gtk3,} + else + sed -i "1i\set(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" CMakeLists.txt + fi }