Commit graph

53 commits

Author SHA1 Message Date
asau
45127be31e Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-06 11:54:29 +00:00
zafer
1406208088 remove dead mirror. 2010-04-17 15:48:22 +00:00
joerg
45c4258f4e Don't segfault on failing shmget because the print routine tries to
access the shared memory segment. Bump revision.
2009-08-03 13:18:37 +00:00
dholland
f3344d894c 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++.
2008-08-17 21:00:20 +00:00
joerg
2cfbcdf9d9 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.
2008-05-25 15:55:27 +00:00
jlam
0c6a3253fe Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-04 06:59:03 +00:00
rillig
6e215d31c5 Needs C++. 2006-05-19 09:18:29 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
4d30fe9a95 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.
2005-12-19 16:41:39 +00:00
rillig
5d50e8ca8d Fixed quoting of CFLAGS. 2005-12-18 21:11:11 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
81edaaa606 Create directories before installing files into them. 2005-06-16 06:57:37 +00:00
minskim
957087b614 Set BUILD_TARGET correctly on Linux. This fixes PR pkg/29379. 2005-06-06 03:59:00 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
uebayasi
cd4a470980 Back out previous, irrelevant quoting fix. 2005-03-13 16:47:04 +00:00
uebayasi
71960dee9e Fix quoting. 2005-03-07 09:41:45 +00:00
agc
8cef6c454b Add RMD160 digests. 2005-02-23 23:11:54 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
wiz
6dcad6dd3c Change DIST_SUBDIR to avoid breakage for people who have the old
distfiles (see previous commit).
2004-09-16 23:23:48 +00:00
he
018db5f46f Apparently, the crafty tar file has been repackaged with crafty-18.15/
inserted at the top, and the read.me file has also been modified.
Track that by updating checksums and adjusting Makefile to fit.
2004-09-16 17:15:25 +00:00
jlam
e8132b3fbf Relinquish maintainership of packages to tech-pkg@NetBSD.org. 2004-04-24 22:46:08 +00:00
snj
e5ae159e4c Convert to buildlink3. 2004-04-11 18:10:28 +00:00
agc
35af4fd37b gcc3 fix - we compile one of the object files with g++, so link the
executable with g++ as well.
2004-01-28 16:21:08 +00:00
agc
dc52048e01 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:07:06 +00:00
martti
ee90b572a6 COMMENT should start with a capital letter. 2003-07-21 16:45:54 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
jmmv
0916498c1b Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz. 2003-03-29 12:40:00 +00:00
dmcmahill
0110166234 lower optimization level on sparc. With -O2, crafty segfaults immediately,
with -O1 it compiles and seems to run ok.  This is on NetBSD-1.6/sparc,
gcc-2.95.3.
2002-09-25 12:32:00 +00:00
jlam
709fc4ab28 Update games/crafty to 18.15. Changes from version 18.13 include:
18.14   Minor bug in ResignOrDraw() code caused Crafty to not offer draws
        although it would accept them when appropriate.  Rook vs Minor
        is now evaluated as "neither side can win" an oversight in the
        EvaluateWinner() code.  minor bug in ResignOrDraw() would fail to
        offer draws due to the +0.01/-0.01 draw scores returned by the
        EGTB probe code.

18.15   change in endgame draw recognition to handle the case where one
        side appears to be in a lost ending but is stalemated.  the code
        now evaluates such positions as "DrawScore()" instead.  the code
        to accept/decline draws has been modified.  when a draw offer is
        received, a global variable "draw_offer_pending" is set to 1.
        when the search for a move for crafty terminates, crafty then
        uses this value to decide whether to accept or decline the draw.
        this means that the accept/decline won't happen until _after_ the
        search has a chance to see if something good is happening that
        should cause the draw to be declined, closing a timing hole that
        used to exist that let a few "suspects" get away with draws that
        should not have happened (ie crafty has - scores for a long time,
        the opponent suddenly fails low and sees he is losing and offers
        a draw quickly.  Crafty would accept before doing a search and
        noticing that it was suddenly winning.)  minor evaluation change
        to notice that K+B+right RP vs K+B is not necessarily won if the
        weaker side has a bishop of the right color.
