aboutsummaryrefslogtreecommitdiff
path: root/libraries/SFML/SFML.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-23 19:41:09 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-24 22:53:32 -0500
commit0c182f49bf17a4db4161829ca0ac56395b1a151d (patch)
treed10d3b0b74ad34b28395670ab1aeaa4b605b6319 /libraries/SFML/SFML.SlackBuild
parentbad9401718a3c0e21d63ecea63138ce64dbe2fe0 (diff)
libraries/SFML: Added a patch for gcc-4.7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/SFML/SFML.SlackBuild')
-rw-r--r--libraries/SFML/SFML.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/SFML/SFML.SlackBuild b/libraries/SFML/SFML.SlackBuild
index 29db2f7fd483b..91f9719fa914a 100644
--- a/libraries/SFML/SFML.SlackBuild
+++ b/libraries/SFML/SFML.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=SFML
VERSION=${VERSION:-1.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -61,6 +61,9 @@ sed -i "s/CFLAGS\ .*=/CFLAGS +=/" src/SFML/Makefile
# Patch Makefile to put libs in correct place
sed -i "s|(DESTDIR)/lib|(DESTDIR)/lib$LIBDIRSUFFIX|" src/SFML/Makefile
+# Add a big patch for gcc-4.7.x
+patch -p1 < $CWD/gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG/usr