From 18f50f202e9ef211b268638336629ba3504b37a9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 26 Nov 2015 02:24:56 -0500 Subject: games/glbsp: Fix compile issue. --- games/glbsp/glbsp.SlackBuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'games/glbsp/glbsp.SlackBuild') 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 \ -- cgit v1.2.3