diff options
Diffstat (limited to 'graphics/Blender/Blender.SlackBuild')
-rw-r--r-- | graphics/Blender/Blender.SlackBuild | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/graphics/Blender/Blender.SlackBuild b/graphics/Blender/Blender.SlackBuild index 6debc5493e32..6436396a755a 100644 --- a/graphics/Blender/Blender.SlackBuild +++ b/graphics/Blender/Blender.SlackBuild @@ -22,11 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220322 bkw: Modified by SlackBuilds.org, BUILD=2: +# - make embree optional (makes it possible to build Blender on 32-bit, +# since embree is 64-bit-only). +# - add patch to fix 32-bit compilation. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=Blender VERSION=${VERSION:-3.0.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,9 +48,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -79,14 +81,10 @@ if [ -d /usr/include/cuda ]; then fi fi -embree="" -if [ -d /usr/include/embree3 ]; then - # If embree is installed, assume we want to use it +embree="-DWITH_CYCLES_EMBREE=OFF" +# If embree is installed, use it unless user says EMBREE=no. +if [ -d /usr/include/embree3 -a "${EMBREE:-yes}" = "yes" ]; then embree="-DWITH_CYCLES_EMBREE=ON" - # However disable embree if requested by e.g. EMBREE=no - if [ ${EMBREE:-yes} != "yes" ]; then - embree="-DWITH_CYCLES_EMBREE=OFF" - fi fi set -e @@ -100,9 +98,12 @@ cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +# 20220322 bkw: 32-bit needs this +[ -z "$LIBDIRSUFFIX" ] && patch -p1 < $CWD/overloaded_min.diff mkdir -p build cd build |