head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.52 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.50 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.48 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.46 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.44 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.42 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.40 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.38 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.36 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.34 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.32 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.30 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.28 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.26 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.24 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.22 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.20 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1 netbsd-1-5-PATCH001:1.1; locks; strict; comment @# @; 1.2 date 2004.03.08.03.04.36; author minskim; state dead; branches; next 1.1; 1.1 date 2000.10.15.01.53.41; author jlam; state Exp; branches; next ; desc @@ 1.2 log @Update gnuchess to 5.07. Patch provided by Michal Pasternak in PR pkg/24700, and slightly modified by me. Changes: - New PGN parser handles annotated PGN when creating opening book - Additional command line options - gnuchessx script added - Added code for pondering and analysis mode - Added white/black commands for use with icsDrone - Command line options now follow GNU standards (./gnuchess --help) - Some optimisations added - Book may be stored in /usr/share/games/gnuchess/book.dat - Program no longer starts search from scratch every move - Fixed a potential buffer overflow in pgn.c. - General code cleanups, bug fixes, and probably introduction of new bugs, especially in pondering related code - The opening book is now looked for in /usr/lib/games/gnuchess/book.dat if it is not found in the working directory. - Changes for easing compilation with MSVC - Removed support for the Novag Universal Board. The recommended alternative is to use the winboard driver for this board, which is linked to on http://www.tim-mann.org/extensions.html - Bug fixes (as always) - Bug fixes (The infamous "illegal move" bug should be dead by now.) - Architecture independent binary book. Yes, you may now move your binary book around between little and big endian, 32 and 64 bit machines and it should not break. - Build system is now automake/autoconf, should ease porting gnuchess to your favorite strange architecture. (Hell, what about gnuchess on cellphones...?) @ text @$NetBSD: patch-af,v 1.1 2000/10/15 01:53:41 jlam Exp $ --- main.c.orig Sat Oct 23 11:50:27 1999 +++ main.c @@@@ -277,6 +277,9 @@@@ 0x7F, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x01 }; +char *booksrc = BOOKSRC; +char *bookbin = BOOKBIN; + int main (int argc, char *argv[]) { int compilebook = 0; @@@@ -302,8 +305,14 @@@@ SET (flags, XBOARD); } else if (strcmp(argv[i],"post") == 0) { SET (flags, POST); - } else if (strcmp(argv[i],"compile") == 0) + } else if (strcmp(argv[i],"compile") == 0) { compilebook++; + if (argc > 2) { + booksrc = argv[2]; + if (argc > 3) + bookbin = argv[3]; + } + } } } @@@@ -318,8 +327,14 @@@@ SET (flags, XBOARD); } else if (strcmp(argv[i],"post") == 0) { SET (flags, POST); - } else if (strcmp(argv[i],"compile") == 0) + } else if (strcmp(argv[i],"compile") == 0) { compilebook++; + if (argc > 2) { + booksrc = argv[2]; + if (argc > 3) + bookbin = argv[3]; + } + } } } @@@@ -327,8 +342,8 @@@@ bookfirstlast = 3; if (compilebook) { - unlink(BOOKBIN); - genbook(); + unlink(bookbin); + genbook(booksrc, bookbin); } else { while (!(flags & QUIT)) { @ 1.1 log @Update to gnuchess-5.00nb1: add code to allow building of opening books in user-specified locations. Remove installation of default book...it's so small that it's pretty much useless anyway. See games/gnuchess-book-* for chess opening books for GNU Chess. @ text @d1 1 a1 1 $NetBSD$ @