diff options
Diffstat (limited to 'graphics/OpenSubdiv/OpenSubdiv.SlackBuild')
-rw-r--r-- | graphics/OpenSubdiv/OpenSubdiv.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild index 1a6aa7bd1ebbc..3c11bac9d4ce7 100644 --- a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild +++ b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for Opensubdiv # Copyright 2019 J. "MUFTI" Scheurich Stuttgart/Germany -# Copyright 2021-3 Christoph Willing Brisbane/Australia +# Copyright 2021-2023 Christoph Willing Brisbane/Australia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=OpenSubdiv VERSION=${VERSION:-3.5.0} SRCVER=$(echo $VERSION | tr . _) -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -75,6 +75,8 @@ rm -rf $PRGNAM-$SRCVER tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz cd $PRGNAM-$SRCVER sed -i -e '/${OPENGL_gl_LIBRARY}/a${OPENGL_glx_LIBRARY}' CMakeLists.txt +patch -p1 < $CWD/CUDA-compatibility.patch + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -82,6 +84,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +cuda="-DNO_CUDA=ON"; +[ "${ENABLE_CUDA:-no}" = "yes" ] && cuda="" + mkdir -p build cd build cmake \ @@ -90,6 +95,8 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_LIBDIR_BASE=lib${LIBDIRSUFFIX} \ -DCMAKE_DOCDIR_BASE=doc/$PRGNAM-$VERSION \ + -DNO_CLEW=ON \ + $cuda \ -DCMAKE_BUILD_TYPE=Release .. make |