svn commit: r564122 - in head/games/gnushogi: . files
Christian Weisgerber
naddy at FreeBSD.org
Fri Feb 5 15:34:57 UTC 2021
Author: naddy
Date: Fri Feb 5 15:34:56 2021
New Revision: 564122
URL: https://svnweb.freebsd.org/changeset/ports/564122
Log:
* Fix build with -fno-common
* Remove Makefile.common, accidentally left over in r345138
Added:
head/games/gnushogi/files/patch-gnushogi_cursesdsp.c (contents, props changed)
head/games/gnushogi/files/patch-gnushogi_globals.c (contents, props changed)
head/games/gnushogi/files/patch-gnushogi_init.c (contents, props changed)
head/games/gnushogi/files/patch-gnushogi_rawdsp.c (contents, props changed)
Deleted:
head/games/gnushogi/Makefile.common
Modified:
head/games/gnushogi/files/patch-doc_gnushogi.texi
Modified: head/games/gnushogi/files/patch-doc_gnushogi.texi
==============================================================================
--- head/games/gnushogi/files/patch-doc_gnushogi.texi Fri Feb 5 15:05:02 2021 (r564121)
+++ head/games/gnushogi/files/patch-doc_gnushogi.texi Fri Feb 5 15:34:56 2021 (r564122)
@@ -1,5 +1,5 @@
---- doc/gnushogi.texi.orig 2014-02-17 21:26:59.000000000 +0100
-+++ doc/gnushogi.texi 2014-02-19 20:38:54.000000000 +0100
+--- doc/gnushogi.texi.orig 2014-02-17 20:26:59 UTC
++++ doc/gnushogi.texi
@@ -3,6 +3,10 @@
@c % ** Start of header.
@setfilename gnushogi.info
Added: head/games/gnushogi/files/patch-gnushogi_cursesdsp.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gnushogi/files/patch-gnushogi_cursesdsp.c Fri Feb 5 15:34:56 2021 (r564122)
@@ -0,0 +1,20 @@
+--- gnushogi/cursesdsp.c.orig 2021-02-05 15:24:17 UTC
++++ gnushogi/cursesdsp.c
+@@ -61,17 +61,11 @@
+
+ #define FLUSH_SCANW fflush(stdout), scanw
+
+-int mycnt1, mycnt2;
+-
+ #define MARGIN (5)
+ #define TAB (58)
+
+ #define VIR_C(s) ((flag.reverse) ? (NO_COLS - 1 - column(s)) : column(s))
+ #define VIR_R(s) ((flag.reverse) ? (NO_ROWS - 1 - row(s)) : row(s))
+-
+-unsigned short MV[MAXDEPTH];
+-int MSCORE;
+-char *DRAW;
+
+ /* Forward declarations. */
+ /* FIXME: change this name, puh-leeze! */
Added: head/games/gnushogi/files/patch-gnushogi_globals.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gnushogi/files/patch-gnushogi_globals.c Fri Feb 5 15:34:56 2021 (r564122)
@@ -0,0 +1,13 @@
+--- gnushogi/globals.c.orig 2014-02-16 18:20:24 UTC
++++ gnushogi/globals.c
+@@ -51,6 +51,10 @@ char ColorStr[2][10];
+
+ long znodes;
+
++unsigned short MV[MAXDEPTH];
++int MSCORE;
++int mycnt1, mycnt2;
++
+
+
+ #ifdef BINBOOK
Added: head/games/gnushogi/files/patch-gnushogi_init.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gnushogi/files/patch-gnushogi_init.c Fri Feb 5 15:34:56 2021 (r564122)
@@ -0,0 +1,20 @@
+--- gnushogi/init.c.orig 2014-02-17 20:26:59 UTC
++++ gnushogi/init.c
+@@ -63,7 +63,7 @@ short nolist = 1; /* Don't list the game aft
+ * or DISPLAY_X; the default is DISPLAY_X to make life easier for xshogi.
+ */
+
+-display_t display_type = DISPLAY_X;
++display_t display_type = DISPLAY_CURSES;
+
+ /* .... MOVE GENERATION VARIABLES AND INITIALIZATIONS .... */
+
+@@ -100,7 +100,7 @@ distance(short a, short b)
+ short
+ distance(short a, short b)
+ {
+- return (use_distdata
++ return (use_distdata && a < NO_SQUARES && b < NO_SQUARES
+ ? (short)(*distdata)[(int)a][(int)b]
+ : (short)computed_distance(a, b));
+ }
Added: head/games/gnushogi/files/patch-gnushogi_rawdsp.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/gnushogi/files/patch-gnushogi_rawdsp.c Fri Feb 5 15:34:56 2021 (r564122)
@@ -0,0 +1,14 @@
+--- gnushogi/rawdsp.c.orig 2021-02-05 15:24:17 UTC
++++ gnushogi/rawdsp.c
+@@ -43,11 +43,6 @@
+ #include "gnushogi.h"
+ #include "rawdsp.h"
+
+-unsigned short MV[MAXDEPTH];
+-int MSCORE;
+-
+-int mycnt1, mycnt2;
+-char *DRAW;
+ extern char *InPtr;
+ extern short pscore[];
+
More information about the svn-ports-all
mailing list