diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2000-12-27 00:24:43 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2000-12-27 00:24:43 +0000 |
commit | b936f83949b38d0b2676fcce560f524acc8cd264 (patch) | |
tree | a45b33cc89bae46d7568e918d4d77d5ece1ff342 /games/gnuchess | |
parent | 35aade5dc74328e05951b7bc98c1c657efa950c9 (diff) | |
download | pkgsrc-b936f83949b38d0b2676fcce560f524acc8cd264.tar.gz |
make this work on alpha. (had bogus endianness test)
Diffstat (limited to 'games/gnuchess')
-rw-r--r-- | games/gnuchess/files/patch-sum | 8 | ||||
-rw-r--r-- | games/gnuchess/patches/patch-ab | 22 | ||||
-rw-r--r-- | games/gnuchess/patches/patch-ad | 14 | ||||
-rw-r--r-- | games/gnuchess/patches/patch-ag | 18 | ||||
-rw-r--r-- | games/gnuchess/patches/patch-ah | 10 |
5 files changed, 53 insertions, 19 deletions
diff --git a/games/gnuchess/files/patch-sum b/games/gnuchess/files/patch-sum index 39dd4232d72..53d2d5e32a8 100644 --- a/games/gnuchess/files/patch-sum +++ b/games/gnuchess/files/patch-sum @@ -1,8 +1,10 @@ -$NetBSD: patch-sum,v 1.5 2000/10/15 01:53:40 jlam Exp $ +$NetBSD: patch-sum,v 1.6 2000/12/27 00:24:43 dmcmahill Exp $ MD5 (patch-aa) = 9c57a6e0ace6dad71a3a2d6305e4667a -MD5 (patch-ab) = 9b40a172e488a073e9de60f3ff3d8c4f +MD5 (patch-ab) = 64a6ced876d9615d5a77a126642f3402 MD5 (patch-ac) = 1797a54fc75d3eeb44a449de10e92a8a -MD5 (patch-ad) = bcf4fa21b42d76c2f5408e55d194624a +MD5 (patch-ad) = ed2d7b0ff930158735dba9fec4cb1e7b MD5 (patch-ae) = 9e914b8af31bca19851e255172b3bb35 MD5 (patch-af) = dccd2a2cd509a3d40a0cb097ee787e39 +MD5 (patch-ag) = a850f80c15c2ade71db200111798ceed +MD5 (patch-ah) = 675634954b3747267a21ca6f07c0186d diff --git a/games/gnuchess/patches/patch-ab b/games/gnuchess/patches/patch-ab index 59a84185728..029e21497ed 100644 --- a/games/gnuchess/patches/patch-ab +++ b/games/gnuchess/patches/patch-ab @@ -1,18 +1,21 @@ -$NetBSD: patch-ab,v 1.4 2000/10/15 01:53:40 jlam Exp $ +$NetBSD: patch-ab,v 1.5 2000/12/27 00:24:43 dmcmahill Exp $ --- book.c.orig Sat Oct 23 06:07:21 1999 -+++ book.c -@@ -85,7 +85,7 @@ - mcnt = -1; ++++ book.c Tue Dec 26 19:07:35 2000 +@@ -27,4 +27,5 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #ifdef NEVER + #ifdef UNIX +@@ -86,5 +87,5 @@ side = board.side; xside = 1^side; - rfp = fopen(BOOKBIN,"r+b"); + rfp = fopen(BOOKBIN,"rb"); /* don't need to open read/write */ if (rfp == NULL) { if (!(flags & XBOARD)) - fprintf(ofp," no book (%s).\n",BOOKBIN); -@@ -215,8 +215,13 @@ - return(1); +@@ -216,6 +217,11 @@ } -int genbook(void); @@ -26,9 +29,7 @@ $NetBSD: patch-ab,v 1.4 2000/10/15 01:53:40 jlam Exp $ +int genbook(char *src, char *tgt) { int i,j; - short found, epsilon; -@@ -225,13 +230,13 @@ - leaf *ptr; +@@ -226,11 +232,11 @@ FILE *wfp,*rfp; - printf("Trying to generate book %s from %s...\n",BOOKBIN,BOOKSRC); @@ -45,4 +46,3 @@ $NetBSD: patch-ab,v 1.4 2000/10/15 01:53:40 jlam Exp $ + printf("Couldn't open the pgn book (%s) for read.\n",src); fclose(wfp); return(0); - } diff --git a/games/gnuchess/patches/patch-ad b/games/gnuchess/patches/patch-ad index 1e297dcb5ae..b5d1bb79b8a 100644 --- a/games/gnuchess/patches/patch-ad +++ b/games/gnuchess/patches/patch-ad @@ -1,13 +1,17 @@ -$NetBSD: patch-ad,v 1.4 2000/10/15 01:53:40 jlam Exp $ +$NetBSD: patch-ad,v 1.5 2000/12/27 00:24:43 dmcmahill Exp $ --- cmd.c.orig Sat Oct 23 06:07:32 1999 -+++ cmd.c -@@ -154,7 +154,7 @@ - printf("inputstr = %s\n",inputstr); ++++ cmd.c Tue Dec 26 17:16:44 2000 +@@ -27,4 +27,5 @@ + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> + #include <signal.h> + #include <unistd.h> +@@ -155,5 +156,5 @@ 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"); diff --git a/games/gnuchess/patches/patch-ag b/games/gnuchess/patches/patch-ag new file mode 100644 index 00000000000..14a6ea9b84d --- /dev/null +++ b/games/gnuchess/patches/patch-ag @@ -0,0 +1,18 @@ +$NetBSD: patch-ag,v 1.1 2000/12/27 00:24:43 dmcmahill Exp $ + +--- util.c.orig Fri Oct 15 23:56:56 1999 ++++ util.c Tue Dec 26 19:16:54 2000 +@@ -33,4 +33,6 @@ + #include "common.h" + #include <signal.h> ++#include <sys/types.h> ++#include <machine/endian.h> + + inline short leadz (BitBoard b) +@@ -49,5 +51,5 @@ + + a.bitboard = b; +-#ifdef i386 ++#if (BYTE_ORDER == LITTLE_ENDIAN) + if (a.v[3] != 0) + return (lzArray[a.v[3]]); diff --git a/games/gnuchess/patches/patch-ah b/games/gnuchess/patches/patch-ah new file mode 100644 index 00000000000..c2abafa2728 --- /dev/null +++ b/games/gnuchess/patches/patch-ah @@ -0,0 +1,10 @@ +$NetBSD: patch-ah,v 1.1 2000/12/27 00:24:43 dmcmahill Exp $ + +--- search.c.orig Fri Oct 15 23:51:49 1999 ++++ search.c Tue Dec 26 19:21:00 2000 +@@ -29,4 +29,5 @@ + + #include <stdio.h> ++#include <string.h> + #include "common.h" + |