1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

add zippy option for ICS server computer player mode

PR:             192669
Submitted by:   kalten@gmx.at
This commit is contained in:
Johan van Selst 2014-08-26 10:35:00 +00:00
parent e90877fa19
commit 0faffdb9b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366198
3 changed files with 45 additions and 21 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= xboard
PORTVERSION= 4.7.3
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= GNU
@ -11,21 +12,23 @@ COMMENT= X frontend for Crafty, GNUChess, Chess Servers, or e-mail chess
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo
OPTIONS_DEFINE= NLS CRAFTY FAIRYMAX GNUCHESS KNIGHTCAP PHALANX DOCS
OPTIONS_DEFINE= NLS ZIPPY CRAFTY FAIRYMAX GNUCHESS KNIGHTCAP PHALANX DOCS
OPTIONS_DEFAULT=
OPTIONS_SUB= yes
ZIPPY_DESC= Add Zippy capability (computer player on ICS)
CRAFTY_DESC= Install crafty engine
FAIRYMAX_DESC= Install fairymax engine
GNUCHESS_DESC= Install GnuChess engine
KNIGHTCAP_DESC= Install KnightCap engine
PHALANX_DESC= Install phalanx engine
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
ZIPPY_CONFIGURE_ENABLE= zippy
CRAFTY_RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty
FAIRYMAX_RUN_DEPENDS+= fairymax:${PORTSDIR}/games/fairymax
GNUCHESS_RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
KNIGHTCAP_RUN_DEPENDS+= KnightCap:${PORTSDIR}/games/KnightCap
PHALANX_RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
USES= desktop-file-utils makeinfo perl5 pkgconfig shared-mime-info
USE_XORG= xt xpm xaw
@ -43,19 +46,27 @@ PORTDOCS= AUTHORS ChangeLog NEWS README SHORTLOG TODO
BROKEN_sparc64= Does not install on sparc64
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MZIPPY}
PORTDOCS+= zippy.README
.endif
post-patch:
@${REINPLACE_CMD} -e 's/fairymax/gnuchessx/' ${WRKSRC}/xboard.conf.in
@${REINPLACE_CMD} -e '/^#include..malloc.h/d' \
${WRKSRC}/engineoutput.c ${WRKSRC}/uci.c
@${REINPLACE_CMD} -e 's:INSTALL.*sysconfdir):&/$$$$files.dist:' \
${WRKSRC}/Makefile.in
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MZIPPY}
@cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/OPTION_ZIPPY__patch-xboard.texi
@${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/xboard.texi
.endif
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/cmail ${STAGEDIR}${PREFIX}/bin/
@${CP} -pn ${STAGEDIR}${PREFIX}/etc/xboard.conf.dist \
${STAGEDIR}${PREFIX}/etc/xboard.conf
${INSTALL_SCRIPT} ${WRKSRC}/cmail ${STAGEDIR}${PREFIX}/bin/
${MV} ${STAGEDIR}${PREFIX}/etc/xboard.conf.dist \
${STAGEDIR}${PREFIX}/etc/xboard.conf.sample
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

View File

@ -0,0 +1,25 @@
--- xboard.texi.orig 2014-01-06 18:15:22.000000000 +0100
+++ xboard.texi 2014-08-14 23:43:17.000000000 +0200
@@ -64,6 +64,7 @@
* Chess Servers:: Using XBoard with an Internet Chess Server (ICS).
* Firewalls:: Connecting to a chess server through a firewall.
* Environment:: Environment variables.
+* Zippy:: XBoard as computer player on an Internet Chess Server (ICS).
* Limitations:: Known limitations and/or bugs.
* Problems:: How and where to report any problems you run into.
* Contributors:: People who have helped developing XBoard.
@@ -3805,6 +3806,14 @@
but see the SOCKS Web site at http://www.socks.permeo.com/.
If you are missing SOCKS, try http://www.funbureau.com/.
+@node Zippy
+@chapter Zippy
+@cindex Zippy
+@cindex ICS
+@cindex ICS computer player
+Be a computer player on an Internet Chess Server (ICS).
+See file @code{%%DOCSDIR%%/zippy.README} for description.
+
@node Environment
@chapter Environment variables
@cindex Environment variables

View File

@ -143,8 +143,6 @@ share/mime/packages/xboard.xml
%%NLS%%share/locale/zh_CN/LC_MESSAGES/xboard.mo
%%NLS%%share/locale/zh_HK/LC_MESSAGES/xboard.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/xboard.mo
%%NLS%%@dirrmtry share/locale/zh_HK/LC_MESSAGES
%%NLS%%@dirrmtry share/locale/zh_HK
@dirrm %%DATADIR%%/pixmaps/textures
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%/sounds
@ -155,14 +153,4 @@ share/mime/packages/xboard.xml
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%
@dirrmtry share/games
@dirrmtry share/icons/hicolor/48x48/apps
@dirrmtry share/icons/hicolor/48x48
@dirrmtry share/icons/hicolor/scalable/apps
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
@dirrmtry share/mime/packages
@dirrmtry share/mime
@unexec if cmp -s %D/etc/xboard.conf.dist %D/etc/xboard.conf; then rm -f %D/etc/xboard.conf; fi
etc/xboard.conf.dist
@exec cp -pn %D/%F %B/xboard.conf
@sample etc/xboard.conf.sample