summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2015-11-22 08:46:34 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-28 07:26:17 +0700
commitab635d46e1b9e2a590b152dcc74a0bc12834bfba (patch)
treebba0fd54872bb51294f916bca5d41ed1ee3da463
parent3c1c6ee37354d19a87335c8c055fd76f820b8de2 (diff)
downloadslackbuilds-ab635d46e1b9e2a590b152dcc74a0bc12834bfba.tar.gz
slackbuilds-ab635d46e1b9e2a590b152dcc74a0bc12834bfba.tar.xz
games/supermariowar: Fix compile issue.
-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 37d84ea39c..416831766e 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