aboutsummaryrefslogtreecommitdiff
path: root/games/supermariowar/supermariowar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/supermariowar/supermariowar.SlackBuild')
-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