aboutsummaryrefslogtreecommitdiffstats
path: root/games/fairymax/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/fairymax/Makefile')
-rw-r--r--games/fairymax/Makefile31
1 files changed, 14 insertions, 17 deletions
diff --git a/games/fairymax/Makefile b/games/fairymax/Makefile
index 39a0a896cbe0..7d5ac976a098 100644
--- a/games/fairymax/Makefile
+++ b/games/fairymax/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= fairymax
-PORTVERSION= 4.8T
+PORTVERSION= 4.8V.9
CATEGORIES= games
MASTER_SITES= http://freeheimdall.spdns.org/files/
# http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git;a=snapshot;h=${COMMIT_HASH};sf=tgz
@@ -13,26 +13,16 @@ DISTNAME= ${PORTNAME}-${COMMIT_HASH}
MAINTAINER= kalten@gmx.at
COMMENT= Chess engine for shatranj, courier chess, and others
-CONFLICTS= fairymax-4.8[QS].*
+CONFLICTS= fairymax-4.8[QST].*
-COMMIT_HASH= 7d6f28c
+COMMIT_HASH= 12bd72f
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
PORTDOCS= changelog copyright CVfairy.html README
-DIST_SUBDIR= ${PORTNAME}
-
-PLIST_FILES= bin/${PORTNAME} \
- bin/shamax \
- bin/maxqi \
- man/man6/fairymax.6.gz \
- man/man6/shamax.6.gz \
- man/man6/maxqi.6.gz \
- %%DATADIR%%/fmax.ini \
- %%DATADIR%%/qmax.ini
-PLIST_DIRS= %%DATADIR%%
+PLUGINSDIR= ${PREFIX}/share/games/plugins
USES= gmake perl5
USE_PERL5= build
@@ -53,11 +43,18 @@ do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/fmax.ini ${STAGEDIR}${DATADIR}/fmax.ini
${INSTALL_DATA} ${WRKSRC}/data/qmax.ini ${STAGEDIR}${DATADIR}/qmax.ini
- ${INSTALL_MAN} ${WRKSRC}/fmax.man ${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}.6
+ ${INSTALL_MAN} ${WRKSRC}/fairymax.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6/
${LN} -s ${MAN6PREFIX}/man/man6/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/shamax.6
${LN} -s ${MAN6PREFIX}/man/man6/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/maxqi.6
-
-post-install:
+ @${MKDIR} ${STAGEDIR}${PLUGINSDIR}
+ @${MKDIR} ${STAGEDIR}${PLUGINSDIR}/logos
+ @${MKDIR} ${STAGEDIR}${PLUGINSDIR}/xboard
+ ${INSTALL_DATA} ${WRKSRC}/data/logo.png ${STAGEDIR}${PLUGINSDIR}/logos/fairymax.png
+ ${LN} -s ${PLUGINSDIR}/logos/fairymax.png ${STAGEDIR}${PLUGINSDIR}/logos/shamax.png
+ ${LN} -s ${PLUGINSDIR}/logos/fairymax.png ${STAGEDIR}${PLUGINSDIR}/logos/maxqi.png
+ ${INSTALL_DATA} ${WRKSRC}/data/*.eng ${STAGEDIR}${PLUGINSDIR}/xboard/
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}