Date:2010-05-30 12:06:55 (13 years 6 months ago)
Author:Xiangfu Liu
Commit:1e46c5a3f7efbdc04e6892e8c9a76116dd90ace6
Message:[gnuchess] add new package gnuchess, thanks to David Samblas

more info: http://www.tuxbrain.com/en/content/my-first-port-ben-nanonote-gnuchess-howto
Files: gnuchess/Makefile (1 diff)
gnuchess/patches/001_static_definition.patch (1 diff)

Change Details

gnuchess/Makefile
1# Copyright (C) 2008 OpenWrt.org
2#
3# This is free software, licensed under the GNU General Public License v2.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=gnuchess
9PKG_VERSION:=5.07
10PKG_RELEASE:=3
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://ftp.gnu.org/pub/gnu/chess
14PKG_CAT:=zcat
15
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/gnuchess
20  TITLE:=Chess GNU from FSF
21  SECTION:=games
22  CATEGORY:=Games
23  URL:=http://www.gnu.org/software/chess/chess.html
24endef
25PKG_BUILD_DIR:=$(BUILD_DIR)/gnuchess-$(PKG_VERSION)
26
27define Package/gnuchess/description
28  GNU Chess lets most modern computers play a full game of chess. It has a plain terminal interface but supports visual interfaces such as xboard and eboard
29endef
30
31define Build/Configure
32      $(call Build/Configure/Default)
33
34endef
35define Package/gnuchess/install
36    $(INSTALL_DIR) $(1)/usr/sbin
37    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gnuchess $(1)/usr/sbin/
38endef
39
40$(eval $(call BuildPackage,gnuchess))
gnuchess/patches/001_static_definition.patch
1diff -crB gnuchess-5.07/src/common.h gnuchess-5.07.mod/src/common.h
2*** gnuchess-5.07/src/common.h 2003-06-30 13:28:38.000000000 +0200
3--- gnuchess-5.07.mod/src/common.h 2010-03-19 20:32:10.474722004 +0100
4***************
5*** 716,722 ****
6
7  /* Input thread and thread function */
8  #include <pthread.h>
9! extern pthread_t input_thread;
10  void *input_func(void *);
11
12  /*
13--- 716,722 ----
14
15  /* Input thread and thread function */
16  #include <pthread.h>
17! static pthread_t input_thread;
18  void *input_func(void *);
19
20  /*

Archive Download the corresponding diff file



interactive