From c545e2ca016f4813bd9251b594fb112226ba915d Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Wed, 30 Oct 2019 01:01:15 +0700 Subject: graphics/OpenSubdiv: Script improvement. Signed-off-by: Willy Sudiarto Raharjo --- graphics/OpenSubdiv/OpenSubdiv.SlackBuild | 9 +++++++++ graphics/OpenSubdiv/README | 4 ++++ graphics/OpenSubdiv/slack-desc | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild index 828a8bc693..09a81f056a 100644 --- a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild +++ b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild @@ -76,7 +76,10 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_LIBDIR_BASE=lib${LIBDIRSUFFIX} \ + -DCMAKE_DOCDIR_BASE=doc/$PRGNAM-$VERSION \ -DCMAKE_BUILD_TYPE=Release .. + make make install DESTDIR=$PKG cd .. @@ -88,5 +91,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -rf documentation/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Can't have tutorials directory in /usr/bin +mv $PKG/usr/bin/tutorials $PKG/usr/doc/$PRGNAM-$VERSION/ + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/graphics/OpenSubdiv/README b/graphics/OpenSubdiv/README index d8ff9cbeda..401ffff651 100644 --- a/graphics/OpenSubdiv/README +++ b/graphics/OpenSubdiv/README @@ -2,3 +2,7 @@ OpenSubdiv is a set of open source libraries that implement high performance subdivision surface (subdiv) evaluation on massively parallel CPU and GPU architectures. This code path is optimized for drawing deforming surfaces with static topology at interactive framerates. + +Additional utility is available in OpenSubdiv when the following SBo packages +are installed and detected at build time: + tbb cudatoolkit opencl-headers glfw docutils diff --git a/graphics/OpenSubdiv/slack-desc b/graphics/OpenSubdiv/slack-desc index df679d80ba..e4edbfcaca 100644 --- a/graphics/OpenSubdiv/slack-desc +++ b/graphics/OpenSubdiv/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -OpenSubdiv: OpenSubDiv (The OpenSubdiv Library) +OpenSubdiv: OpenSubdiv (The OpenSubdiv Library) OpenSubdiv: OpenSubdiv: OpenSubdiv is a set of open source libraries that implement high OpenSubdiv: performance subdivision surface (subdiv) evaluation on massively -- cgit v1.2.3