[Lunar-commits] <moonbase-other> Merge branch 'master' of github.com:/lunar-linux/moonbase-other

Dennis Veatch stumbles at lunar-linux.org
Fri Jul 13 14:37:05 CEST 2012


commit a2cb44ad2311c4cdef5bc95c9bc6f2cb393a07ca
Author: Dennis Veatch <stumbles at lunar-linux.org>
Date: Fri, 13 Jul 2012 05:37:05 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/a2cb44ad2311c4cdef5bc95c9bc6f2cb393a07ca

Merge branch 'master' of github.com:/lunar-linux/moonbase-other
---
  games/crafty/BUILD                                           +12/-0    
  games/crafty/DEPENDS                                         +1/-0     
  games/crafty/DETAILS                                         +22/-0    
  games/crafty/POST_INSTALL                                    +3/-0     
  games/crafty/craftyx                                         +12/-0    
  games/gnuchess/chess                                         +3/-3     
  6 files changed, 0 insertions (+), 0 deletions (-)

--- /dev/null
+++ b/games/crafty/BUILD
@@ -0,0 +1,12 @@
+(
+
+  make target=LINUX CFLAGS="$CFLAGS"                    \
+       CXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS -lstdc++"  \
+       opt=' -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS   \
+       -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST'        \
+       asm=X86-elf.o crafty-make                       &&
+  prepare_install                                      &&
+  install -m755 crafty /usr/games                      &&
+  install -m755 $SCRIPT_DIRECTORY/craftyx /usr/games   
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/games/crafty/DEPENDS
@@ -0,0 +1 @@
+optional_depends  "xboard"  ""  ""  "for an X11 based interface"
--- /dev/null
+++ b/games/crafty/DETAILS
@@ -0,0 +1,22 @@
+          MODULE=crafty
+         VERSION=23.4
+          SOURCE=$MODULE-$VERSION.zip
+   SOURCE_URL[0]=http://www.craftychess.com
+   SOURCE_URL[1]=ftp://ftp.cis.uab.edu/pub/hyatt/source
+      SOURCE_VFY=sha1:383079c0f99f133faa541d1949f6be4f67101f3f
+        WEB_SITE=http://www.craftychess.com
+         ENTERED=20020501
+         UPDATED=20110522
+           SHORT="A text based chess program"
+
+cat << EOF
+Crafty is a chess program written by Bob Hyatt (hyatt at cis.uab.edu).
+It is modeled after Cray Blitz (also written by Bob).
+
+Crafty has the following features:
+- written in C
+- can be compiled with the GNU C compiler on various platforms
+- has a customizable opening book
+- supports tablebases (Steven Edward's endgame database)
+- text interface
+EOF
--- /dev/null
+++ b/games/crafty/POST_INSTALL
@@ -0,0 +1,3 @@
+echo " "
+echo "Execute /usr/games/craftyx to use with xboard."
+echo " "
--- /dev/null
+++ b/games/crafty/craftyx
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# craftyx: this command will launch crafty using xboard for display
+#
+
+XBOARD=`which xboard`
+
+if [ -e "$XBOARD" ]; then
+	xboard -fcp crafty
+else
+	echo "Xboard is missing. Please install the xboard module"
+fi
\ No newline at end of file
--- a/games/gnuchess/chess
+++ b/games/gnuchess/chess
@@ -9,10 +9,10 @@ GCHESS=`which gnuchess`
 XBORD=`which xboard`
 
 if [ -e "$GCHESS" ]; then
-	$XBORD -fcp "$GCHESS" -fd "/usr/games" -scp "$GCHESS xboard" -sd "/usr/games"
+        $XBORD -fcp "$GCHESS" -scp "$GCHESS xboard"
 else
         echo " "
-	echo "$GCHESS missing. Please install the gnuchess module!"
-	exit 0
+        echo "$GCHESS missing. Please install the gnuchess module!"
+        exit 0
 fi
 exit 0




More information about the Lunar-commits mailing list