2012-10-06 13:54:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2012/10/06 11:54:41 asau Exp $
|
2000-10-15 03:57:43 +02:00
|
|
|
|
|
|
|
DISTNAME= medium
|
|
|
|
PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2000-10-15 03:57:43 +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 GNU Chess (medium)
|
2000-10-15 03:57:43 +02:00
|
|
|
|
2004-03-08 07:05:31 +01:00
|
|
|
DEPENDS+= gnuchess>=5.07:../../games/gnuchess
|
2000-10-15 03:57:43 +02:00
|
|
|
|
2004-03-08 07:05:31 +01:00
|
|
|
CONFLICTS= ${CHESS_ENGINE}-book-*
|
2000-10-22 00:36:33 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-15 03:57:43 +02:00
|
|
|
CHESS_ENGINE= gnuchess
|
|
|
|
DIST_SUBDIR= chessbooks
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_CONFIGURE= yes
|
2000-10-15 03:57:43 +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-15 03:57:43 +02:00
|
|
|
|
|
|
|
BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
|
|
|
|
PGN_FILE= book.txt
|
|
|
|
BOOK_FILE= book.dat
|
|
|
|
|
|
|
|
do-build:
|
2004-03-08 07:05:31 +01:00
|
|
|
@${ECHO} "book add ${PGN_FILE}" > ${WRKSRC}/makebook.gnuchess
|
|
|
|
@${ECHO} "quit" >> ${WRKSRC}/makebook.gnuchess
|
2005-09-28 16:31:06 +02:00
|
|
|
@cd ${WRKSRC} && ${CAT} makebook.gnuchess | ${PREFIX}/bin/gnuchess
|
2000-10-15 03:57:43 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-04 07:59:03 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${DESTDIR}${BOOKDIR}
|
2000-10-15 03:57:43 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|