void-packages/srcpkgs/hugin/template
lemmi 11434c15ca hugin: unbreak cross
Cmake checks whether vigra links against openexr. The check always fails
despite we link against openexr. The old patch that removed the check
didn't apply anymore. This adds a replacement for the old patch.
2020-12-15 15:07:50 +01:00

38 lines
1.4 KiB
Bash

# Template file for 'hugin'
pkgname=hugin
version=2020.0.0
revision=2
wrksrc="${pkgname}-${version}"
build_style=cmake
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
exiv2-devel libfreeglut-devel libpano13-devel boost-devel vigra-devel sqlite-devel
lensfun-devel python3-devel glew-devel libXmu-devel libXi-devel glu-devel
lcms2-devel lapack-devel"
depends="exiftool enblend-enfuse"
short_desc="Easy to use panoramic imaging toolchain"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later"
homepage="http://hugin.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=283e7601259a7914cb075333424410928a439dc5f84216f33e2fe55501fbcacb
python_version=3
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" python3"
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
}