aboutsummaryrefslogtreecommitdiff
path: root/graphics/mitsuba2/mitsuba2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/mitsuba2/mitsuba2.SlackBuild')
-rw-r--r--graphics/mitsuba2/mitsuba2.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/graphics/mitsuba2/mitsuba2.SlackBuild b/graphics/mitsuba2/mitsuba2.SlackBuild
index bd7005f7c9743..392e52bddb099 100644
--- a/graphics/mitsuba2/mitsuba2.SlackBuild
+++ b/graphics/mitsuba2/mitsuba2.SlackBuild
@@ -7,6 +7,8 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+# 20220322 bkw: Modified by SlackBuilds.org: fix 32-bit build.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mitsuba2
@@ -23,7 +25,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If PRINT_PACKAGE_NAME is set, print name of package
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -58,13 +59,18 @@ cd $PRGNAM-$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 {} \+
+
+case "$ARCH" in
+ i?86) patch -p1 < $CWD/32bit.diff ;;
+esac
mkdir -p build
cd build
cmake -GNinja \
+ $extra \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \