mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
graphics/blender: Miscellaneous cleanups
This commit is contained in:
parent
80132f8ea9
commit
fd88605524
4 changed files with 20 additions and 6 deletions
|
@ -6,4 +6,4 @@ if [ ! -d $HOME/.blender ]; then
|
|||
fi
|
||||
cd /opt/blender
|
||||
PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
|
||||
/opt/blender/blender-softwaregl
|
||||
/opt/blender/blender-softwaregl "$@"
|
||||
|
|
|
@ -6,4 +6,4 @@ if [ ! -d $HOME/.blender ]; then
|
|||
fi
|
||||
cd /opt/blender
|
||||
PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
|
||||
/opt/blender/blender
|
||||
/opt/blender/blender "$@"
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
PRGNAM=blender
|
||||
VERSION=${VERSION:-2.49a}
|
||||
ARCH=${ARCH:-i386}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -31,6 +30,16 @@ TAG=${TAG:-_SBo}
|
|||
# the ones that are shipped with Slackware
|
||||
LMTFA=${LMTFA:-yes}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -38,8 +47,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
set -e
|
||||
|
||||
if [ "$ARCH" != "x86_64" ]; then
|
||||
ARCH=i386
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
break
|
||||
elif [ "$ARCH" = "i386" ]; then
|
||||
break
|
||||
else
|
||||
printf "\n\n$ARCH is not supported... \n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
|
|
|
@ -6,4 +6,4 @@ if [ ! -d $HOME/.blender ]; then
|
|||
fi
|
||||
cd /opt/blender
|
||||
PYTHONHOME="$(python -c "import sys; print ':'.join(sys.path[1:])")" \
|
||||
/opt/blender/blenderplayer
|
||||
/opt/blender/blenderplayer "$@"
|
||||
|
|
Loading…
Reference in a new issue