summaryrefslogtreecommitdiff
path: root/games/exchess/Makefile
blob: aea0467985f2adace408092f031a42abf9e00a49 (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
35
36
37
38
39
# $NetBSD: Makefile,v 1.14 2010/01/29 20:29:26 joerg Exp $

DISTNAME=		EXCH314S
# 5.01beta available
PKGNAME=		exchess-3.14
PKGREVISION=		1
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_LOCAL}
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://personal.denison.edu/~homand/EXchess.htm
COMMENT=		Experimental chess engine

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=		c++
NO_CONFIGURE=		yes

WRKSRC=			${WRKDIR}
LIBDIR=			${PREFIX}/lib/exchess
DOCDIR=			${PREFIX}/share/doc/exchess

post-extract:
	cd ${WRKSRC} && ${MV} search.par search.par.in
	${CP} ${FILESDIR}/Makefile ${WRKSRC}

post-build:
	${SED}	-e "s,@PREFIX@,${PREFIX},g" \
		< ${WRKSRC}/search.par.in > ${WRKSRC}/search.par

INSTALLATION_DIRS+=	bin lib/exchess ${DOCDIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/exchess ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/search.par ${DESTDIR}${PREFIX}/lib/exchess
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DESTDIR}${DOCDIR}

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