head 1.8; access; symbols pkgsrc-2016Q1:1.7.0.70 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.68 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.66 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.64 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.62 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.60 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.58 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.56 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.54 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.52 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.50 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.48 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.46 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.44 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.42 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.40 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.38 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.36 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.34 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.32 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.30 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.28 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.26 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.24 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.22 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.20 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.18 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.16 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.14 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.12 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.10 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.8 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.6 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.4 pkgsrc-2008Q1:1.7.0.2 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.6.0.32 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.30 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.28 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.26 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.24 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.22 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.20 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.18 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.16 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.14 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.12 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.10 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.8 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.6 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.4 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.2 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.5.0.10 pkgsrc-2003Q4-base:1.5 netbsd-1-6-1:1.5.0.6 netbsd-1-6-1-base:1.5 netbsd-1-6:1.5.0.8 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.5 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.1.1.1 netbsd-1-4-PATCH001:1.1.1.1 netbsd-1-4-RELEASE:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.8 date 2016.05.03.02.15.47; author mef; state dead; branches; next 1.7; commitid Iltow9njsf6KKY4z; 1.7 date 2008.04.03.09.07.49; author joerg; state Exp; branches; next 1.6; 1.6 date 2004.03.08.03.04.36; author minskim; state dead; branches; next 1.5; 1.5 date 2000.10.15.01.53.40; author jlam; state Exp; branches; next 1.4; 1.4 date 2000.10.01.04.24.27; author jlam; state Exp; branches; next 1.3; 1.3 date 2000.03.26.08.29.26; author jlam; state dead; branches; next 1.2; 1.2 date 99.11.17.23.06.22; author tron; state Exp; branches; next 1.1; 1.1 date 99.02.08.08.48.37; author frueauf; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.02.08.08.48.37; author frueauf; state Exp; branches; next ; desc @@ 1.8 log @(games/gnuchess) reove patches, sorry for separate commit. @ text @$NetBSD: patch-ac,v 1.7 2008/04/03 09:07:49 joerg Exp $ --- src/lexpgn.l.orig 2008-04-03 11:01:56.000000000 +0200 +++ src/lexpgn.l @@@@ -37,6 +37,7 @@@@ #include #include #include +#include #include "common.h" #include "lexpgn.h" @ 1.7 log @Make sure read(2) has the prototype defined before using it. @ text @d1 1 a1 1 $NetBSD$ @ 1.6 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 @d1 1 a1 1 $NetBSD: patch-ac,v 1.5 2000/10/15 01:53:40 jlam Exp $ d3 10 a12 10 --- book.h.orig Fri Oct 15 23:41:03 1999 +++ book.h @@@@ -23,5 +23,5 @@@@ bug-gnu-chess@@gnu.org cracraft@@ai.mit.edu, cracraft@@stanfordalumni.org, cracraft@@earthlink.net */ -#define BOOKSRC "book.pgn" -#define BOOKBIN "book.dat" +#define BOOKSRC LIBDIR "book.pgn" +#define BOOKBIN LIBDIR "book.dat" @ 1.5 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$ @ 1.4 log @Open the opening book with read permissions, not read/write. This fixes an error where GNU Chess would go out of book on the first move when it fails to open the book read/write, and concludes the book isn't there. @ text @d3 10 a12 11 --- book.c.orig Sat Oct 23 06:07:21 1999 +++ book.c @@@@ -85,7 +85,7 @@@@ mcnt = -1; side = board.side; xside = 1^side; - rfp = fopen(BOOKBIN,"r+b"); + rfp = fopen(BOOKBIN,"rb"); /* don't need to open read/write */ if (rfp == NULL) { if (!(flags & XBOARD)) fprintf(ofp," no book (%s).\n",BOOKBIN); @ 1.3 log @Update gnuchess to 5.00. From the GNU chess web page: Version 5.00 is the current release. Version 5.00 shares no code with versions 1.x through 4.x. The major motivation for this release is to simplify chess code making it more pedantically accessible, use modern data structures, make it easy to modify by less skilled programmers, and increase understandability to non-programmer, skilled chess experts. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 1999/11/17 23:06:22 tron Exp $ d3 11 a13 25 --- nondsp.c.orig Mon Sep 28 08:41:22 1998 +++ nondsp.c Thu Dec 10 23:39:26 1998 @@@@ -264,10 +264,11 @@@@ NewGame (); - gets (s); /* skip "setup" command */ + fgets (s, 80, stdin); /* skip "setup" command */ + s[79] = '\0'; for (r = 7; r >= 0; r--) { - gets (s); + fgets (s, 80, stdin); s[79] = '\0'; for (c = 0; c <= 7; c++) { ch = s[c]; @@@@ -617,7 +618,7 @@@@ if (!T[0]) { printz (CP[61]); - gets (T); + fgets (T, 64, stdin); T[63] = '\0'; } strcat (T, "XX"); /* skip whitespace */ @ 1.2 log @Update "gnuchess" package to version 4.0.pl80: - bug in gnuan (difftime was one parameter, should be two.) @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1.1.1 1999/02/08 08:48:37 frueauf Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- ../../gnuchess-4.0.pl79/src/nondsp.c Mon Sep 28 08:41:22 1998 +++ ./src/nondsp.c Thu Dec 10 23:39:26 1998 @ 1.1.1.1 log @Initial import of gnuchess-4.0.79, the "classic" GNU chess. @ text @@