2002-09-11 10:52:09 +00:00
jmc
89338eebd6 Provide a FirstOne and LastOne implemention for archs without hand crafted
assembly substitutes.
2002-04-04 19:28:10 +00:00
jlam
3dffe59de5 Update games/crafty to 18.13. Changes from version 18.12 include:
* Deep Blue extension limit removed and restored to one ply of extension per
  ply of search.
* pruning in q-search fixed so that a capture will be considered if it takes
  the total material on the board down to a bishop or less for the opponent,
  as that can greatly influence the evaluation with the EvaluateWinner() code.
* as the 50 move rule draws near, the hash table scores are marked as invalid
  every 5 moves so that hashing can't hide potential 50-move-rule draws.
* lazy evaluation code modified to be more conservative, since in endgames
  the positional score can be a large change.
* EvaluatePassedPawnRaces() fixed so that if one side has two pawns that are
  far enough apart, it will recognize that even though the king is "in the
  square" of either, it can't always stay in the square of one if it has to
  capture the other.
* pawn hash signature restored to 64 bits after testing proved that 32 was
  producing an unacceptable number of collisions.
* search node counter is now 64 bits as well to avoid overflows.
* in the outside passed pawn code fixed (bad mask).
2002-01-12 05:48:15 +00:00
zuntum
37637e483f Move pkg/ files into package's toplevel directory 2001-11-01 00:47:39 +00:00
jlam
0262d0583b Update crafty to 18.12 and strongly-buildlinkify. Relevant changes from
version 18.10 include:

- the pawn ram code is now disabled when playing a computer, although the
  normal 'blocked pawn' code is always active.
- bug in the code that penalizes a rook with no horizontal mobility was fixed.
  if the first rook scored had horizontal mobility, the second rook appeared
  to have this mobility as well, which was wrong.
- pawn hash statistics were wrong on longer searches due to an int overflow on
  a multiply and divide calculation.  this has been re-ordered to avoid the
  overflow.
- for unknown reasons, epd support was disabled.  it is now enabled as it
  should be.
- bug in EvaluateDraws() fixed to not call KBB vs KN a draw if the correct
  tablebase is not available.
- bishop pair scores now vary depending on how many pawns are left on the
  board.  a pair is not worth a lot if there are 7-8 pawns left as most
  diagonals will be blocked by pawns.
- a new way of handling the search extensions is in place.  with the old
  approach, one ply could not extend more than one full ply.  with the new
  approach, borrowed from Deep Blue, two consecutive plies can not extend more
  than two plies total.  It averages out to be the same, of course, but the
  effect is a bit different.  Now it is possible for a check and recapture to
  be applied at the same ply, where they could not before (since a check was
  already a full one-ply extension).  whether this is better or not is not
  clear yet, but it is worth careful analysis.
2001-10-23 05:53:52 +00:00
veego
656a76981f Fetch it again from the main ftp site and not from the MASTER_SITE_BACKUP. 2001-10-07 09:32:02 +00:00
wiz
9b558dd499 Update to 18.10, as requested in pkg/13795.
Changes since 18.9:
minor bug in book.c would let crafty play lines that were very
rarely played even though there were others that had been played
far more times and were more reliable.  king safety scores ramped
up a bit and made more "responsive".
2001-09-14 22:09:45 +00:00
jlam
eb13e77ecd Try fetch first from ${MASTER_SITE_BACKUP}. Partially fixes problem noted
in pkg/13795 by John Klos <john@sixgirls.org>.
2001-09-14 07:49:42 +00:00
agc
a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00
dmcmahill
741c9f1ec2 make sure this compiles on sparc by using .S instead of .s for the
assembly file so that the preprocessor gets run first.

