void-packages/srcpkgs/vigra/template
Jürgen Buchmüller 017f0e8f8c vigra: revbump for openexr-2.4.0
[ci skip]
2019-12-06 13:49:52 +01:00

49 lines
1.3 KiB
Bash

# Template file for 'vigra'
pkgname=vigra
version=1.11.1
revision=5
build_style=cmake
configure_args="-DWITH_OPENEXR=1"
hostmakedepends="python"
makedepends="libpng-devel tiff-devel libjpeg-turbo-devel zlib-devel fftw-devel
boost-devel libopenexr-devel"
short_desc="Image processing and analysis library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://ukoethe.github.io/vigra/"
distfiles="https://github.com/ukoethe/vigra/archive/Version-${version//./-}.tar.gz"
checksum=b2718250d28baf1932fcbe8e30f7e4d146e751ad0e726e375a72a0cdb4e3250e
wrksrc=$pkgname-Version-${version//./-}
pre_configure() {
if [ "$CROSS_BUILD" ]; then
g++ config/output_cplusplus_version.cxx -o gccbugcheck
sed "s#%OUTPUT%#$(./gccbugcheck)#" $FILESDIR/TryRunResults.cmake > TryRunResults.cmake
configure_args+=" -C $PWD/TryRunResults.cmake"
fi
}
post_install() {
vmkdir usr/share/$pkgname
mv $DESTDIR/usr/doc $DESTDIR/usr/share/$pkgname/doc
}
vigra-doc_package() {
archs=noarch
depends="vigra>=${version}_${revision}"
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/vigra/doc
}
}
vigra-devel_package() {
depends="vigra>=${version}_${revision} $makedepends"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/lib/vigra
vmove "usr/lib/*.so"
}
}