1 # Created by: Kalten <kalten@gmx.at>
5 PORTVERSION= 5.0b.20160316.1
8 MASTER_SITES= http://freeheimdall.spdns.org/files/
9 # http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git;a=snapshot;h=${COMMIT_HASH};sf=tgz
10 # http://hgm.nubati.net/cgi-bin/gitweb.cgi/fairymax.git/snapshot/${COMMIT_HASH}
11 # but sha256 changes, as creation date of *.tar inside *.tar.gz changes.
12 DISTNAME= ${PORTNAME}-${COMMIT_HASH}
14 MAINTAINER= kalten@gmx.at
15 COMMENT= Chess engine for shatranj, courier chess, and others
21 PORTDOCS= changelog copyright CVfairy.html README
26 bindir=${PREFIX}/bin \
27 mandir=${PREFIX}/man \
29 plugindir=${PREFIX}/share/games/plugins \
31 VERSION=${PORTVERSION}
34 @${REINPLACE_CMD} -E 's|(#define VERSION ")[^"]+(".*)|\1${PORTVERSION}\2|' \
36 @${REINPLACE_CMD} -E 's|^(prefix\|bindir\|mandir\|datadir\|plugindir\|fairydir) =|\1 ?=|' \
38 @${REINPLACE_CMD} -E 's|^ cp (.\{srcdir\}/fairymax .\{srcdir\}/shamax .\{srcdir\}/maxqi .\(DESTDIR\).\(bindir\))| ${INSTALL_PROGRAM} \1|' \
40 @${REINPLACE_CMD} -E 's|^ cp (.\{srcdir\}/data/)| ${INSTALL_DATA} \1|' \
42 @${REINPLACE_CMD} -E 's|^ cp (.\{srcdir\}/fairymax.6.gz)| ${INSTALL_MAN} \1|' \
46 @${MKDIR} ${STAGEDIR}${DOCSDIR}
47 ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
49 .include <bsd.port.mk>