summaryrefslogtreecommitdiffstats
path: root/games/roadfighter
diff options
context:
space:
mode:
author Matteo Bernardini2020-01-03 23:09:25 +0100
committer Matteo Bernardini2020-01-03 23:09:25 +0100
commit95008285045d7130c028d6755dcc2bae5387cb22 (patch)
tree65f9ab22c4711d52dbe2d3a77112b00e4a8e051d /games/roadfighter
parent66bb71ec178eb531b8a07c19457800341c8f0d9f (diff)
downloadslackbuilds-current-20200103.1.tar.gz
20200103.1 global branch merge.current-20200103.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/roadfighter')
-rw-r--r--games/roadfighter/gcc.patch11
-rw-r--r--games/roadfighter/roadfighter.SlackBuild3
2 files changed, 14 insertions, 0 deletions
diff --git a/games/roadfighter/gcc.patch b/games/roadfighter/gcc.patch
new file mode 100644
index 0000000000..c7e3e3895a
--- /dev/null
+++ b/games/roadfighter/gcc.patch
@@ -0,0 +1,11 @@
+--- src/auxiliar.cpp 2016-06-07 16:18:19.672015830 +0200
++++ src/auxiliar.cpp 2016-06-07 16:18:41.678235683 +0200
+@@ -84,7 +84,7 @@
+ mask=IMG_Load(name);
+
+ if (tmp==0 ||
+- mask==0) return false;
++ mask==0) return 0;
+
+ res=SDL_DisplayFormatAlpha(tmp);
+
diff --git a/games/roadfighter/roadfighter.SlackBuild b/games/roadfighter/roadfighter.SlackBuild
index 2679ac6887..d6215675c6 100644
--- a/games/roadfighter/roadfighter.SlackBuild
+++ b/games/roadfighter/roadfighter.SlackBuild
@@ -74,6 +74,9 @@ find -L . \
# fix installation path
patch -p1 < $CWD/makefile.patch
+# fix building with the newer gcc
+patch -p0 < $CWD/gcc.patch
+
make
make install PREFIX=$PKG