debian/0000755000000000000000000000000011756264277007207 5ustar debian/control0000644000000000000000000000114611645633005010576 0ustar Source: hoichess Section: games Priority: optional Maintainer: Oliver Korff Build-Depends: libreadline-dev, debhelper (>= 7.0.50~), perl Standards-Version: 3.9.2 Package: hoichess Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: xboard (>=4.2.7-1) | scid Description: xboard compatible chess engine to play chess with chess engine compatible with xboard, but may also be used stand-alone, via terminal. Hoichess is written in C++ for GNU/Linux systems, but should work on most other Unix like systems. It provides also a xiangqi ("Chinese chess") playing program. debian/README.Debian0000644000000000000000000000205411566460402011234 0ustar hoichess for Debian ------------------- Frontends: This Software is useful with a frontend to play with. Successfully tested is the current version of knights. Also the famous analysis and database frontend scid is working perfectly with hoichess. More information: http://www.hoicher.de/hoichess http://wbec-ridderkerk.nl/index.html http://www.tim-mann.org/chess.html Opening Book there is currently no opening book distributed for hoichess. We have the source code of the gnuchess opening book in debian already. I will talk to the maintainer and maybe provide a patch that his package produces an opening book for hoichess also. As long as this takes you can get an opening book by hand: apt-get source gnuchess-book find the .pgn file and do: echo "book create openingbook.bin openings.pgn 0 10" | hoichess This will take about 1-2 minutes and produces a binary opening book. hoichess can be called like this to use this opening book: hoichess --book openingbook.bin -- Oliver Korff , Sat, 19 Dec 2005 22:01:56 +0100 debian/rules0000755000000000000000000000103511645630650010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 %: dh $@ override_dh_link: dh_link usr/share/man/man6/hoichess.6.gz usr/share/man/man6/hoixiangqi.6.gz debian/dirs0000644000000000000000000000001311645627417010061 0ustar /usr/games debian/source/0000755000000000000000000000000011645625632010500 5ustar debian/source/format0000644000000000000000000000001411645574440011706 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211566460402010370 0ustar 7 debian/watch0000644000000000000000000000021311645560030010213 0ustar # This source is discontinued by its author and will be # maintained by the package maintainer as long as the problems # can be handled. debian/docs0000644000000000000000000000001411566460402010040 0ustar BUGS README debian/copyright0000644000000000000000000000247011645632302011126 0ustar This package was debianized by Oliver Korff on Fri, 23 Dec 2005 22:01:56 +0100. It was downloaded from http://www.hoicher.de/hoichess/ This Software is discontinued from its author, the site is down. I will continue maintaining it as long as I can. Upstream Author: Holger Ruckdeschel Copyright: Copyright 2004 - 2007 Holger Ruckdeschel License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The Debian packaging is Copyright 2006, Oliver Korff and is licensed under the GPL, see above. debian/patches/0000755000000000000000000000000011756264346010633 5ustar debian/patches/01-Makefile0000644000000000000000000000434211645637462012514 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . hoichess (0.10.3-6) unstable; urgency=low . * Standards Version update to 3.9.2 * Switch to dpkg-source 3.0 (quilt) format Author: Oliver Korff --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- hoichess-0.10.3.orig/src/config.h +++ hoichess-0.10.3/src/config.h @@ -33,7 +33,7 @@ #define DEFAULT_EVALCACHESIZE "4M" /* Default location of opening book */ -#define DEFAULT_BOOK "book.dat" +#define DEFAULT_BOOK "/usr/share/games/hoichess-book/hoichess-book.dat" /* Use a single board in search tree, in connection with Board::unmake_move(). * Otherwise, the board will be copied from node to node each time a move is --- hoichess-0.10.3.orig/src/Makefile +++ hoichess-0.10.3/src/Makefile @@ -3,6 +3,7 @@ PLATFORM = unix CXX = g++ +# CXX = /usr/local/bin/g++-snapshot CPP = $(CXX) -E INSTALL = /usr/bin/install --- hoichess-0.10.3.orig/src/Makefile.local +++ hoichess-0.10.3/src/Makefile.local @@ -24,10 +24,10 @@ CXXFLAGS += -O3 -ifeq ($(PLATFORM),unix) - CXX = g++-4.1 - HAVE_READLINE = 1 -endif +#ifeq ($(PLATFORM),unix) +# CXX = g++-4.1 +# HAVE_READLINE = 1 +#endif ifeq ($(PLATFORM),mingw32) CXX = i586-mingw32msvc-g++ endif --- hoichess-0.10.3.orig/src/debug_printconfig.h +++ hoichess-0.10.3/src/debug_printconfig.h @@ -1,3 +1,5 @@ +#include + #define EXPTOSTRING1(x) #x #define EXPTOSTRING(x) EXPTOSTRING1(x) #ifdef DEFAULT_HASHSIZE debian/patches/01-ld-as-needed0000644000000000000000000000132011645640126013201 0ustar Description: Fix FTBFS with ld --as-needed. Order of linker option matters. Author: Matthias Klose Origin: ubuntu, http://launchpadlibrarian.net/79980054/hoichess_0.10.3-5_0.10.3-5ubuntu1.diff.gz Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641727 Forwarded: no Reviewed-By: Oliver Korff Last-Update: <2011-10-13> --- a/src/Makefile +++ b/src/Makefile @@ -112,7 +112,7 @@ # link object files $(BIN_CHESS) $(BIN_XIANGQI): @mkdir -p $(dir $@) - $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LIBPATH) $(LIBS) -o $@ $^ + $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS) # compile source files $(BUILDDIR_CHESS)/%.o $(BUILDDIR_XIANGQI)/%.o: %.cc Makefile Makefile.local debian/patches/04-debug_printconfig.h0000644000000000000000000000047711645634333014717 0ustar Description: include Author: Oliver Korff Last-Update: <2011-10-13> --- hoichess-0.10.3.orig/src/debug_printconfig.h +++ hoichess-0.10.3/src/debug_printconfig.h @@ -1,3 +1,5 @@ +#include + #define EXPTOSTRING1(x) #x #define EXPTOSTRING(x) EXPTOSTRING1(x) #ifdef DEFAULT_HASHSIZE debian/patches/02-Makefile.local0000644000000000000000000000073111645634100013566 0ustar Description: hardcode g++ version in unix not necessary Nothing more to say Author: Oliver Korff Last-Update: <2011-10-13> --- hoichess-0.10.3.orig/src/Makefile.local +++ hoichess-0.10.3/src/Makefile.local @@ -24,10 +24,10 @@ CXXFLAGS += -O3 -ifeq ($(PLATFORM),unix) - CXX = g++-4.1 - HAVE_READLINE = 1 -endif +#ifeq ($(PLATFORM),unix) +# CXX = g++-4.1 +# HAVE_READLINE = 1 +#endif ifeq ($(PLATFORM),mingw32) CXX = i586-mingw32msvc-g++ endif debian/patches/series0000644000000000000000000000012611756264342012043 0ustar 01-ld-as-needed 02-Makefile.local 03-config.h 04-debug_printconfig.h 05-ftbfs-gcc-4.7 debian/patches/03-config.h0000644000000000000000000000104011645634245012460 0ustar Description: Find the book in a standard path. Author: Oliver Korff Last-Update: <2011-10-13> --- hoichess-0.10.3.orig/src/config.h +++ hoichess-0.10.3/src/config.h @@ -33,7 +33,7 @@ #define DEFAULT_EVALCACHESIZE "4M" /* Default location of opening book */ -#define DEFAULT_BOOK "book.dat" +#define DEFAULT_BOOK "/usr/share/games/hoichess-book/hoichess-book.dat" /* Use a single board in search tree, in connection with Board::unmake_move(). * Otherwise, the board will be copied from node to node each time a move is debian/patches/05-ftbfs-gcc-4.70000644000000000000000000000067311756264346013152 0ustar --- hoichess-0.10.3.orig/src/main.cc +++ hoichess-0.10.3/src/main.cc @@ -28,6 +28,7 @@ #endif #include #include +#include #include "common.h" #include "compile.h" --- hoichess-0.10.3.orig/src/shell.cc +++ hoichess-0.10.3/src/shell.cc @@ -27,6 +27,7 @@ #include "shell.h" #include +#include #ifdef HAVE_READLINE # include # include debian/changelog0000644000000000000000000000751311756264277011067 0ustar hoichess (0.10.3-6.1) unstable; urgency=low [ Matthias Klose ] * Non maintainer upload. * Fix build failure with GCC 4.7. Closes: #667202. -- Jonathan Wiltshire Sun, 20 May 2012 22:57:15 +0100 hoichess (0.10.3-6) unstable; urgency=low * Standards Version update to 3.9.2 * Removed knights from the Recommends: field in control * Switch to dpkg-source 3.0 (quilt) format. This requests newer debhelper scripts. Added a dependency. * Order matters with linking and ld-as-needed. Took the patch from Matthias Klose . Thanks. (Closes: #641727) -- Oliver Korff Thu, 13 Oct 2011 21:51:35 +0200 hoichess (0.10.3-5) unstable; urgency=low * Replaced the build dependency of libreadline5-dev to libreadline-dev this (Closes: #553781) * This software is discontinued by its author, I will maintain it as long as I can. Added a note to the copyright file. -- Oliver Korff Mon, 02 Nov 2009 16:47:53 +0100 hoichess (0.10.3-4) unstable; urgency=low * added include for iostream in debug_printconfig.h this fixes FTBFS and (Closes: #542135) and (Closes: #542986) * removed watchfile, homepage is not available anymore * Standards Version update to 3.8.3 -- Oliver Korff Fri, 21 Aug 2009 21:03:55 +0200 hoichess (0.10.3-3) unstable; urgency=low * opening book recommendation removed, the book is not in debian right now, it is too huge * control file: Homepage removed, upstream is not active any more I will support hoichess as long as I can, because hoxianxi the chinese chess engine is unique in debian * Standards Version to 3.8.1 * Set debhelper version to >=7.0.0 * Set compat level to 7 * Removed dh_clean -k from rules and added dh_prep -- Oliver Korff Sat, 06 Jun 2009 14:21:03 +0200 hoichess (0.10.3-2) unstable; urgency=low * Set default path to find future opening books * The book file will be provided in the package hoichess-book * Package now recommends the opening book -- Oliver Korff Thu, 21 Feb 2008 13:00:05 +0100 hoichess (0.10.3-1) unstable; urgency=low * New Upstream version * Fixes gcc-4.3 missing icludes (Closes: #455143) -- Oliver Korff Tue, 08 Jan 2008 15:32:37 +0100 hoichess (0.10.2-1) unstable; urgency=low * New Upstream Release * Added perl build dependency -- Oliver Korff Fri, 09 Nov 2007 17:22:01 +0100 hoichess (0.9.0-1) unstable; urgency=low * New upstream version 0.9.0 * Upstream Author added gcc-4.3 includes Closes: #417225 * removed checklib dependency libm.so.6 -- Oliver Korff Thu, 21 Jun 2007 13:35:24 +0200 hoichess (0.8.0-1) unstable; urgency=low * New upstream version 0.8.0 * New binary hoixiangqi ("Chinese chess") playing program * Added more info regarding opening book to README.Debian -- Oliver Korff Sat, 16 Dec 2006 14:32:40 +0100 hoichess (0.5.1-1) unstable; urgency=low * New upstream version 0.5.1 Closes: #379233 -- Oliver Korff Thu, 3 Aug 2006 01:25:04 +0200 hoichess (0.4.3-2) unstable; urgency=low * altered compile options, MAKE += CXX=g++ CXXFLAGS="$(CFLAGS)" * The fix will be valid for upcoming versions Closes: #364656 -- Oliver Korff Sun, 25 Jun 2006 10:26:50 +0200 hoichess (0.4.3-1) unstable; urgency=low * New Upstream Version * Added readline support, for the commandline interface -- Oliver Korff Tue, 20 Jun 2006 20:53:07 +0200 hoichess (0.4.1-1) unstable; urgency=low * New Upstream Version * altered compile options, no march=i686 anymore Closes: #364656 -- Oliver Korff Tue, 2 May 2006 10:23:13 +0200 hoichess (0.4.0-1) unstable; urgency=low * Initial release Closes: #334927 -- Oliver Korff Sun, 19 Mar 2006 20:41:15 +0100