summaryrefslogtreecommitdiffstats
path: root/libraries/ftgl/ftgl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ftgl/ftgl.SlackBuild')
-rw-r--r--libraries/ftgl/ftgl.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/ftgl/ftgl.SlackBuild b/libraries/ftgl/ftgl.SlackBuild
index e37e2a05fa..b658441bb3 100644
--- a/libraries/ftgl/ftgl.SlackBuild
+++ b/libraries/ftgl/ftgl.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=ftgl
VERSION=${VERSION:-2.1.3_rc5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -68,6 +68,12 @@ cd $PRGNAM-$(echo $VERSION | tr _ \~)
chown -R root:root .
chmod -R a-s,u+rw,go+r-w .
+# Fix building with gcc-4.7.x
+patch -p1 < $CWD/patches/gcc47.patch
+# Fix spam that breaks build after autoreconfing
+patch -p1 < $CWD/patches/spam.patch
+autoreconf -i
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -78,7 +84,6 @@ CXXFLAGS="$SLKCFLAGS" \
make GLUT_LIBS="-lglut -lGLU -lGL -lm"
make install-strip DESTDIR=$PKG
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION