[gnome-games] glchess: Remove embedded version of gnuchess
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] glchess: Remove embedded version of gnuchess
- Date: Thu, 29 Dec 2011 01:56:45 +0000 (UTC)
commit 29598357352c4c9ed990c402bf36f53ff75af412
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Thu Dec 29 02:41:29 2011 +0100
glchess: Remove embedded version of gnuchess
There is no need for an embedded version when a normal dep on
gnuchess works just fine. Most distros do this anyway.
README | 4 -
configure.in | 33 -
glchess/Makefile.am | 8 +-
glchess/data/engines.conf | 10 -
glchess/gnuchess/Makefile.am | 14 -
glchess/gnuchess/README | 512 -------
glchess/gnuchess/atak.c | 536 -------
glchess/gnuchess/book.c | 682 ---------
glchess/gnuchess/book.h | 46 -
glchess/gnuchess/cmd.c | 995 -------------
glchess/gnuchess/common.h | 858 -----------
glchess/gnuchess/debug.c | 74 -
glchess/gnuchess/epd.c | 370 -----
glchess/gnuchess/eval.c | 1496 -------------------
glchess/gnuchess/eval.h | 118 --
glchess/gnuchess/genmove.c | 788 ----------
glchess/gnuchess/getopt.c | 1067 -------------
glchess/gnuchess/getopt.h | 179 ---
glchess/gnuchess/getopt1.c | 187 ---
glchess/gnuchess/hash.c | 127 --
glchess/gnuchess/hung.c | 76 -
glchess/gnuchess/init.c | 796 ----------
glchess/gnuchess/inlines.h | 61 -
glchess/gnuchess/input.c | 192 ---
glchess/gnuchess/iterate.c | 375 -----
glchess/gnuchess/lexpgn.c | 3395 ------------------------------------------
glchess/gnuchess/lexpgn.h | 27 -
glchess/gnuchess/lexpgn.l | 420 ------
glchess/gnuchess/main.c | 471 ------
glchess/gnuchess/move.c | 939 ------------
glchess/gnuchess/null.c | 77 -
glchess/gnuchess/output.c | 303 ----
glchess/gnuchess/pgn.c | 388 -----
glchess/gnuchess/players.c | 212 ---
glchess/gnuchess/ponder.c | 58 -
glchess/gnuchess/quiesce.c | 114 --
glchess/gnuchess/random.c | 135 --
glchess/gnuchess/repeat.c | 45 -
glchess/gnuchess/search.c | 734 ---------
glchess/gnuchess/solve.c | 78 -
glchess/gnuchess/sort.c | 345 -----
glchess/gnuchess/swap.c | 170 ---
glchess/gnuchess/test.c | 266 ----
glchess/gnuchess/ttable.c | 162 --
glchess/gnuchess/util.c | 220 ---
glchess/gnuchess/version.h | 27 -
46 files changed, 1 insertions(+), 18189 deletions(-)
---
diff --git a/README b/README
index f8d27d2..cc0f700 100644
--- a/README
+++ b/README
@@ -249,10 +249,6 @@ CECP compatible AI, such as crafty or gnuchess. See the README file
in the glchess directory for more information about glChess and it's
optional software dependencies.
-The included gnuchess AI can be run using the 'gnome-gnuchess' binary.
-To compile glChess without the bundled gnuchess binary, you can
-compile with ./configure --disable-gnuchess
-
The games that require additional packages are:
C++: Gnometris
Python: glchess, gnome-sudoku
diff --git a/configure.in b/configure.in
index 0640395..7ea6874 100644
--- a/configure.in
+++ b/configure.in
@@ -116,7 +116,6 @@ need_glx=no
need_python=no
need_clutter=no
want_sound=no
-allow_gnuchess=no
allow_smclient=no
require_cairo_1_10=no
@@ -138,10 +137,6 @@ for game in $gamelist; do
*) ;;
esac
case $game in
- glchess) allow_gnuchess=yes ;;
- *) ;;
- esac
- case $game in
gnome-sudoku) need_python=yes ;;
*) ;;
esac
@@ -639,33 +634,6 @@ AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])
-# ********************
-# Game specific checks
-# ********************
-
-if test "$allow_gnuchess" = "yes"; then
- AC_ARG_ENABLE([gnuchess],
- [AS_HELP_STRING([--disable-gnuchess],[Disable included gnuchess for glChess])],
- [],[enable_gnuchess=yes])
-
- if test "$enable_gnuchess" = "yes"; then
- AC_DEFINE([ENABLE_GNUCHESS],[1],[Enable compilation of included GNU Chess as AI chess engine for glChess])
- AC_CHECK_HEADER(pthread.h, [],
- AC_MSG_ERROR([*** Cannot find pthread.h header]))
- AC_CHECK_LIB(pthread, pthread_create,
- [PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -lpthread"
- PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"],
- [AC_CHECK_LIB(c_r, pthread_create,
- [PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -pthread"
- PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"],
- AC_MSG_ERROR([*** Cannot find pthread library]))])
- AC_SUBST(PTHREAD_CFLAGS)
- AC_SUBST(PTHREAD_LDFLAGS)
- fi
-fi
-
-AM_CONDITIONAL([WITH_INCLUDED_GNUCHESS],[test "$enable_gnuchess" = "yes"])
-
# Check for library functions
# ===========================
@@ -903,7 +871,6 @@ glchess/data/pieces/3d/Makefile
glchess/data/pieces/fancy/Makefile
glchess/data/pieces/simple/Makefile
glchess/data/textures/Makefile
-glchess/gnuchess/Makefile
glchess/help/Makefile
glchess/src/Makefile
gnome-sudoku/Makefile
diff --git a/glchess/Makefile.am b/glchess/Makefile.am
index deafde9..88e4f57 100644
--- a/glchess/Makefile.am
+++ b/glchess/Makefile.am
@@ -1,10 +1,4 @@
-SUBDIRS =
-
-if WITH_INCLUDED_GNUCHESS
-SUBDIRS += gnuchess
-endif
-
-SUBDIRS += data help src
+SUBDIRS = data help src
desktopdir = $(datadir)/applications
desktop_in_files = glchess.desktop.in.in
diff --git a/glchess/data/engines.conf b/glchess/data/engines.conf
index 99ca834..8e244d9 100644
--- a/glchess/data/engines.conf
+++ b/glchess/data/engines.conf
@@ -1,13 +1,3 @@
-# gnome-gnuchess is bundled with gnome-games
-[GNU Chess]
-protocol=cecp
-binary=gnome-gnuchess
-args=--xboard
-option-easy-0=easy
-option-easy-1=depth 1
-option-normal-0=depth 4
-option-hard-0=hard
-
[GNUchess]
protocol=cecp
binary=gnuchess
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]