void-packages/srcpkgs/OpenSubdiv/template

39 lines
1.2 KiB
Bash

# Template file for 'OpenSubdiv'
pkgname=OpenSubdiv
version=3.4.3
revision=3
wrksrc="OpenSubdiv-${version//./_}"
build_style=cmake
# TODO: CUDA/OpenCL support
# NO_GLTESTS: skip tests which require X11 & $DISPLAY environment variable
configure_args="-DOpenGL_GL_PREFERENCE=GLVND -DNO_GLTESTS=1 -DNO_CUDA=1"
makedepends="libXrandr-devel libXinerama-devel libXcursor-devel zlib-devel
libgomp-devel glfw-devel glew-devel tbb-devel libXxf86vm-devel"
short_desc="Open-Source subdivision surface library"
maintainer="John <me@johnnynator.dev>"
license="Apache-2.0"
homepage="http://graphics.pixar.com/opensubdiv/docs/intro.html"
distfiles="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${version//./_}.tar.gz"
checksum=7b22eb27d636ab0c1e03722c7a5a5bd4f11664ee65c9b48f341a6d0ce7f36745
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" OpenSubdiv"
configure_args+=" -DSTRINGIFY_LOCATION=/usr/bin/stringify"
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
OpenSubdiv-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}