New package: OpenSubdiv-3.4.0

This commit is contained in:
John 2020-01-26 23:55:28 +01:00
parent a3aa1b636a
commit 885f73da4b
3 changed files with 35 additions and 0 deletions

View File

@ -3795,3 +3795,6 @@ librdkafka++.so.1 librdkafka-1.3.0_1
libco.so.0 libco-20_1
libraft.so.0 raft-0.9.16_1
libmdnsd.so.0 libmdnsd-0.8_1
libPtex.so ptex-2.3.2_1
libosdGPU.so.3.4.0 OpenSubdiv-3.4.0_1
libosdCPU.so.3.4.0 OpenSubdiv-3.4.0_1

1
srcpkgs/OpenSubdiv-devel Symbolic link
View File

@ -0,0 +1 @@
OpenSubdiv

View File

@ -0,0 +1,31 @@
# Template file for 'OpenSubdiv'
pkgname=OpenSubdiv
version=3.4.0
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 <johnz@posteo.net>"
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=d932b292f83371c7518960b2135c7a5b931efb43cdd8720e0b27268a698973e4
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"
}
}