From ab635d46e1b9e2a590b152dcc74a0bc12834bfba Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 22 Nov 2015 08:46:34 -0500 Subject: games/supermariowar: Fix compile issue. --- games/supermariowar/supermariowar.SlackBuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'games') 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 -- cgit v1.2.3