summaryrefslogtreecommitdiffstats
path: root/games/glbsp/glbsp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/glbsp/glbsp.SlackBuild')
-rw-r--r--games/glbsp/glbsp.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/games/glbsp/glbsp.SlackBuild b/games/glbsp/glbsp.SlackBuild
index 83129d89b8..5c05572cb0 100644
--- a/games/glbsp/glbsp.SlackBuild
+++ b/games/glbsp/glbsp.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20151126 bkw: fix build for -current (preparing for 14.2)
+
PRGNAM=glbsp
VERSION=${VERSION:-2.24}
BUILD=${BUILD:-1}
@@ -55,12 +57,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Use fltk-config --cflags and --ldflags instead of hardcoded values
+patch -p1 < $CWD/fltkconf.diff
+
# Upstream doesn't build a shared lib, but we will by default.
if [ "${STATIC:-no}" != "yes" ]; then
patch -p1 < $CWD/dynamic_libglbsp.diff
fi
sed -i "s/-O2/$SLKCFLAGS/" Makefile.unx
+
make -f Makefile.unx
make -f Makefile.unx install \
INSTALL_PREFIX=$PKG/usr \