hugin: use cmake-wxWidgets-gtk3 build_helper

This commit is contained in:
John 2020-12-27 00:28:20 +01:00 committed by John Zimmermann
parent bfd28ea29c
commit 7398436b6c

View file

@ -4,6 +4,7 @@ version=2020.0.0
revision=2
wrksrc="${pkgname}-${version}"
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
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
@ -24,15 +25,3 @@ if [ "$CROSS_BUILD" ]; then
else
makedepends+=" flann-devel"
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
}