mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add GNU Chess recipe
This commit is contained in:
44
games-board/gnuchess/gnuchess-6.2.1.recipe
Normal file
44
games-board/gnuchess/gnuchess-6.2.1.recipe
Normal file
@@ -0,0 +1,44 @@
|
||||
SUMMARY="A chess engine and console frontend"
|
||||
DESCRIPTION="GNU Chess is a free software chess engine developed by the GNU \
|
||||
project. It started as a project by Stuart Cracraft and Richard Stallman in \
|
||||
1984. It is supported as an engine for a wide range of graphical frontents \
|
||||
such as XBoard and glChess, but also works autonomously on the console."
|
||||
HOMEPAGE="https://www.gnu.org/software/chess/"
|
||||
COPYRIGHT="2001-2011 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://ftp.gnu.org/gnu/chess/gnuchess-6.2.1.tar.gz"
|
||||
CHECKSUM_SHA256="17caab725539447bcb17a14b17905242cbf287087e53a6777524feb7bbaeed06"
|
||||
PATCHES="gnuchess-6.2.1.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
gnuchess = $portVersion
|
||||
cmd:gnuchess = $portVersion
|
||||
cmd:gnuchessu = $portVersion
|
||||
cmd:gnuchessx = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:awk
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
43
games-board/gnuchess/patches/gnuchess-6.2.1.patchset
Normal file
43
games-board/gnuchess/patches/gnuchess-6.2.1.patchset
Normal file
@@ -0,0 +1,43 @@
|
||||
From 9b3cb24d4a252dc3b0bbe3a26f4fa67274b1c9e8 Mon Sep 17 00:00:00 2001
|
||||
From: Markus Himmel <markus@himmel-villmar.de>
|
||||
Date: Sat, 3 Oct 2015 10:24:07 +0000
|
||||
Subject: [PATCH] Fix signature for non-debug stubs and fix unicode literals
|
||||
|
||||
---
|
||||
src/frontend/debug.cc | 4 ++--
|
||||
src/frontend/output.cc | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/frontend/debug.cc b/src/frontend/debug.cc
|
||||
index f7df145..541de85 100644
|
||||
--- a/src/frontend/debug.cc
|
||||
+++ b/src/frontend/debug.cc
|
||||
@@ -94,8 +94,8 @@ int dbg_printf(const char *fmt, ...)
|
||||
|
||||
#else /* !DEBUG */
|
||||
|
||||
-int dbg_open(const char *name __attribute__((unused)) ) { return 0; }
|
||||
-int dbg_printf(const char *fmt __attribute__((unused)), ...) { return 0; }
|
||||
+int dbg_open(const char *name) { return 0; }
|
||||
+int dbg_printf(const char *fmt, ...) { return 0; }
|
||||
int dbg_close(void) { return 0; }
|
||||
|
||||
#endif /* DEBUG */
|
||||
diff --git a/src/frontend/output.cc b/src/frontend/output.cc
|
||||
index 21698cb..fda1ea8 100644
|
||||
--- a/src/frontend/output.cc
|
||||
+++ b/src/frontend/output.cc
|
||||
@@ -32,8 +32,8 @@
|
||||
|
||||
#define MAX_BOARD_RANGE 65
|
||||
#define PIECE_SIZE 8
|
||||
-const char w_pieces[6][PIECE_SIZE] = {"\u2654 ", "\u2655 ", "\u2656 ", "\u2657 ", "\u2658 ", "\u2659 "};
|
||||
-const char b_pieces[6][PIECE_SIZE] = {"\u265A ", "\u265B ", "\u265C ", "\u265D ", "\u265E ", "\u265F "};
|
||||
+const char w_pieces[6][PIECE_SIZE] = {"\\u2654 ", "\\u2655 ", "\\u2656 ", "\\u2657 ", "\\u2658 ", "\\u2659 "};
|
||||
+const char b_pieces[6][PIECE_SIZE] = {"\\u265A ", "\\u265B ", "\\u265C ", "\\u265D ", "\\u265E ", "\\u265F "};
|
||||
const unsigned ui_king = 0;
|
||||
const unsigned ui_queen = 1;
|
||||
const unsigned ui_rook = 2;
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user