summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
commit97058967a7de1ca39bedfc34a737c18adedef2ab (patch)
tree1cb38f3487301fc029765267e06de600501406e9 /games-board/crafty
parentChanges to make the eclass more flexible (diff)
downloadgentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.tar.gz
gentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.tar.bz2
gentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.zip
board board games
Diffstat (limited to 'games-board/crafty')
-rw-r--r--games-board/crafty/ChangeLog26
-rw-r--r--games-board/crafty/Manifest4
-rw-r--r--games-board/crafty/crafty-19.1.ebuild82
-rw-r--r--games-board/crafty/files/crafty-18.15-ppc.patch24
-rw-r--r--games-board/crafty/files/digest-crafty-19.11
5 files changed, 137 insertions, 0 deletions
diff --git a/games-board/crafty/ChangeLog b/games-board/crafty/ChangeLog
new file mode 100644
index 000000000000..42a9f6f52482
--- /dev/null
+++ b/games-board/crafty/ChangeLog
@@ -0,0 +1,26 @@
+# ChangeLog for app-games/crafty
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+*crafty-19.1.ebuild (25 Oct 2002)
+
+ 25 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+ Update to 19.1 per #9657.
+
+*crafty-18.15-r2 (13 Feb 2003)
+
+ 29 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+*crafty-18.15-r1.ebuild (15 Jul 2002)
+
+ 30 Sep 2002; Mike Frysinger <vapier@gentoo.org> crafty-18.15-r2.ebuild :
+ Updated to allow for compile on gcc3.x and i586 optimizations
+
+*crafty-18.15-r1.ebuild (15 Jul 2002)
+
+ 07 Aug 2002; Mark Guertin <gerk@gentoo.org> crafty-18.15-r1.ebuild :
+ Added ppc patch to close bug #5932 and ppc to keywords
+
+ 15 Jul 2002; J.Alberto S.L. <bass@gentoo.org> crafty-18.15-r1.ebuild :
+ First relase. Ebuild submitted by Frank Eibisch <feibisch@estec.net>.
diff --git a/games-board/crafty/Manifest b/games-board/crafty/Manifest
new file mode 100644
index 000000000000..99d970ef4ff8
--- /dev/null
+++ b/games-board/crafty/Manifest
@@ -0,0 +1,4 @@
+MD5 f38e5eac5da4190272d211e5f841e542 ChangeLog 936
+MD5 c3d8d47d95c59e404a11a1ca49234637 crafty-19.1.ebuild 2289
+MD5 1cfc5524de1fd69ae391d434d6e483d9 files/crafty-18.15-ppc.patch 634
+MD5 cf2bf7fa0aa2a30369f35f79bbc0f44a files/digest-crafty-19.1 63
diff --git a/games-board/crafty/crafty-19.1.ebuild b/games-board/crafty/crafty-19.1.ebuild
new file mode 100644
index 000000000000..1e1e8cb2a9ac
--- /dev/null
+++ b/games-board/crafty/crafty-19.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-19.1.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+DESCRIPTION="chess engine"
+SRC_URI="ftp://ftp.cis.uab.edu/pub/hyatt/v19/${P}.tar.gz"
+HOMEPAGE="ftp://ftp.cis.uab.edu/pub/hyatt/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc"
+IUSE="icc"
+
+DEPEND="virtual/glibc
+ icc? ( >=dev-lang/icc-5.0 )"
+RDEPEND="virtual/glibc"
+
+S="${WORKDIR}"
+
+src_compile() {
+ local makeopts opt
+
+ makeopts="${makeopts} CC=gcc CXX=g++ target=LINUX"
+
+ mv Makefile Makefile.bak
+ sed "/-o crafty/s/CC/CXX/" Makefile.bak > Makefile
+
+ if use icc; then
+
+ makeopts="${makeopts} CC=icc CXX=gcc"
+
+ CFLAGS="-D_REENTRANT -O2 -fno-alias -tpp6"
+ CFLAGS="${CFLAGS} -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT"
+
+ CXFLAGS="-Wall -pipe -D_REENTRANT -march=i686 -O"
+ CXFLAGS="${CXFLAGS} -Wall -fforce-mem -fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2"
+
+ makeopts="${makeopts} asm=X86-elf.o"
+
+ else
+
+ if test "${CHOST}" = "i686-pc-linux-gnu" -o "${CHOST}" = "i586-pc-linux-gnu";
+ then
+
+ # i586/i686 enhancements
+
+ CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} -fforce-mem -fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2"
+ makeopts="${makeopts} asm=X86-elf.o"
+ CFLAGS="${CFLAGS} -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT"
+
+ else
+
+ # fallback
+
+ # let everything as is, is wont be optimized, but compile will hopefully work
+
+ # not tested for ppc until now
+
+ makeopts="${makeopts}"
+ fi
+ fi
+
+ #added patch to close bug #5392 - Gerk
+ [ ${ARCH} = "ppc" ] && patch -p0 < ${FILESDIR}/crafty-18.15-ppc.patch
+
+ make ${makeopts} CXX=g++ crafty-make || die
+}
+
+src_install() {
+ dobin crafty
+}
+
+pkg_postinstall() {
+ einfo
+ einfo "Note: No books or tablebases have been installed. If you want them, just"
+ einfo " download them from ${HOMEPAGE}."
+ einfo " You will find documentation there too. In most cases you take now "
+ einfo " your xboard compatible application, (xboard, eboard, knights) and "
+ einfo " just play chess against computer opponent. Have fun."
+ einfo
+}
diff --git a/games-board/crafty/files/crafty-18.15-ppc.patch b/games-board/crafty/files/crafty-18.15-ppc.patch
new file mode 100644
index 000000000000..f53cc94b130e
--- /dev/null
+++ b/games-board/crafty/files/crafty-18.15-ppc.patch
@@ -0,0 +1,24 @@
+--- utility.c.orig Thu May 23 19:02:28 2002
++++ utility.c Fri Aug 2 22:29:49 2002
+@@ -1159,12 +1159,18 @@
+ }
+
+ void Print(int vb, char *fmt, ...) {
+- va_list ap;
++ va_list ap, ap2;
+ va_start(ap,fmt);
++ #ifdef __va_copy
++ __va_copy(ap2, ap);
++ #else
++ /* FIXME: C99 has va_copy() - test for C99 and use it if present */
++ ap2 = ap;
++ #endif
+ if (vb&display_options) vprintf(fmt, ap);
+ fflush(stdout);
+ if (time_limit>99 || tc_time_remaining>6000 || vb==4095) {
+- if (log_file) vfprintf(log_file, fmt, ap);
++ if (log_file) vfprintf(log_file, fmt, ap2);
+ if (log_file) fflush(log_file);
+ }
+ va_end(ap);
+
diff --git a/games-board/crafty/files/digest-crafty-19.1 b/games-board/crafty/files/digest-crafty-19.1
new file mode 100644
index 000000000000..f0c8dea8d6fb
--- /dev/null
+++ b/games-board/crafty/files/digest-crafty-19.1
@@ -0,0 +1 @@
+MD5 cefc2987cc3e1f1837d7a4fd7e543535 crafty-19.1.tar.gz 370843