summaryrefslogtreecommitdiff
path: root/games/bitfighter
diff options
context:
space:
mode:
Diffstat (limited to 'games/bitfighter')
-rw-r--r--games/bitfighter/bitfighter.SlackBuild3
-rw-r--r--games/bitfighter/gcc-5.X.patch12
2 files changed, 15 insertions, 0 deletions
diff --git a/games/bitfighter/bitfighter.SlackBuild b/games/bitfighter/bitfighter.SlackBuild
index bd7128a3cb..656c9e8530 100644
--- a/games/bitfighter/bitfighter.SlackBuild
+++ b/games/bitfighter/bitfighter.SlackBuild
@@ -70,6 +70,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fix for gcc-5 thanks to Arch Linux
+patch -p1 < $CWD/gcc-5.X.patch
+
mkdir -p build
cd build
cmake \
diff --git a/games/bitfighter/gcc-5.X.patch b/games/bitfighter/gcc-5.X.patch
new file mode 100644
index 0000000000..a6cecd987f
--- /dev/null
+++ b/games/bitfighter/gcc-5.X.patch
@@ -0,0 +1,12 @@
+diff -Naur bitfighter-019e.orig/tnl/tnlTypes.h bitfighter-019e/tnl/tnlTypes.h
+--- bitfighter-019e.orig/tnl/tnlTypes.h 2015-05-12 00:58:58.656019389 +0000
++++ bitfighter-019e/tnl/tnlTypes.h 2015-11-15 05:41:54.353333331 +0000
+@@ -333,6 +333,8 @@
+ # define TNL_GCC_3
+ # elif __GNUC__ == 4
+ # define TNL_GCC_4
++# elif __GNUC__ == 5
++# define TNL_GCC_5
+ # else
+ # error "TNL: Unsupported version of GCC (see tnlMethodDispatch.cpp)"
+ # endif