diff options
author | johans <johans@FreeBSD.org> | 2014-08-26 10:35:00 +0000 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2014-08-26 10:35:00 +0000 |
commit | cf0bce6b440560b3f776d5623e3bf0a9204b0679 (patch) | |
tree | 5508faaea1e8daf3bd3512bdbb82cd10ad1de6fc | |
parent | eb2d3cc81a65eff1ec14476b4a20be97c1187777 (diff) | |
download | FreeBSD-ports-cf0bce6b440560b3f776d5623e3bf0a9204b0679.zip FreeBSD-ports-cf0bce6b440560b3f776d5623e3bf0a9204b0679.tar.gz |
add zippy option for ICS server computer player mode
PR: 192669
Submitted by: kalten@gmx.at
-rw-r--r-- | games/xboard/Makefile | 27 | ||||
-rw-r--r-- | games/xboard/files/OPTION_ZIPPY__patch-xboard.texi | 25 | ||||
-rw-r--r-- | games/xboard/pkg-plist | 14 |
3 files changed, 45 insertions, 21 deletions
diff --git a/games/xboard/Makefile b/games/xboard/Makefile index e8c6c74..5680f4f 100644 --- a/games/xboard/Makefile +++ b/games/xboard/Makefile @@ -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} diff --git a/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi b/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi new file mode 100644 index 0000000..7e7ee81 --- /dev/null +++ b/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi @@ -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 diff --git a/games/xboard/pkg-plist b/games/xboard/pkg-plist index 7583f21..0b204b2 100644 --- a/games/xboard/pkg-plist +++ b/games/xboard/pkg-plist @@ -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 |