summaryrefslogtreecommitdiff
path: root/graphics/LDView/LDView.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-06-12 14:29:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-12 22:14:26 -0500
commit0b9284970cf7a776292e5f57f4fc03b181b4ffb7 (patch)
tree596230972a8c053c56bc42cdda5f316b1e819a08 /graphics/LDView/LDView.SlackBuild
parent92258817eb52b8b07bb312564c244849922236b2 (diff)
downloadslackbuilds-0b9284970cf7a776292e5f57f4fc03b181b4ffb7.tar.gz
graphics/LDView: Patched to fix usage with NVidia cards
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 98c2827085..7fa403614a 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