summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-02 20:06:07 +0000
committerrillig <rillig@pkgsrc.org>2006-10-02 20:06:07 +0000
commit16a5a120dfc2c2fee3fdeb52bddb0d69911347cd (patch)
treee8d928f44b97d70323595a622ead6b4e80187f71 /games
parent98d08d2dc7671228e362bd10bb833b08918b9ebd (diff)
downloadpkgsrc-16a5a120dfc2c2fee3fdeb52bddb0d69911347cd.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')
-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