hugin: rebuild against exiv2-0.25

Add musl support.
This commit is contained in:
Alessio Sergi 2015-08-16 02:56:46 +02:00
parent 3685a998bc
commit c0deae56d8
1 changed files with 10 additions and 1 deletions

View File

@ -1,9 +1,11 @@
# Template file for 'hugin'
pkgname=hugin
version=2014.0.0
revision=4
revision=5
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="Dominik Honnef <dominik@honnef.co>"
hostmakedepends="cmake pkg-config exiftool"
makedepends="wxWidgets-devel tiff-devel libpng-devel libopenexr-devel
@ -17,6 +19,13 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version%.*}/${
checksum=f098aa0ede44010d3bb2bb38693177533fd776c45063a338c4c483d7e471ec29
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i 's|PTHREAD_MUTEX_RECURSIVE_NP|PTHREAD_MUTEX_RECURSIVE|' \
src/foreign/zthread/src/linux/FastRecursiveLock.h;;
esac
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
}