6f7ca7d65c
resolves void-linux/void-packages#1646
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# Template file for 'hugin'
|
|
pkgname=hugin
|
|
version=2018.0.0
|
|
revision=4
|
|
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"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
hostmakedepends="pkg-config exiftool swig"
|
|
makedepends="wxWidgets-devel tiff-devel libpng-devel libopenexr-devel libgomp-devel
|
|
exiv2-devel libfreeglut-devel libpano13-devel boost-devel vigra-devel sqlite-devel
|
|
lensfun-devel python-devel glew-devel libXmu-devel libXi-devel glu-devel
|
|
lcms2-devel lapack-devel"
|
|
depends="exiftool enblend-enfuse"
|
|
license="GPL-2"
|
|
homepage="http://hugin.sourceforge.net/"
|
|
short_desc="An easy to use panoramic imaging toolchain"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${pkgname}-${version}.tar.bz2"
|
|
checksum=d3af0d066ac50e3bb243a175a64ecda136d87178419457e8822e11bcf0e565cb
|
|
|
|
if [ "$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
|
|
# Fix compiling against lensfun-0.3.0
|
|
sed '/LF_DIST_MODEL_FOV1/d' -i src/hugin_base/lensdb/LensDB.cpp
|
|
}
|