aboutsummaryrefslogtreecommitdiff
path: root/misc/stardict/stardict.SlackBuild
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2012-09-12 22:21:56 +0700
committerRobby Workman <rworkman@slackbuilds.org>2012-09-12 14:20:43 -0500
commit7c8f3645ac5823ab6d65e8270a5e8658c520c2ca (patch)
treed5d96980aa08897b9649e3968f891a9bb978bdbc /misc/stardict/stardict.SlackBuild
parent47844931dd9ddb24cdee91062c29b6f47629e8ca (diff)
misc/stardict: Fixed to build against gcc-4.7.x (+new maintainer)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/stardict/stardict.SlackBuild')
-rw-r--r--misc/stardict/stardict.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/misc/stardict/stardict.SlackBuild b/misc/stardict/stardict.SlackBuild
index f4d460e57994..3673835a1772 100644
--- a/misc/stardict/stardict.SlackBuild
+++ b/misc/stardict/stardict.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for StarDict
# Copyright 2008-2009 Murat D. Kadirov <banderols@gmail.com>
+# Copyright 2012 Binh Nguyen <binhnguyen@fastmail.fm>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,15 +25,13 @@
PRGNAM=stardict
VERSION=${VERSION:-3.0.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# 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
@@ -77,6 +76,9 @@ patch src/eggtrayicon.c -p1 < $CWD/patches/stardict-transparent.patch
# Incorporate some fixes for gcc44 into a deb patch for gcc43
patch -p1 < $CWD/patches/fixup_build_on_gcc44.patch
+# Fix building against gcc-4.7.x
+patch -p1 < $CWD/patches/stardict-3.0.1-gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \