OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
| 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 | ||
| 6 | include $(TOPDIR)/rules.mk | |
| 7 | ||
| 8 | PKG_NAME:=gnuchess | |
| 9 | PKG_VERSION:=5.07 | |
| 10 | PKG_RELEASE:=3 | |
| 11 | ||
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |
| 13 | PKG_SOURCE_URL:=http://ftp.gnu.org/pub/gnu/chess | |
| 14 | PKG_CAT:=zcat | |
| 15 | ||
| 16 | ||
| 17 | include $(INCLUDE_DIR)/package.mk | |
| 18 | ||
| 19 | define Package/gnuchess | |
| 20 | TITLE:=Chess GNU from FSF | |
| 21 | SECTION:=games | |
| 22 | CATEGORY:=Games | |
| 23 | URL:=http://www.gnu.org/software/chess/chess.html | |
| 24 | endef | |
| 25 | PKG_BUILD_DIR:=$(BUILD_DIR)/gnuchess-$(PKG_VERSION) | |
| 26 | ||
| 27 | define 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 | |
| 29 | endef | |
| 30 | ||
| 31 | define Build/Configure | |
| 32 | $(call Build/Configure/Default) | |
| 33 | ||
| 34 | endef | |
| 35 | define Package/gnuchess/install | |
| 36 | $(INSTALL_DIR) $(1)/usr/sbin | |
| 37 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gnuchess $(1)/usr/sbin/ | |
| 38 | endef | |
| 39 | ||
| 40 | $(eval $(call BuildPackage,gnuchess)) | |
| gnuchess/patches/001_static_definition.patch | ||
|---|---|---|
| 1 | diff -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 | /* | |
