aboutsummaryrefslogtreecommitdiff
path: root/graphics/Blender/Blender.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2019-03-24 18:54:22 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-30 07:18:25 +0700
commitdd5050df2ddca3f659dfa419ede559c2fef9aae5 (patch)
tree19ca5aa0e61f806e88ff6d7ec6afeb0f99d89996 /graphics/Blender/Blender.SlackBuild
parent6a693f8eacd9abf3ce312426feabbbc6e3c05647 (diff)
graphics/Blender: Patch for python3.7
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Diffstat (limited to 'graphics/Blender/Blender.SlackBuild')
-rw-r--r--graphics/Blender/Blender.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/Blender/Blender.SlackBuild b/graphics/Blender/Blender.SlackBuild
index 9e545177ade44..7852440f497d2 100644
--- a/graphics/Blender/Blender.SlackBuild
+++ b/graphics/Blender/Blender.SlackBuild
@@ -26,7 +26,7 @@ SRCNAM=blender
PKGNAM=Blender
VERSION=${VERSION:-2.79b}
BASE_VERSION=${BASE_VERSION:-$( echo $VERSION | sed -e 's/[^0-9.]*//g')}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PYTHON_VERSION=$(python3 -c "import sys; print(sys.version[:3])")
@@ -74,6 +74,7 @@ find -L . \
patch -p0 < $CWD/buildinfo-$VERSION.diff
patch -p1 < $CWD/use-libopenmj2-for-openjpeg.diff
+patch -p1 < $CWD/PyRNA-python3.7.diff
mkdir -p build
cd build
@@ -87,7 +88,7 @@ cd build
-DWITH_OPENCOLLADA:BOOL=ON \
-DWITH_OPENCOLORIO:BOOL=ON \
-DPYTHON_VERSION=$PYTHON_VERSION \
- -DWITH_PYTHON_INSTALL:BOOL=ON \
+ -DWITH_PYTHON_INSTALL:BOOL=OFF \
-DWITH_PYTHON_INSTALL_NUMPY:BOOL=ON \
-DWITH_CODEC_FFMPEG:BOOL=ON \
-DWITH_OPENAL:BOOL=ON \
@@ -120,7 +121,7 @@ for bin in $BLENDERBINS ; do
mv $PKG/usr/bin/$bin $PKG/usr/bin/$bin.bin
cat <<EOF >$PKG/usr/bin/$bin
#!/bin/sh
-export PYTHONPATH=/usr/share/$SRCNAM/$BASE_VERSION/python/lib$LIBDIRSUFFIX/python$PYTHON_VERSION
+#export PYTHONPATH=/usr/share/$SRCNAM/$BASE_VERSION/python/lib$LIBDIRSUFFIX/python$PYTHON_VERSION
export LD_LIBRARY_PATH=/usr/lib$LIBDIRSUFFIX/opencollada
exec $bin.bin "\$@"
EOF