32 lines
998 B
Bash
32 lines
998 B
Bash
|
# 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"
|
||
|
}
|
||
|
}
|