From 23dc7bb5f49535e7cb87c78fd2290290a3722de7 Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Wed, 24 Aug 2016 16:41:50 -0500 Subject: testing/opensubdiv: new aport http://graphics.pixar.com/opensubdiv An Open-Source subdivision surface library --- testing/opensubdiv/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 testing/opensubdiv/APKBUILD (limited to 'testing') diff --git a/testing/opensubdiv/APKBUILD b/testing/opensubdiv/APKBUILD new file mode 100644 index 0000000000..dd4279961c --- /dev/null +++ b/testing/opensubdiv/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Mark Riedesel +# Maintainer: Mark Riedesel +pkgname=opensubdiv +pkgver=3.0.5 +pkgrel=0 +pkgdesc="An Open-Source subdivision surface library" +url="http://graphics.pixar.com/opensubdiv" +arch="all" +license="ASL-2.0" +makedepends="cmake glew-dev glfw-dev doxygen py-docutils libxcursor-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tutorials $pkgname-tools" +source="$pkgname-$pkgver.tar.gz::https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz" +builddir="$srcdir/"OpenSubdiv-${pkgver//./_} + +build() { + cd "$builddir" + mkdir -p build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DNO_TBB=TRUE \ + -DNO_PTEX=TRUE \ + -DNO_MAYA=TRUE \ + -DNO_CUDA=TRUE \ + -DNO_OPENCL=TRUE \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +tutorials() { + mkdir -p "$subpkgdir"/usr/bin/ + for tut in "$pkgdir"/usr/bin/tutorials/*; do + mv $tut "$subpkgdir"/usr/bin/opensubdiv_${tut##*/} + done + rmdir "$pkgdir"/usr/bin/tutorials +} + +tools() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +md5sums="f16fa309b3fa3d400e6dcbf59d316dfe opensubdiv-3.0.5.tar.gz" +sha256sums="60bb7d709adfd949ff865864b68ff3b7e97a682a1841ccc70cd60a6c5a28ff30 opensubdiv-3.0.5.tar.gz" +sha512sums="cee4c13fd0ef0a8dac6f880bdda8b6eed1ac3c17f7eadbd5f00bb8fe0140ca12a244b7e51edc98186af0551a26ac88e402651837f3f49195d3a9697437b86bf8 opensubdiv-3.0.5.tar.gz" -- cgit v1.2.3