2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2006/03/04 21:29:41 jlam Exp $
|
2000-10-25 10:41:25 +02:00
|
|
|
|
|
|
|
DISTNAME= small
|
|
|
|
PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2000-10-25 10:41:25 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/${DISTNAME}/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Chess opening book for EXchess (small)
|
2000-10-25 10:41:25 +02:00
|
|
|
|
|
|
|
DEPENDS+= exchess-[0-9]*:../../games/exchess
|
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= ${CHESS_ENGINE}-book-[0-9]*
|
2000-10-25 10:41:25 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-25 10:41:25 +02:00
|
|
|
CHESS_ENGINE= exchess
|
|
|
|
DIST_SUBDIR= chessbooks
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_CONFIGURE= yes
|
2000-10-25 10:41:25 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE:Q}
|
|
|
|
PLIST_SUBST+= BOOK_FILE=${BOOK_FILE:Q}
|
2000-10-25 10:41:25 +02:00
|
|
|
|
|
|
|
BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
|
|
|
|
PGN_FILE= ${DISTNAME}.txt
|
|
|
|
BOOK_FILE= open_bk.dat
|
|
|
|
|
|
|
|
CMDFILE= ${WRKSRC}/exchess.input
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${RM} -f ${CMDFILE}
|
|
|
|
${ECHO} "build" > ${CMDFILE}
|
|
|
|
${ECHO} "${PGN_FILE}" >> ${CMDFILE}
|
|
|
|
${ECHO} "60" >> ${CMDFILE}
|
|
|
|
${ECHO} "3" >> ${CMDFILE}
|
|
|
|
${ECHO} "${BOOK_FILE}" >> ${CMDFILE}
|
|
|
|
${ECHO} "quit" >> ${CMDFILE}
|
|
|
|
cd ${WRKSRC} && exchess < ${CMDFILE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${BOOKDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|