void-packages/srcpkgs/ilmbase/template
2020-03-05 09:08:13 +01:00

35 lines
913 B
Bash

# Template file for 'ilmbase'
pkgname=ilmbase
version=2.4.1
revision=1
wrksrc="openexr-${version}"
build_wrksrc=IlmBase
build_style=cmake
build_helper="qemu"
short_desc="Base libraries from ILM for OpenEXR"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.openexr.com/"
distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=3ebbe9a8e67edb4a25890b98c598e9fe23b10f96d1416d6a3ff0732e99d001c1
pre_configure() {
if [ "$CROSS_BUILD" ]; then
vsed -i Half/CMakeLists.txt \
-e "s; COMMAND ; COMMAND qemu-${XBPS_TARGET_QEMU_MACHINE}-static ;g"
fi
}
post_install() {
vlicense ../LICENSE.md
}
ilmbase-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}