tried a short game, seems to work even.
2001-06-01 00:38:51 +00:00
wiz
daff086c30 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 02:08:16 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00
jlam
6fa0984de3 Update crafty to 18.9. Changes to version 18.8:
18.9    Book() modified to increase the responsiveness of book learning.
        the new code, plus the default weights for the book parameters
        now make Crafty learn very aggressively and repeat good opening
        lines and avoid bad ones.
2001-03-29 15:26:31 +00:00
jlam
41af5daada Update crafty to 18.8. Changes from version 18.7:
18.8    recapture extension turned back on for a while.  changes to the
        evaluation code, particularly EvaluatePawns() to make it more
        efficient and accurate.  IE it was possible for an isolated pawn
        to be penalized for being isolated, weak, and blocked, which made
        little sense.
2001-03-28 18:17:57 +00:00
jlam
225ebb72b0 Update crafty to 18.7. Changes from version 18.6:
18.7    BOOK_CLUSTER_SIZE increased to 2000 to handle making really large
        books.  a book made without this change could produce clusters
        that would cause memory overwrites.
2001-03-21 03:23:04 +00:00
jlam
d9118af118 Update crafty to 18.6. Changes from version 18.5:
18.6    "new" no longer produces a new log.nnn/game.nnn file if no moves
        have actually been played.  minor change to rook scoring gives a
        penalty when a rook has no horizontal (rank) mobility, to avoid
        moves like Ra2 protecting the pawn on b2, etc. glitch in the
        code that initializes is_outside[][] and is_outside_c[][] could
        cause missed outside pawn cases to happen.  this has been there
        a long time.
2001-03-16 15:08:51 +00:00
jlam
2395219c63 Update crafty to 18.5. Changes from version 18.4:
18.5    minor change to RootMove() to use Quiesce() rather than the more
        complicated way it was ordering with Evaluate()/EnPrise().  this
        is no faster, but it is simpler and eliminated the need for the
        EnPrise() function totally, making the code a bit smaller.  bug
        in EvaluateDraws() would let it think that the bishop+wrong rook
        pawn endings were winnable if both kings were very close to the
        queening square, even with the wrong bishop.
2001-03-12 03:43:30 +00:00
jlam
541a6edf89 Update crafty to 18.4. Changes from version 18.3:
18.4    recapture extension was left in SearchSMP() erroneously.  this
        has now been protected by a #ifdef just like it was in Search().
        bug in RepetitionCheck() was causing problems in SMP versions.
        The entire repetition list code was modified to clean this up.
        the problem was most noticable on things like fine #70.  bug in
        LearnImportBook() confused the learn value sign, due to the other
        changes to make +=white all the time.  opposite bishop scoring
        has been beefed up a bit to avoid these drawish endings.
2001-03-09 19:55:58 +00:00
wiz
9f28a7693e Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 15:10:41 +00:00
jlam
e34fb98216 Update crafty to 18.3. This is a bugfix release over version 18.2. Changes
include:

18.3    minor bug in "avoid_null_move" test used R=2 for the test rather
        than testing R=2/3 as the real null-move search uses.  the kibitz
        for "Hello from Crafty Vx.xx" has been moved so that it works
        with the new xboard/winboard 4.2.2 versions.  book learning was
        badly broken in the previous version and has been fixed/tested.
2001-02-13 03:04:00 +00:00
jlam
475c3af361 Update crafty to 18.2. Changes from version 18.1 include:
The main feature is that it fixes the winboard hang problem when crafty plays
black on a chess server.  It also has much more aggressive book learning (code
has been significantly changed).  A minor bug was fixed in analyze mode that
would break the "h" command when black was on move, and show one less move for
either side that had actually been played in the game.  Another fixed bug
reversed the sign of a score whispered in analysis mode.

Pkgsrc changes include fixing the build target on Solaris (untested).
2001-02-08 17:23:46 +00:00
jlam
21b8faaeb9 Allow generated code to execute on 386-class machines. People wanting to
optimize Crafty for i[456]86 can set CFLAGS appropriately in /etc/mk.conf.
2001-01-15 07:00:03 +00:00