summaryrefslogtreecommitdiff
path: root/games/gnuchess-book-chess/Makefile
blob: f2f438b94fa2b30685677e3b73d246977711b5b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $NetBSD: Makefile,v 1.2 2000/10/21 22:38:07 wiz Exp $
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
#

DISTNAME=		chess-5.00
PKGNAME=		${CHESS_ENGINE}-book-${DISTNAME}
WRKSRC=			${WRKDIR}/${DISTNAME}/book
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_GNU:=chess/}

MAINTAINER=		jlam@netbsd.org

DEPENDS+=		gnuchess>=5.00nb1:../../games/gnuchess

CONFLICTS+=		gnuchess-book-*

CHESS_ENGINE=		gnuchess
NO_CONFIGURE=		# defined

PLIST_SUBST+=		CHESS_ENGINE=${CHESS_ENGINE}
PLIST_SUBST+=		BOOK_FILE=${BOOK_FILE}

BOOKDIR=		${PREFIX}/lib/${CHESS_ENGINE}
PGN_FILE=		book.pgn
BOOK_FILE=		book.dat

do-build:
	cd ${WRKSRC} && gnuchess compile ${PGN_FILE} ${BOOK_FILE}

do-install:
	${INSTALL_DATA_DIR} ${BOOKDIR}
	${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}

.include "../../mk/bsd.pkg.mk"