43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'opencolorio'
|
|
pkgname=opencolorio
|
|
version=2.1.3
|
|
revision=1
|
|
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=c826a4088a6358fcf39628c852a460c145a4191a5e16ef96fe6a0aaed065d36a
|
|
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"
|
|
}
|
|
}
|