瀏覽代碼

added gnuchess

John Voltz 17 年之前
父節點
當前提交
dab3cd675c
共有 3 個文件被更改,包括 36 次插入0 次删除
  1. 7 0
      package/gnuchess/Config.in
  2. 11 0
      package/gnuchess/gnuchess-5.07.patch
  3. 18 0
      package/gnuchess/gnuchess.mk

+ 7 - 0
package/gnuchess/Config.in

@@ -0,0 +1,7 @@
+config BR2_PACKAGE_GNUCHESS
+	bool "gnuchess"
+	default n
+	help
+	  GNU Chess lets most modern computers play a full game of chess.
+
+	  http://ftp.gnu.org/pub/gnu/chess

+ 11 - 0
package/gnuchess/gnuchess-5.07.patch

@@ -0,0 +1,11 @@
+--- a/src/input.c	2003-07-01 13:06:43.000000000 -0400
++++ a/src/input.c	2008-02-13 12:24:43.000000000 -0500
+@@ -92,7 +92,7 @@ void getline_standard(char *p)
+   fgets(inputstr, MAXSTR, stdin);
+ }
+ 
+-static pthread_t input_thread;
++pthread_t input_thread;
+ 
+ /* Mutex and condition variable for thread communication */
+ 

+ 18 - 0
package/gnuchess/gnuchess.mk

@@ -0,0 +1,18 @@
+#############################################################
+#
+# gnuchess
+#
+#############################################################
+GNUCHESS_VERSION = 5.07
+GNUCHESS_SOURCE = gnuchess-$(GNUCHESS_VERSION).tar.gz
+GNUCHESS_SITE = http://ftp.gnu.org/pub/gnu/chess
+GNUCHESS_AUTORECONF = NO
+GNUCHESS_INSTALL_STAGING = NO
+GNUCHESS_INSTALL_TARGET = YES
+
+GNUCHESS_CONF_ENV = ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes
+
+GNUCHESS_DEPENDENCIES = uclibc 
+
+$(eval $(call AUTOTARGETS,package,gnuchess))
+