head 1.9; access; symbols pkgsrc-2016Q1:1.8.0.52 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.50 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.48 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.46 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.44 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.42 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.40 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.38 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.36 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.34 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.32 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.30 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.28 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.26 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.24 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.22 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.20 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.18 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.16 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.14 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.12 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.10 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.8 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.6 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.4 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.2 pkgsrc-2009Q4-base:1.8 pkgsrc-2008Q4:1.7.0.42 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.40 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.38 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.36 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.7.0.34 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.32 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.30 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.28 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.26 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.24 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.22 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.20 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.18 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.16 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.14 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.12 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.10 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.7.0.8 pkgsrc-2004Q4-base:1.7 pkgsrc-2004Q3:1.7.0.6 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.4 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.2 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.6.0.10 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.6.0.6 netbsd-1-6-1-base:1.6 netbsd-1-6:1.6.0.8 netbsd-1-6-RELEASE-base:1.6 pkgviews:1.6.0.4 pkgviews-base:1.6 buildlink2:1.6.0.2 buildlink2-base:1.6 netbsd-1-5-PATCH003:1.6 netbsd-1-5-PATCH001:1.5 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.9 date 2016.05.03.02.15.47; author mef; state dead; branches; next 1.8; commitid Iltow9njsf6KKY4z; 1.8 date 2009.10.31.14.24.14; author tnn; state Exp; branches; next 1.7; 1.7 date 2004.03.08.03.04.36; author minskim; state dead; branches; next 1.6; 1.6 date 2001.11.11.07.54.56; author jlam; state Exp; branches; next 1.5; 1.5 date 2000.12.27.00.24.43; author dmcmahill; state Exp; branches; next 1.4; 1.4 date 2000.10.15.01.53.40; 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.9 log @(games/gnuchess) reove patches, sorry for separate commit. @ text @$NetBSD: patch-ad,v 1.8 2009/10/31 14:24:14 tnn Exp $ --- src/input.c.orig 2003-07-01 19:06:43.000000000 +0200 +++ src/input.c @@@@ -127,7 +127,7 @@@@ void *input_func(void *arg __attribute__ (RealGameCnt+1)/2 + 1 ); } pthread_mutex_lock(&input_mutex); - getline(prompt); + get_line(prompt); input_status = INPUT_AVAILABLE; pthread_cond_signal(&input_cond); pthread_mutex_unlock(&input_mutex); @@@@ -173,13 +173,13 @@@@ void InitInput(void) { #ifdef HAVE_LIBREADLINE if (isatty(STDIN_FILENO)) { - getline = getline_readline; + get_line = getline_readline; using_history(); } else { - getline = getline_standard; + get_line = getline_standard; } #else - getline = getline_standard; + get_line = getline_standard; #endif /* Start input thread */ pthread_create(&input_thread, NULL, input_func, NULL); @ 1.8 log @getline -> get_line @ text @d1 1 a1 1 $NetBSD$ @ 1.7 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-ad,v 1.6 2001/11/11 07:54:56 jlam Exp $ d3 28 a30 19 --- cmd.c.orig Sun Nov 11 02:44:56 2001 +++ cmd.c @@@@ -26,6 +26,7 @@@@ #include #include +#include #include #include #include "version.h" @@@@ -160,7 +161,7 @@@@ printf("inputstr = %s\n",inputstr); if (strncmp (inputstr, "compile", 7) == 0) { printf("calling genbook.\n"); - genbook (); + genbook (booksrc, bookbin); } else if (strcmp (inputstr, "on") == 0) { bookmode = BOOKBEST; printf("book now on.\n"); @ 1.6 log @Apply a patch from Tim Mann's chess site that fixes the following problem: The "edit" function is not implemented in GNU Chess 5.00. This means that XBoard's "Edit Position" feature will not work with it. Loading a position from a file, loading a PGN game that starts from a nonstandard position, or playing an ICS wild game in Zippy mode, etc., will also not work. Also fix the gnuchessx script to accept options and to pass them through to the gnuchess binary. Bump package version number to 5.00nb2. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @make this work on alpha. (had bogus endianness test) @ text @d3 4 a6 3 --- cmd.c.orig Sat Oct 23 06:07:32 1999 +++ cmd.c Tue Dec 26 17:16:44 2000 @@@@ -27,4 +27,5 @@@@ d12 3 a14 1 @@@@ -155,5 +156,5 @@@@ d21 1 @ 1.4 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 @d4 8 a11 3 +++ cmd.c @@@@ -154,7 +154,7 @@@@ printf("inputstr = %s\n",inputstr); a17 1 printf("book now on.\n"); @ 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-ad,v 1.2 1999/11/17 23:06:22 tron Exp $ d3 11 a13 11 --- search.c.orig Mon Sep 28 08:41:23 1998 +++ search.c Thu Dec 10 23:39:26 1998 @@@@ -174,7 +174,7 @@@@ while (true) { printf ("debug?"); - gets (b); + fgets (b, 32, stdin); b[31] = '\0'; if (b[0] == 'p') traceply = atoi (&b[1]); else if (b[0] == '\0') @ 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-ad,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/search.c Mon Sep 28 08:41:23 1998 +++ ./src/search.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 @@