mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
games/brutalchess: Included a patch for gcc-4.7.x.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
8123c49e38
commit
ce25f255fd
2 changed files with 25 additions and 1 deletions
22
games/brutalchess/brutalchess-0.5.2-gcc4.7.patch
Normal file
22
games/brutalchess/brutalchess-0.5.2-gcc4.7.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff -Naur brutalchess-0.5.2.orig/src/faileplayer.cpp brutalchess-0.5.2/src/faileplayer.cpp
|
||||
--- brutalchess-0.5.2.orig/src/faileplayer.cpp 2006-12-20 21:19:50.000000000 +0100
|
||||
+++ brutalchess-0.5.2/src/faileplayer.cpp 2012-04-02 21:46:40.702000025 +0200
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
+#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -Naur brutalchess-0.5.2.orig/src/xboardplayer.cpp brutalchess-0.5.2/src/xboardplayer.cpp
|
||||
--- brutalchess-0.5.2.orig/src/xboardplayer.cpp 2006-12-19 05:00:01.000000000 +0100
|
||||
+++ brutalchess-0.5.2/src/xboardplayer.cpp 2012-04-02 21:50:09.775000025 +0200
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
+#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=brutalchess
|
||||
VERSION=0.5.2
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -69,6 +69,8 @@ chmod -R u+w,go+r-w,a-s .
|
|||
|
||||
patch -p0 -i $CWD/brutalchess-0.5.2-fix-FTBFS.patch || exit 1
|
||||
patch -p0 -i $CWD/brutalchess-0.5.2-gcc4.3.patch || exit 1
|
||||
# fix for gcc-4.7.x build
|
||||
patch -p1 -i $CWD/brutalchess-0.5.2-gcc4.7.patch || exit 1
|
||||
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
|
|
Loading…
Reference in a new issue