void-packages/srcpkgs/opencolorio/template

43 lines
1.3 KiB
Bash

# Template file for 'opencolorio'
pkgname=opencolorio
version=2.1.2
revision=3
build_style=cmake
configure_args="-DCMAKE_CONFIGURATION_TYPES=None
-DOCIO_INSTALL_EXT_PACKAGES=NONE
-Dpystring_ROOT=${XBPS_CROSS_BASE}/usr
-Dpybind11_ROOT=${XBPS_CROSS_BASE}/${py3_sitelib}/pybind11
-DOCIO_BUILD_TESTS=OFF -DOCIO_BUILD_GPU_TESTS=OFF"
hostmakedepends="pkg-config git python3"
makedepends="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="https://opencolorio.org"
changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/OpenColorIO/master/ChangeLog"
distfiles="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v${version}.tar.gz"
checksum=6c6d153470a7dbe56136073e7abea42fa34d06edc519ffc0a159daf9f9962b0b
make_check=no # A couple tests fail.
case "$XBPS_TARGET_MACHINE" in
x86_64*) ;;
*) configure_args+=" -DOCIO_USE_SSE=OFF" ;;
esac
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"
}
}