mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
graphics/ldglite: Fixed to build against gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
f11d880637
commit
b3ea7cc4df
1 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue