mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/f1spirit: Patch for gcc >= 6.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
18d8384b2a
commit
293675e409
2 changed files with 15 additions and 0 deletions
12
games/f1spirit/03_gcc6.patch
Normal file
12
games/f1spirit/03_gcc6.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -Naur f1spirit-0.rc9.1615.orig/sources/auxiliar.cpp f1spirit-0.rc9.1615/sources/auxiliar.cpp
|
||||||
|
--- f1spirit-0.rc9.1615.orig/sources/auxiliar.cpp 2009-02-06 10:54:49.000000000 +0100
|
||||||
|
+++ f1spirit-0.rc9.1615/sources/auxiliar.cpp 2017-06-23 11:57:14.145689872 +0200
|
||||||
|
@@ -93,7 +93,7 @@
|
||||||
|
|
||||||
|
if (tmp == 0 ||
|
||||||
|
mask == 0)
|
||||||
|
- return false;
|
||||||
|
+ return 0;
|
||||||
|
|
||||||
|
res = SDL_DisplayFormatAlpha(tmp);
|
||||||
|
|
|
@ -53,6 +53,9 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
# Fix for the newer gccs
|
||||||
|
patch -p1 < $CWD/03_gcc6.patch
|
||||||
|
|
||||||
make install PREFIX=$PKG/usr
|
make install PREFIX=$PKG/usr
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
|
Loading…
Reference in a new issue