pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/polyglot Imported polyglot.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7350b3242f8
branches:  trunk
changeset: 519414:d7350b3242f8
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 02 20:06:07 2006 +0000

description:
Imported polyglot.

PolyGlot is a "UCI adapter".  It connects a UCI chess engine to an
xboard interface such as WinBoard.  UCI2WB is another such adapter (for
Windows).

PolyGlot tries to solve known problems with other adapters.  For
instance, it detects and reports draws by fifty-move rule, repetition,
etc ...

diffstat:

 games/polyglot/DESCR           |   7 +++++++
 games/polyglot/MESSAGE         |   8 ++++++++
 games/polyglot/Makefile        |  34 ++++++++++++++++++++++++++++++++++
 games/polyglot/PLIST           |   4 ++++
 games/polyglot/distinfo        |   5 +++++
 games/polyglot/files/Makefile  |  15 +++++++++++++++
 games/polyglot/files/fruit.ini |   7 +++++++
 7 files changed, 80 insertions(+), 0 deletions(-)

diffs (108 lines):

diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/DESCR      Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,7 @@
+PolyGlot is a "UCI adapter".  It connects a UCI chess engine to an
+xboard interface such as WinBoard.  UCI2WB is another such adapter (for
+Windows).
+
+PolyGlot tries to solve known problems with other adapters.  For
+instance, it detects and reports draws by fifty-move rule, repetition,
+etc ...
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/MESSAGE    Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+
+To use games/fruit with xboard, run
+
+    xboard -fcp 'polyglot ${PREFIX}/share/examples/polyglot/fruit.ini'
+
+===========================================================================
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/Makefile   Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+#
+
+DISTNAME=              polyglot_14
+PKGNAME=               polyglot-1.4
+CATEGORIES=            games
+MASTER_SITES=          http://wbec-ridderkerk.nl/html/download/fruit/
+EXTRACT_SUFX=          .zip
+
+MAINTAINER=            rillig%NetBSD.org@localhost
+HOMEPAGE=              http://wbec-ridderkerk.nl/html/details/PolyGlot.html
+COMMENT=               UCI to WB adapter (for chess engines)
+
+WRKSRC=                        ${WRKDIR}/polyglot_14
+BUILD_DIRS=            src
+MAKE_FILE=             ${FILESDIR}/Makefile
+USE_LANGUAGES=         c++
+
+INSTALLATION_DIRS=     bin share/doc/polyglot share/examples/polyglot
+
+post-extract:
+       cp ${FILESDIR}/fruit.ini ${WRKSRC}/
+
+SUBST_CLASSES+=                ini
+SUBST_STAGE.ini=       post-configure
+SUBST_FILES.ini=       fruit.ini
+SUBST_SED.ini=         -e 's,@LOCALBASE@,${LOCALBASE},g'
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/polyglot ${PREFIX}/bin/
+       ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/polyglot/
+       ${INSTALL_DATA} ${WRKSRC}/fruit.ini ${PREFIX}/share/examples/polyglot/
+
+.include "../../mk/bsd.pkg.mk"
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/PLIST      Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+bin/polyglot
+share/doc/polyglot/readme.txt
+share/examples/polyglot/fruit.ini
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/distinfo   Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+
+SHA1 (polyglot_14.zip) = 47363999135b329302f5565618d1ffa2e8c872d1
+RMD160 (polyglot_14.zip) = 457bbb91c3a40196b496d681e7475379bfa9c7c1
+Size (polyglot_14.zip) = 229546 bytes
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/files/Makefile     Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+#
+
+PROG_CXX=      polyglot
+SRCS=          adapter.cpp attack.cpp board.cpp book.cpp book_make.cpp \
+               book_merge.cpp colour.cpp engine.cpp epd.cpp fen.cpp    \
+               game.cpp hash.cpp io.cpp line.cpp list.cpp main.cpp     \
+               move.cpp move_do.cpp move_gen.cpp move_legal.cpp        \
+               option.cpp parse.cpp pgn.cpp piece.cpp posix.cpp        \
+               random.cpp san.cpp search.cpp square.cpp uci.cpp        \
+               util.cpp
+LDADD=         -lm
+NOMAN=         yes
+
+.include <bsd.prog.mk>
diff -r dd158c7a8040 -r d7350b3242f8 games/polyglot/files/fruit.ini
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/polyglot/files/fruit.ini    Mon Oct 02 20:06:07 2006 +0000
@@ -0,0 +1,7 @@
+[PolyGlot]
+EngineDir = @LOCALBASE@/bin
+EngineCommand = fruit
+Book = false
+
+[Engine]
+Hash = 64



Home | Main Index | Thread Index | Old Index