2008-03-04 07:59:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.14 2008/03/04 06:59:04 jlam Exp $
|
2000-10-25 10:40:38 +02:00
|
|
|
|
|
|
|
DISTNAME= medium
|
|
|
|
PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2000-10-25 10:40:38 +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 (medium)
|
2000-10-25 10:40:38 +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:40:38 +02:00
|
|
|
|
2008-03-04 07:59:03 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-25 10:40:38 +02:00
|
|
|
CHESS_ENGINE= exchess
|
|
|
|
DIST_SUBDIR= chessbooks
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_CONFIGURE= yes
|
2000-10-25 10:40:38 +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:40:38 +02:00
|
|
|
|
|
|
|
BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
|
|
|
|
PGN_FILE= book.txt
|
|
|
|
BOOK_FILE= open_bk.dat
|
|
|
|
|
|
|
|
CMDFILE= ${WRKSRC}/exchess.input
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " ** Get yourself a shower and a big mug of coffee,"
|
|
|
|
@${ECHO} " ** this will take _very_ long!"
|
|
|
|
@${ECHO} ""
|
|
|
|
${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:
|
2008-03-04 07:59:03 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${DESTDIR}${BOOKDIR}
|
2000-10-25 10:40:38 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|