diff options
author | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-04-16 20:05:41 +0200 |
commit | 9ebc325833e858b4295322e10edda22b6b78ac27 (patch) | |
tree | 90dc75fdc9044943dfd98b4e15a2edee6adddb42 /games/roadfighter | |
parent | 2a650741141e819af2ecf2c4da75502b0a18d799 (diff) | |
download | slackbuilds-9ebc325833e858b4295322e10edda22b6b78ac27.tar.gz |
20190416.1 global branch merge.current-20190416.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/roadfighter')
-rw-r--r-- | games/roadfighter/gcc.patch | 11 | ||||
-rw-r--r-- | games/roadfighter/roadfighter.SlackBuild | 3 |
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 eee917a62b..95ea975803 100644 --- a/games/roadfighter/roadfighter.SlackBuild +++ b/games/roadfighter/roadfighter.SlackBuild @@ -73,6 +73,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 |