graphics/Blender: Suppress manpage when OSL detected

Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christoph Willing 2023-12-05 20:39:04 +10:00 committed by Willy Sudiarto Raharjo
parent 2ccedcabbe
commit f68bc2e9c4
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 17 additions and 8 deletions

View file

@ -31,7 +31,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=Blender
VERSION=${VERSION:-3.3.10}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -161,10 +161,13 @@ EOF
chmod 0755 $PKG/usr/bin/$bin
done
mkdir -p $PKG/usr/man/man1
./doc/manpage/blender.1.py --blender build/bin/blender --output $PKG/usr/man/man1/blender.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Recent OSL breaks manpage generation
if [ ! -e "/usr/lib$LIBDIRSUFFIX/liboslcomp.so" ]; then
mkdir -p $PKG/usr/man/man1
./doc/manpage/blender.1.py --blender build/bin/blender --output $PKG/usr/man/man1/blender.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/$SRCNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/

View file

@ -9,7 +9,7 @@ scripting, rendering, compositing, post-production and game creation.
CUDA support is included if cudatoolkit is installed.
It may be disabled by passing CUDA=no when building:
CUDA=no sh ./Blender.SlackBuild
CUDA=no bash ./Blender.SlackBuild
CUDA support hasn't been thorougly tested, and may break the build. If
so, build with CUDA=no and report a bug to the maintainer of this
@ -17,7 +17,7 @@ script.
Optional dependency: embree. If installed, Blender will be built with
support for it. It may be disabled by passing EMBREE=no when building:
EMBREE=no sh ./Blender.SlackBuild
EMBREE=no bash ./Blender.SlackBuild
Note for 32-bit users: embree is 64-bit only, and can't be built on
32-bit Slackware.
@ -28,7 +28,13 @@ be automatically detected and incorporated when Blender is built.
To enable support for OptiX Ray Tracing Engine, the OptiX SDK must be
available in the build environment. Use the OPTIX_ROOT_DIR environment
variable to identify the SDK location e.g.
OPTIX_ROOT_DIR=/home/chris/NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64 sh ./Blender.SlackBuild
OPTIX_ROOT_DIR=/home/chris/NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64 bash ./Blender.SlackBuild
Optional dependency: OpenShadingLanguage (OSL). If already installed,
it will be automatically detected and incorporated when Blender is built.
Due to an unresolved issue with the current OSL version, generation of
the blender manpage is suppressed when OSL is detected.
This SlackBuild builds Blender from source code. For Slackware 15.0,
due to its Python 3 version of 3.9.17, the Blender version to be built