From 0b9284970cf7a776292e5f57f4fc03b181b4ffb7 Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Sat, 12 Jun 2010 14:29:29 -0500 Subject: graphics/LDView: Patched to fix usage with NVidia cards Signed-off-by: Robby Workman --- graphics/LDView/LDView.SlackBuild | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'graphics/LDView/LDView.SlackBuild') diff --git a/graphics/LDView/LDView.SlackBuild b/graphics/LDView/LDView.SlackBuild index 98c282708534..7fa403614a07 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 -- cgit v1.2.3