[Lunar-commits] <moonbase-other> crafty: resurrected

v4hn me at v4hn.de
Fri Jul 13 12:50:01 CEST 2012


commit 963eb0d131a193dc2cfadbbd9f54932e0123e871
Author: v4hn <me at v4hn.de>
Date: Fri, 13 Jul 2012 03:50:01 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/963eb0d131a193dc2cfadbbd9f54932e0123e871

crafty: resurrected
---
  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    
  5 files changed, 50 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




More information about the Lunar-commits mailing list