32 lines
1000 B
Bash
32 lines
1000 B
Bash
# Template file for 'OpenSubdiv'
|
|
pkgname=OpenSubdiv
|
|
version=3.4.3
|
|
revision=1
|
|
wrksrc="OpenSubdiv-${version//./_}"
|
|
build_style=cmake
|
|
configure_args="-DOpenGL_GL_PREFERENCE=GLVND"
|
|
# TODO: CUDA/OpenCL support
|
|
makedepends="libXrandr-devel libXinerama-devel libXcursor-devel zlib-devel
|
|
libgomp-devel glfw-devel glew-devel tbb-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
|
|
|
|
OpenSubdiv-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|