diff options
author | Niels Horn <niels.horn@gmail.com> | 2012-09-13 16:53:34 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2012-09-13 16:53:34 -0300 |
commit | b3ea7cc4df462db5e60c4ef2ca34832703c92e09 (patch) | |
tree | 94088f7e87e0502918a18688efca971759ed29cd | |
parent | f11d88063783615fb8d4097f6bffb1afa84ee800 (diff) | |
download | slackbuilds-b3ea7cc4df462db5e60c4ef2ca34832703c92e09.tar.gz |
graphics/ldglite: Fixed to build against gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | graphics/ldglite/ldglite.SlackBuild | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/graphics/ldglite/ldglite.SlackBuild b/graphics/ldglite/ldglite.SlackBuild index 0387268415..ad38b08607 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 |