aboutsummaryrefslogtreecommitdiff
path: root/graphics/ldglite/ldglite.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ldglite/ldglite.SlackBuild')
-rw-r--r--graphics/ldglite/ldglite.SlackBuild31
1 files changed, 24 insertions, 7 deletions
diff --git a/graphics/ldglite/ldglite.SlackBuild b/graphics/ldglite/ldglite.SlackBuild
index 03872684157e5..ad38b0860761f 100644
--- a/graphics/ldglite/ldglite.SlackBuild
+++ b/graphics/ldglite/ldglite.SlackBuild
@@ -3,22 +3,39 @@
# Slackware build script for ldglite:
# a program to view and edit LDraw files
-# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2010/01/27
+# 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=ldglite
-VERSION=1.2.4
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.2.4}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCVERSION=$(echo $VERSION | tr . _)
-# Automatically determine the architecture we're building on:
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,7 +73,7 @@ chmod -R u+w,go+r-w,a-s .
# patch makefile.linux to add SBO_FLAGS
patch < $CWD/cflags.patch
-SBO_FLAGS=$SLKCFLAGS ENABLE_OFFSCREEN_RENDERING=no make -f makefile.linux
+SBO_FLAGS="$SLKCFLAGS -lstdc++" ENABLE_OFFSCREEN_RENDERING=no make -f makefile.linux
# Install manually
mkdir -p $PKG/usr/bin