games/gnushogi: fix build with -fno-common
No upstream activity since 2014. Remove invalid configure flags while here.
This commit is contained in:
parent
174548e778
commit
09ace554b5
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.30 2020/08/23 11:20:33 cwen Exp $
|
||||
# $OpenBSD: Makefile,v 1.31 2021/02/04 21:55:54 naddy Exp $
|
||||
|
||||
BROKEN-powerpc = gnushogi hangs during the build since clang-10
|
||||
|
||||
COMMENT= GNU version of Shogi
|
||||
|
||||
DISTNAME= gnushogi-1.4.2
|
||||
REVISION= 0
|
||||
CATEGORIES= games
|
||||
|
||||
# GPL
|
||||
@ -15,8 +16,6 @@ WANTLIB= c curses m
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=gnushogi/}
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS= --without-x \
|
||||
--without-xshogi
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
|
25
games/gnushogi/patches/patch-gnushogi_cursesdsp_c
Normal file
25
games/gnushogi/patches/patch-gnushogi_cursesdsp_c
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-gnushogi_cursesdsp_c,v 1.1 2021/02/04 21:55:54 naddy Exp $
|
||||
|
||||
fix for -fno-common
|
||||
|
||||
Index: gnushogi/cursesdsp.c
|
||||
--- gnushogi/cursesdsp.c.orig
|
||||
+++ gnushogi/cursesdsp.c
|
||||
@@ -62,17 +62,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! */
|
18
games/gnushogi/patches/patch-gnushogi_globals_c
Normal file
18
games/gnushogi/patches/patch-gnushogi_globals_c
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-gnushogi_globals_c,v 1.1 2021/02/04 21:55:54 naddy Exp $
|
||||
|
||||
fix for -fno-common
|
||||
|
||||
Index: gnushogi/globals.c
|
||||
--- gnushogi/globals.c.orig
|
||||
+++ gnushogi/globals.c
|
||||
@@ -51,6 +51,10 @@ char ColorStr[2][10];
|
||||
|
||||
long znodes;
|
||||
|
||||
+unsigned short MV[MAXDEPTH];
|
||||
+int MSCORE;
|
||||
+int mycnt1, mycnt2;
|
||||
+
|
||||
|
||||
|
||||
#ifdef BINBOOK
|
19
games/gnushogi/patches/patch-gnushogi_rawdsp_c
Normal file
19
games/gnushogi/patches/patch-gnushogi_rawdsp_c
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-gnushogi_rawdsp_c,v 1.1 2021/02/04 21:55:54 naddy Exp $
|
||||
|
||||
fix for -fno-common
|
||||
|
||||
Index: gnushogi/rawdsp.c
|
||||
--- gnushogi/rawdsp.c.orig
|
||||
+++ gnushogi/rawdsp.c
|
||||
@@ -44,11 +44,6 @@
|
||||
#include "gnushogi.h"
|
||||
#include "rawdsp.h"
|
||||
|
||||
-unsigned short MV[MAXDEPTH];
|
||||
-int MSCORE;
|
||||
-
|
||||
-int mycnt1, mycnt2;
|
||||
-char *DRAW;
|
||||
extern char *InPtr;
|
||||
extern short pscore[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user