Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master games grimoire by Vlad Glagolev (713a987a658da2a41ec9da9e53a55102cfe90666)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master games grimoire by Vlad Glagolev (713a987a658da2a41ec9da9e53a55102cfe90666)
  • Date: Sat, 2 Oct 2010 19:59:17 -0500

GIT changes to master games grimoire by Vlad Glagolev
<stealth AT sourcemage.org>:

games-board/brutalchess/HISTORY | 4 ++
games-board/brutalchess/PRE_BUILD | 4 ++
games-board/brutalchess/types.patch | 59
++++++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+)

New commits:
commit 713a987a658da2a41ec9da9e53a55102cfe90666
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

brutalchess: fixed compilation with recent libraries

diff --git a/games-board/brutalchess/HISTORY b/games-board/brutalchess/HISTORY
index 6821f34..1b8184d 100644
--- a/games-board/brutalchess/HISTORY
+++ b/games-board/brutalchess/HISTORY
@@ -1,2 +1,6 @@
+2010-10-03 Vlad Glagolev <stealth AT sourcemage.org>
+ * PRE_BUILD: added, to apply the patch
+ * types.patch: added, to fix compilation
+
2007-04-22 Andraž "ruskie" Levstik <ruskie AT mages.ath.cx>
* DETAILS, DEPENDS, BUILD, HISTORY: created spell
diff --git a/games-board/brutalchess/PRE_BUILD
b/games-board/brutalchess/PRE_BUILD
new file mode 100755
index 0000000..67bee2e
--- /dev/null
+++ b/games-board/brutalchess/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/types.patch"
diff --git a/games-board/brutalchess/types.patch
b/games-board/brutalchess/types.patch
new file mode 100644
index 0000000..c53e1b6
--- /dev/null
+++ b/games-board/brutalchess/types.patch
@@ -0,0 +1,59 @@
+--- src/brutalplayer.cpp.orig 2007-01-23 07:02:18.000000000 +0300
++++ src/brutalplayer.cpp 2010-10-03 03:44:06.819045878 +0400
+@@ -10,6 +10,7 @@
+ #include "chessplayer.h"
+ #include "options.h"
+
++#include <climits>
+ #include <vector>
+ #include <time.h>
+
+--- src/md3view.cpp.orig 2006-04-19 02:26:16.000000000 +0400
++++ src/md3view.cpp 2010-10-03 03:48:24.944044462 +0400
+@@ -72,7 +72,7 @@
+ exit( returnCode );
+ }
+
+-int initGL( GLvoid );
++int initGL( void );
+ // function to reset our viewport after a window resize
+ int resizeWindow( int width, int height )
+ {
+@@ -108,7 +108,7 @@
+
+
+ // general OpenGL initialization function
+-int initGL( GLvoid )
++int initGL( void )
+ {
+ cout << "Initializing OpenGL" << endl;
+ // Enable smooth shading
+--- src/objview.cpp.orig 2006-04-19 00:34:25.000000000 +0400
++++ src/objview.cpp 2010-10-03 03:50:18.804043953 +0400
+@@ -73,7 +73,7 @@
+ exit( returnCode );
+ }
+
+-int initGL( GLvoid );
++int initGL( void );
+ // function to reset our viewport after a window resize
+ int resizeWindow( int width, int height )
+ {
+@@ -109,7 +109,7 @@
+
+
+ // general OpenGL initialization function
+-int initGL( GLvoid )
++int initGL( void )
+ {
+ cout << "Initializing OpenGL" << endl;
+ // Enable smooth shading
+@@ -158,7 +158,7 @@
+ }
+
+ // Here goes our drawing code
+-int drawGLScene( GLvoid )
++int drawGLScene( void )
+ {
+ // These are to calculate our fps
+ static GLint T0 = 0;



  • [SM-Commit] GIT changes to master games grimoire by Vlad Glagolev (713a987a658da2a41ec9da9e53a55102cfe90666), Vlad Glagolev, 10/02/2010

Archive powered by MHonArc 2.6.24.

Top of Page