aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-11-22 08:46:34 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-28 07:26:17 +0700
commitab635d46e1b9e2a590b152dcc74a0bc12834bfba (patch)
treebba0fd54872bb51294f916bca5d41ed1ee3da463 /games
parent3c1c6ee37354d19a87335c8c055fd76f820b8de2 (diff)
games/supermariowar: Fix compile issue.
Diffstat (limited to 'games')
-rw-r--r--games/supermariowar/supermariowar.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/supermariowar/supermariowar.SlackBuild b/games/supermariowar/supermariowar.SlackBuild
index 37d84ea39c964..416831766edad 100644
--- a/games/supermariowar/supermariowar.SlackBuild
+++ b/games/supermariowar/supermariowar.SlackBuild
@@ -60,7 +60,13 @@ zcat $CWD/compilefixes.diff.gz | patch -p1
# the configure script isn't autoconf (yay), but it has CRLFs (boo)
sed -i 's,\r,,g' configure
-sh configure
+
+# 20151122 bkw: PNG screenshots stopped working in -current, let's check
+# for it. When this is disabled, screenshots get saved as BMP instead.
+[ "$( pkg-config --modversion libpng | cut -d. -f1,2 )" != "1.4" ] && \
+ PNGOPT="--no-png-save"
+
+sh configure $PNGOPT
sed -i "/^CFLAGS/s,$, $SLKCFLAGS -fpermissive," configuration
make