2001-09-28 01:17:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2001/09/27 23:18:05 jlam Exp $
|
2000-10-15 04:08:52 +02:00
|
|
|
|
|
|
|
DISTNAME= small
|
|
|
|
PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/${DISTNAME}/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= chess opening book for Crafty (small)
|
2000-10-15 04:08:52 +02:00
|
|
|
|
|
|
|
DEPENDS+= crafty>=17.0:../../games/crafty
|
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= ${CHESS_ENGINE}-book-[0-9]*
|
2000-10-22 00:36:33 +02:00
|
|
|
|
2000-10-15 04:08:52 +02:00
|
|
|
CHESS_ENGINE= crafty
|
|
|
|
DIST_SUBDIR= chessbooks
|
2001-09-09 22:36:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-15 04:08:52 +02:00
|
|
|
NO_CONFIGURE= # defined
|
|
|
|
|
|
|
|
PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE}
|
|
|
|
PLIST_SUBST+= BOOK_FILE=${BOOK_FILE}
|
|
|
|
|
|
|
|
BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
|
|
|
|
PGN_FILE= ${DISTNAME}.txt
|
|
|
|
BOOK_FILE= book.bin
|
|
|
|
|
|
|
|
CRAFTYRC= ${WRKSRC}/.craftyrc
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${RM} -f ${CRAFTYRC}
|
|
|
|
${ECHO} "book create ${PGN_FILE} 60 3" > ${CRAFTYRC}
|
|
|
|
${ECHO} "quit" >> ${CRAFTYRC}
|
|
|
|
cd ${WRKSRC} && crafty bookpath=.
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${BOOKDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|