summaryrefslogtreecommitdiff
path: root/games/polyglot
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-02 20:06:07 +0000
committerrillig <rillig>2006-10-02 20:06:07 +0000
commitc20c60fb288391e97b3f1c8efe4ea064a60494d1 (patch)
treee8d928f44b97d70323595a622ead6b4e80187f71 /games/polyglot
parent512e6af4b785b67c926448bacd3869ec6d56e119 (diff)
downloadpkgsrc-c20c60fb288391e97b3f1c8efe4ea064a60494d1.tar.gz
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 (limited to 'games/polyglot')
-rw-r--r--games/polyglot/DESCR7
-rw-r--r--games/polyglot/MESSAGE8
-rw-r--r--games/polyglot/Makefile34
-rw-r--r--games/polyglot/PLIST4
-rw-r--r--games/polyglot/distinfo5
-rw-r--r--games/polyglot/files/Makefile15
-rw-r--r--games/polyglot/files/fruit.ini7
7 files changed, 80 insertions, 0 deletions
diff --git a/games/polyglot/DESCR b/games/polyglot/DESCR
new file mode 100644
index 00000000000..6d950b6eed2
--- /dev/null
+++ b/games/polyglot/DESCR
@@ -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 --git a/games/polyglot/MESSAGE b/games/polyglot/MESSAGE
new file mode 100644
index 00000000000..60509808afe
--- /dev/null
+++ b/games/polyglot/MESSAGE
@@ -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 --git a/games/polyglot/Makefile b/games/polyglot/Makefile
new file mode 100644
index 00000000000..0f770909c28
--- /dev/null
+++ b/games/polyglot/Makefile
@@ -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
+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 --git a/games/polyglot/PLIST b/games/polyglot/PLIST
new file mode 100644
index 00000000000..8c38c6238e4
--- /dev/null
+++ b/games/polyglot/PLIST
@@ -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 --git a/games/polyglot/distinfo b/games/polyglot/distinfo
new file mode 100644
index 00000000000..aba1184aebd
--- /dev/null
+++ b/games/polyglot/distinfo
@@ -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 --git a/games/polyglot/files/Makefile b/games/polyglot/files/Makefile
new file mode 100644
index 00000000000..887ab5f6dae
--- /dev/null
+++ b/games/polyglot/files/Makefile
@@ -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 --git a/games/polyglot/files/fruit.ini b/games/polyglot/files/fruit.ini
new file mode 100644
index 00000000000..b920d5754b8
--- /dev/null
+++ b/games/polyglot/files/fruit.ini
@@ -0,0 +1,7 @@
+[PolyGlot]
+EngineDir = @LOCALBASE@/bin
+EngineCommand = fruit
+Book = false
+
+[Engine]
+Hash = 64