aboutsummaryrefslogtreecommitdiff
path: root/graphics/LDView/LDView.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2012-09-13 16:22:49 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2012-09-13 16:22:49 -0300
commitf11d88063783615fb8d4097f6bffb1afa84ee800 (patch)
treeeeb4a1d7887a6b65c8ed44fe5039005e25f588a8 /graphics/LDView/LDView.SlackBuild
parent4032bd1ac5720ffb7f4cad4ca779ce334481f895 (diff)
graphics/LDView: Fixed to build against gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/LDView/LDView.SlackBuild')
-rw-r--r--graphics/LDView/LDView.SlackBuild35
1 files changed, 30 insertions, 5 deletions
diff --git a/graphics/LDView/LDView.SlackBuild b/graphics/LDView/LDView.SlackBuild
index 7fa403614a077..4225153c14969 100644
--- a/graphics/LDView/LDView.SlackBuild
+++ b/graphics/LDView/LDView.SlackBuild
@@ -3,19 +3,37 @@
# Slackware build script for LDView:
# a program to visualize LDraw files
-# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2010/06/05
+# Copyright 2009-2010, 2012 Niels Horn, Rio de Janeiro, Brazil
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# revision date 2012/09/13
PRGNAM=LDView
VERSION=4.1
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
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
@@ -56,10 +74,17 @@ 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
+# Patch for gcc-4.7
+patch -p1 < $CWD/LDView_gcc47.patch
+
# the 'makeall' script is in the QT directory
cd QT
+
+# Fix LDView.pro for gcc-4.7
+sed -e 's/-ljpeg/-ljpeg -lpng14 -lz -lGLU/' -i LDView.pro
+
export LDVDEV64
-QTDIR=$QT4DIR TESTING=$SLKCFLAGS ./makeall
+QTDIR=$QT4DIR TESTING="$SLKCFLAGS" ./makeall
# Install manually
mkdir -p $PKG/usr/bin