summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-11 07:54:55 +0000
committerjlam <jlam>2001-11-11 07:54:55 +0000
commit32af1d6063e4912faab154cd58cde6c14e361f69 (patch)
treec2c062b17f60a02ef4feb8595f2032ad59955c85 /games
parent39556c60de293ffbb36508a371f982f3b2071a50 (diff)
downloadpkgsrc-32af1d6063e4912faab154cd58cde6c14e361f69.tar.gz
Apply a patch from Tim Mann's chess site that fixes the following problem:
The "edit" function is not implemented in GNU Chess 5.00. This means that XBoard's "Edit Position" feature will not work with it. Loading a position from a file, loading a PGN game that starts from a nonstandard position, or playing an ICS wild game in Zippy mode, etc., will also not work. Also fix the gnuchessx script to accept options and to pass them through to the gnuchess binary. Bump package version number to 5.00nb2.
Diffstat (limited to 'games')
-rw-r--r--games/gnuchess/Makefile18
-rw-r--r--games/gnuchess/distinfo6
-rw-r--r--games/gnuchess/files/gnuchessx.sh4
-rw-r--r--games/gnuchess/patches/patch-ad14
4 files changed, 26 insertions, 16 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index 2b9f2f2c7f5..1277c51351d 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,27 +1,31 @@
-# $NetBSD: Makefile,v 1.11 2001/02/16 15:10:51 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2001/11/11 07:54:55 jlam Exp $
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
#
DISTNAME= chess-5.00
-PKGNAME= gnuchess-5.00nb1
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+PKGNAME= gnuchess-5.00nb2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
+PATCHFILES= gnu500+.patch
+PATCH_SITES= http://www.tim-mann.org/xboard/
+PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --quiet -E ${PATCH_STRIP}
+
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/chess/chess.html
COMMENT= GNU chess engine
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
+GNU_CONFIGURE= YES
+USE_GMAKE= YES
ALL_TARGET= gnuchess
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
BOOKDIR= ${PREFIX}/lib/gnuchess
DOCDIR= ${PREFIX}/share/doc/gnuchess
post-build:
- ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/gnuchessx.sh \
- > ${WRKDIR}/gnuchessx.sh
+ ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ ${FILESDIR}/gnuchessx.sh > ${WRKDIR}/gnuchessx.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gnuchess ${PREFIX}/bin/gnuchess
diff --git a/games/gnuchess/distinfo b/games/gnuchess/distinfo
index bcb65020565..6a635764b77 100644
--- a/games/gnuchess/distinfo
+++ b/games/gnuchess/distinfo
@@ -1,11 +1,13 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 02:08:26 wiz Exp $
+$NetBSD: distinfo,v 1.3 2001/11/11 07:54:55 jlam Exp $
SHA1 (chess-5.00.tar.gz) = 86b364d60aab4a2ec5932fb800ef4857251a84cd
Size (chess-5.00.tar.gz) = 157211 bytes
+SHA1 (gnu500+.patch) = 3ca10daf2beff6f0c03dd9f6c66bea52b8aca6cd
+Size (gnu500+.patch) = 9293 bytes
SHA1 (patch-aa) = 186f8b8eeed1457f4ea50e353d09f1bd039795e8
SHA1 (patch-ab) = 093285e9955f23f6ab324cae3e768779a28010ff
SHA1 (patch-ac) = f027b84d724ce0380784f2a6a67b1998fd119eee
-SHA1 (patch-ad) = 15187825fbbef7eceebcf9a22b090edf97f41764
+SHA1 (patch-ad) = 186f7ff808f105cc58f4ea32853dd7bc31faedef
SHA1 (patch-ae) = 8e423476cc661952c5252ceb7fb721beef620db9
SHA1 (patch-af) = 55c51f597607726895635024f5646009f8364a1c
SHA1 (patch-ag) = f78fe990d448ed8c5b5bcd29c038b86ec0b4bc40
diff --git a/games/gnuchess/files/gnuchessx.sh b/games/gnuchess/files/gnuchessx.sh
index ec583a4f79f..fdd9e569ba9 100644
--- a/games/gnuchess/files/gnuchessx.sh
+++ b/games/gnuchess/files/gnuchessx.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# $NetBSD: gnuchessx.sh,v 1.1 2000/03/26 08:29:25 jlam Exp $
+# $NetBSD: gnuchessx.sh,v 1.2 2001/11/11 07:54:55 jlam Exp $
#
# Wrapper script for gnuchess to interface with xboard.
-exec @PREFIX@/bin/gnuchess xboard
+exec @PREFIX@/bin/gnuchess xboard $*
diff --git a/games/gnuchess/patches/patch-ad b/games/gnuchess/patches/patch-ad
index b5d1bb79b8a..58397cea6f3 100644
--- a/games/gnuchess/patches/patch-ad
+++ b/games/gnuchess/patches/patch-ad
@@ -1,17 +1,21 @@
-$NetBSD: patch-ad,v 1.5 2000/12/27 00:24:43 dmcmahill Exp $
+$NetBSD: patch-ad,v 1.6 2001/11/11 07:54:56 jlam Exp $
---- cmd.c.orig Sat Oct 23 06:07:32 1999
-+++ cmd.c Tue Dec 26 17:16:44 2000
-@@ -27,4 +27,5 @@
+--- cmd.c.orig Sun Nov 11 02:44:56 2001
++++ cmd.c
+@@ -26,6 +26,7 @@
+
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <unistd.h>
-@@ -155,5 +156,5 @@
+ #include "version.h"
+@@ -160,7 +161,7 @@
+ printf("inputstr = %s\n",inputstr);
if (strncmp (inputstr, "compile", 7) == 0) {
printf("calling genbook.\n");
- genbook ();
+ genbook (booksrc, bookbin);
} else if (strcmp (inputstr, "on") == 0) {
bookmode = BOOKBEST;
+ printf("book now on.\n");