aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/ftgl/ftgl.SlackBuild22
-rw-r--r--libraries/ftgl/ftgl.info8
2 files changed, 13 insertions, 17 deletions
diff --git a/libraries/ftgl/ftgl.SlackBuild b/libraries/ftgl/ftgl.SlackBuild
index 42294ead0f766..6e17a115271bd 100644
--- a/libraries/ftgl/ftgl.SlackBuild
+++ b/libraries/ftgl/ftgl.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for ftgl
#
+# Copyright 2020 Johannes Schoepfer, Germany
# Copyright 2007 Niklas "Nille" Åkerström
# All rights reserved.
#
@@ -23,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ftgl
-VERSION=${VERSION:-2.1.3_rc5}
-BUILD=${BUILD:-4}
+VERSION=${VERSION:-2.4.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$(echo $VERSION | tr _ \~)
-tar xvf $CWD/$PRGNAM-$(echo $VERSION | tr _ -).tar.bz2
-cd $PRGNAM-$(echo $VERSION | tr _ \~)
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,23 +71,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# 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
-# Avoid building pdf docs (seems broken ATM)
-patch -p0 < $CWD/patches/nopdfdocs.patch
-autoreconf -i
+./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=gnu++11" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc
+ --disable-static
make GLUT_LIBS="-lglut -lGLU -lGL -lm"
make install-strip DESTDIR=$PKG
+cp src/FT{Face,Size}.h $PKG/usr/include/FTGL
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \
diff --git a/libraries/ftgl/ftgl.info b/libraries/ftgl/ftgl.info
index 1197722187286..cc9f95648b3a7 100644
--- a/libraries/ftgl/ftgl.info
+++ b/libraries/ftgl/ftgl.info
@@ -1,8 +1,8 @@
PRGNAM="ftgl"
-VERSION="2.1.3_rc5"
-HOMEPAGE="https://sourceforge.net/projects/ftgl/"
-DOWNLOAD="http://downloads.sourceforge.net/ftgl/ftgl-2.1.3-rc5.tar.bz2"
-MD5SUM="c7879018cde844059495b3029b0b6503"
+VERSION="2.4.0"
+HOMEPAGE="https://github.com/frankheckenbach/ftgl"
+DOWNLOAD="https://github.com/frankheckenbach/ftgl/archive/v2.4.0/ftgl-2.4.0.tar.gz"
+MD5SUM="fba1e1c548ebe3ab362495e96a7a0670"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""