void-packages/srcpkgs/opencolorio/template

41 lines
1.3 KiB
Bash

# Template file for 'opencolorio'
pkgname=opencolorio
version=2.1.2
revision=1
build_style=cmake
configure_args="-DUSE_EXTERNAL_TINYXML=ON -DUSE_EXTERNAL_LCMS=ON
-DCMAKE_CONFIGURATION_TYPES=None -DOCIO_INSTALL_EXT_PACKAGES=NONE
-Dpystring_ROOT=${XBPS_CROSS_BASE}/usr
-Dpybind11_ROOT=${XBPS_CROSS_BASE}/${py3_sitelib}/pybind11"
case "$XBPS_TARGET_MACHINE" in
x86_64*) ;;
*) configure_args+=" -DOCIO_USE_SSE=OFF" ;;
esac
hostmakedepends="pkg-config git python3"
makedepends="tinyxml-devel lcms2-devel pystring-devel glew-devel
libfreeglut-devel expat-devel yaml-cpp-devel imath-devel
python3-pybind11"
short_desc="Complete color management solution"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="custom:openimageio"
homepage="http://opencolorio.org"
changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
checksum=6c6d153470a7dbe56136073e7abea42fa34d06edc519ffc0a159daf9f9962b0b
make_check=no #(GPU tests): failed to open display ''
post_install() {
vlicense LICENSE
}
opencolorio-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/include
vmove "usr/lib/*.so"
}
}