void-packages/srcpkgs/opencolorio/template

38 lines
1.0 KiB
Bash

# Template file for 'opencolorio'
pkgname=opencolorio
version=1.1.1
revision=1
build_style=cmake
configure_args="-DUSE_EXTERNAL_TINYXML=ON -DUSE_EXTERNAL_LCMS=ON"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) ;;
*) configure_args+=" -DOCIO_USE_SSE=OFF" ;;
esac
make_cmd=make
hostmakedepends="pkg-config git"
makedepends="tinyxml-devel lcms2-devel"
short_desc="A complete color management solution"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="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=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
export CMAKE_GENERATOR="Unix Makefiles"
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"
}
}