head 1.7; access; symbols pkgsrc-2022Q3:1.6.0.116 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.114 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.112 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.6.0.110 pkgsrc-2021Q4-base:1.6 pkgsrc-2021Q3:1.6.0.108 pkgsrc-2021Q3-base:1.6 pkgsrc-2021Q2:1.6.0.106 pkgsrc-2021Q2-base:1.6 pkgsrc-2021Q1:1.6.0.104 pkgsrc-2021Q1-base:1.6 pkgsrc-2020Q4:1.6.0.102 pkgsrc-2020Q4-base:1.6 pkgsrc-2020Q3:1.6.0.100 pkgsrc-2020Q3-base:1.6 pkgsrc-2020Q2:1.6.0.96 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.76 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.98 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.94 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.92 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.90 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.88 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.86 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.84 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.82 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.80 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.78 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.74 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.72 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.70 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.68 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.66 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.64 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.62 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.60 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.58 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.56 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.54 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.52 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.50 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.48 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.46 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.44 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.42 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.40 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.38 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.36 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.34 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.32 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.30 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.28 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.26 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.24 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.22 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.20 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.18 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.16 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.14 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.12 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.10 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.8 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.6 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.4 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.2 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.5.0.2 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.4.0.20 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.18 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.16 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.14 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.12 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.10 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.8 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.6 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.4 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.2 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.3.0.14 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.12 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.10 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.8 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.6 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.4 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.2 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2022.12.25.09.00.36; author wiz; state dead; branches; next 1.6; commitid YBK7GI8H1FFwYU6E; 1.6 date 2008.08.17.21.00.20; author dholland; state Exp; branches; next 1.5; 1.5 date 2008.05.25.15.56.02; author joerg; state dead; branches; next 1.4; 1.4 date 2005.12.19.16.41.39; author joerg; state Exp; branches; next 1.3; 1.3 date 2004.01.28.16.21.08; author agc; state Exp; branches; next 1.2; 1.2 date 2000.11.10.17.34.11; author jlam; state dead; branches; next 1.1; 1.1 date 2000.10.15.02.06.27; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.10.15.02.06.27; author jlam; state Exp; branches; next ; desc @@ 1.7 log @crafty*: remove sources from 2008; homepage says 'Crafty has been retired for some time' It still built, but dumped core when building its books. @ text @$NetBSD: patch-ac,v 1.6 2008/08/17 21:00:20 dholland Exp $ --- option.c~ 2008-04-15 18:41:49.000000000 -0400 +++ option.c 2008-08-17 16:23:39.000000000 -0400 @@@@ -3025,7 +3025,7 @@@@ int Option(TREE * RESTRICT tree) output_file = stdout; secs = time(0); - timestruct = localtime((time_t *) & secs); + timestruct = localtime(& secs); if (nargs > 1) { if (!(output_file = fopen(args[1], "w"))) { printf("unable to open %s for write.\n", args[1]); @@@@ -3548,10 +3548,10 @@@@ int Option(TREE * RESTRICT tree) */ else if (OptionMatch("tags", *args)) { struct tm *timestruct; - long secs; + time_t secs; secs = time(0); - timestruct = localtime((time_t *) & secs); + timestruct = localtime(& secs); printf("[Event \"%s\"]\n", pgn_event); printf("[Site \"%s\"]\n", pgn_site); printf("[Date \"%4d.%02d.%02d\"]\n", timestruct->tm_year + 1900, @ 1.6 log @Fix some 64-bit issues and a y2038 bug I noticed in passing. Also, round size of shmget() requests to be page-aligned; at least on amd64 -current this seems to be required to run at all. PKGREVISION++. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update to crafty 22.1. Always use the NetBSD rules, we can fixup issues if they happen. Don't install the ECO classification as opening book, it is essentially useful. No detailed ChangeLog, but this fixes some crashes with invalid games, brings SMP support and increases to the strength of crafty. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2005/12/19 16:41:39 joerg Exp $ d3 3 a5 3 --- Makefile 2004/01/28 14:58:48 1.1 +++ Makefile 2004/01/28 14:59:16 @@@@ -150,7 +150,7 @@@@ dos: d7 13 a19 15 freebsd: $(MAKE) target=FreeBSD \ - CC=gcc CXX='$$(CC)' \ + CC='$(CC)' CXX='$(CXX)' \ CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \ CXFLAGS='$(CFLAGS)' \ LDFLAGS='$(LDFLAGS)' \ @@@@ -422,7 +422,7 @@@@ crafty-make: crafty crafty: $(objects) - $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS) + $(CXX) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS) @@rm -f X86-elf.S @@rm -f X86-aout.S d21 6 @ 1.4 log @Use FreeBSD target for DragonFly as well. Honor CC and CXX for FreeBSD target, gcc is not enough to link on DragonFly. XXX Is the override necessary at all? XXX Other platforms should do this as well. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2004/01/28 16:21:08 agc Exp $ @ 1.3 log @gcc3 fix - we compile one of the object files with g++, so link the executable with g++ as well. @ text @d1 1 a1 1 $NetBSD$ d5 10 a14 1 @@@@ -422,7 +422,7 @@@@ @ 1.2 log @Update crafty to 17.14. The author kindly accepted all patches back into the main source tree, so no more pkgsrc patches. Changes from version 17.13: another endgame evaluation problem fixed. the outside passed pawn code worked well, up until the point the pawn had to be given up to decoy the other side's king away from the remainder of the pawns. Crafty now understands the king being closer to the pawns than the enemy king, and therefore transitions from outside passer to won king-pawn ending much cleaner. new command "selective" as requested by S. Lim, which allows the user to set the min/max null move R values (default=2/3). they can be set to 0 which disables null-move totally, or they can be set larger than the default for testing. minor changes to init.c sent by Eugene Nalimov to handle 64 bit pointer declarations for win64 executable compilation. NetBSD changes included along with a new Makefile that requires no editing to use for any known configuration ("make help" will explain how to use it). this was submitted by Johnny Lam. serious changes to the outside passed pawn code. the evaluator now understands that outside passers on _both_ sides of the board is basically winning. same goes for candidate passers. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2000/10/15 02:06:27 jlam Exp $ d3 11 a13 20 --- egtb.cpp.orig Fri Jun 9 23:29:59 2000 +++ egtb.cpp @@@@ -1234,7 +1234,7 @@@@ for (pi3 = x_pieceNone; pi3 <= pi2; pi3 = (piece) (pi3 + 1)) { if (0 != rgcTriplePawnPresent[pi1][pi2][pi3]) - printf ("%c%c%c - %d enumerated positions\n", + printf ("%c%c%c - %ld enumerated positions\n", "pPNBRQ"[pi1], "pPNBRQ"[pi2], "pPNBRQ"[pi3], rgcTriplePawnPresent[pi1][pi2][pi3]); } @@@@ -1243,7 +1243,7 @@@@ for (pi3 = x_pieceNone; pi3 <= pi2; pi3 = (piece) (pi3 + 1)) { if (0 != rgcTriplePawnless[pi1][pi2][pi3]) - printf ("pawnless %c%c%c - %d enumerated positions\n", + printf ("pawnless %c%c%c - %ld enumerated positions\n", "pPNBRQ"[pi1], "pPNBRQ"[pi2], "pPNBRQ"[pi3], rgcTriplePawnless[pi1][pi2][pi3]); } @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @crafty: chess engine -- plays a MUCH better game of chess than GNU Chess. @ text @@