From db912fe465ae2a9ad0deda788f2adbd690cb1353 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Thu, 22 Jun 2017 23:22:41 +0200 Subject: games/roadfighter: Patch for the newer gcc. Signed-off-by: Matteo Bernardini --- games/roadfighter/gcc.patch | 11 +++++++++++ games/roadfighter/roadfighter.SlackBuild | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 games/roadfighter/gcc.patch (limited to 'games/roadfighter') diff --git a/games/roadfighter/gcc.patch b/games/roadfighter/gcc.patch new file mode 100644 index 0000000000000..c7e3e3895a987 --- /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 2679ac6887615..d6215675c6263 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 -- cgit v1.2.3