9c3064b08d
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.
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2000/11/10 17:34:10 jlam Exp $
|
|
|
|
DISTNAME= crafty-17.14
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/ \
|
|
ftp://ftp.cis.uab.edu/pub/hyatt/common/ \
|
|
ftp://ftp.cis.uab.edu/pub/hyatt/v17/
|
|
DISTFILES= ${CRAFTY_DISTFILES}
|
|
DISTFILES+= ${CRAFTY_STARTPGN} ${CRAFTY_DOCFILES}
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
NO_WRKSUBDIR= # defined
|
|
CRAFTY_DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
CRAFTY_STARTPGN= start.pgn
|
|
CRAFTY_DOCFILES= read.me crafty.faq
|
|
EXTRACT_ONLY= ${CRAFTY_DISTFILES}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
ALL_TARGET= netbsd-i386-elf
|
|
.else
|
|
ALL_TARGET= netbsd-i386
|
|
.endif
|
|
.elif ${MACHINE_ARCH} == "sparc"
|
|
ALL_TARGET= netbsd-sparc
|
|
.else
|
|
ALL_TARGET= netbsd
|
|
.endif
|
|
.endif
|
|
|
|
CRAFTY_OPTS= -DBOOKDIR=\\\"${BOOKDIR}\\\"
|
|
CRAFTY_OPTS+= -DTBDIR=\\\"${TBDIR}\\\"
|
|
MAKE_ENV+= opt="${CRAFTY_OPTS}"
|
|
|
|
BOOKDIR= ${PREFIX}/lib/crafty
|
|
TBDIR= ${PREFIX}/share/egtb
|
|
DOCDIR= ${PREFIX}/share/doc/crafty
|
|
|
|
CRAFTYRC= ${WRKDIR}/.craftyrc
|
|
|
|
post-extract:
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/${CRAFTY_STARTPGN} ${WRKDIR}
|
|
|
|
post-build:
|
|
${RM} -f ${CRAFTYRC}
|
|
${ECHO} "books create ${CRAFTY_STARTPGN} 60" > ${CRAFTYRC}
|
|
${ECHO} "quit" >> ${CRAFTYRC}
|
|
cd ${WRKSRC} && ${WRKSRC}/crafty bookpath=.
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/crafty ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${BOOKDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/books.bin ${BOOKDIR}
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
for file in ${DISTFILES}; do \
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${DOCDIR}; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|