aboutsummaryrefslogtreecommitdiff
path: root/graphics/LDView/LDView.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/LDView/LDView.SlackBuild')
-rw-r--r--graphics/LDView/LDView.SlackBuild21
1 files changed, 18 insertions, 3 deletions
diff --git a/graphics/LDView/LDView.SlackBuild b/graphics/LDView/LDView.SlackBuild
index 98c282708534f..7fa403614a077 100644
--- a/graphics/LDView/LDView.SlackBuild
+++ b/graphics/LDView/LDView.SlackBuild
@@ -4,14 +4,22 @@
# a program to visualize LDraw files
# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2009/12/09
+# revision date 2010/06/05
PRGNAM=LDView
VERSION=4.1
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -29,6 +37,10 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
LDVDEV64=YES
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ LDVDEV64=""
fi
set -e
@@ -41,6 +53,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Patch for a bug in QT, solves problems on NVIDIA cards
+patch -p1 < $CWD/opengl.patch
+
# the 'makeall' script is in the QT directory
cd QT
export LDVDEV64