summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-rpg/egoboo/ChangeLog7
-rw-r--r--games-rpg/egoboo/egoboo-2.22.ebuild16
-rw-r--r--games-rpg/egoboo/files/2.22-amd64.patch12
3 files changed, 26 insertions, 9 deletions
diff --git a/games-rpg/egoboo/ChangeLog b/games-rpg/egoboo/ChangeLog
index b0b34e573a24..4a8fdbb3ed83 100644
--- a/games-rpg/egoboo/ChangeLog
+++ b/games-rpg/egoboo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-rpg/egoboo
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/ChangeLog,v 1.11 2006/03/14 04:18:53 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/ChangeLog,v 1.12 2006/03/14 20:23:43 deltacow Exp $
+
+ 14 Mar 2006; Scott Stoddard <deltacow@gentoo.org> +files/2.22-amd64.patch,
+ egoboo-2.22.ebuild:
+ Added patch to determine correct endianness for amd64 submitted by Bruno
+ Roggeri <bruno.roggeri@metz.supelec.fr> and marked ~amd64.
14 Mar 2006; Michael Sterrett <mr_bones_@gentoo.org> egoboo-2.22.ebuild:
X is implicit
diff --git a/games-rpg/egoboo/egoboo-2.22.ebuild b/games-rpg/egoboo/egoboo-2.22.ebuild
index 30f8ccff1af6..d7263e717112 100644
--- a/games-rpg/egoboo/egoboo-2.22.ebuild
+++ b/games-rpg/egoboo/egoboo-2.22.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/egoboo-2.22.ebuild,v 1.14 2006/03/14 04:18:53 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/egoboo-2.22.ebuild,v 1.15 2006/03/14 20:23:43 deltacow Exp $
inherit eutils flag-o-matic toolchain-funcs games
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/ego${PV/./}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="-* ppc x86"
+KEYWORDS="-* ~amd64 ppc x86"
IUSE=""
DEPEND="virtual/opengl
@@ -20,27 +20,27 @@ DEPEND="virtual/opengl
S=${WORKDIR}/${PN}
src_unpack() {
- replace-cpu-flags 'athlon*' pentium4 i686
+ use !amd64 && replace-cpu-flags 'athlon*' pentium4 i686
unpack ${A}
cd "${S}"
- sed -i \
- -e "/^CC=/ s:=.*:=$(tc-getCC):" \
- -e "s:-ffast-math -funroll-loops -O3 -g:${CFLAGS}:" code/Makefile \
- || die "sed code/Makefile failed"
sed \
-e "s:GENTOODIR:${GAMES_DATADIR}:" "${FILESDIR}/${P}.sh" \
> "${T}/egoboo" || die "sed wrapper failed"
# Fix endianess using SDL
epatch ${FILESDIR}/${PV}-endian.patch
+
+ # amd64 patch must be applied after ${PV}-endian.patch
+ # this addresses bug #104271
+ epatch ${FILESDIR}/${PV}-amd64.patch
}
src_compile() {
cd code
make clean || die "make clean failed"
- emake egoboo || die "emake failed"
+ emake FLAGS="-D_LINUX ${CFLAGS}" CC="$(tc-getCC)" egoboo || die "emake failed"
}
src_install () {
diff --git a/games-rpg/egoboo/files/2.22-amd64.patch b/games-rpg/egoboo/files/2.22-amd64.patch
new file mode 100644
index 000000000000..5e3ea57a0c1a
--- /dev/null
+++ b/games-rpg/egoboo/files/2.22-amd64.patch
@@ -0,0 +1,12 @@
+diff -ur egoboo/code/egobootypedef.h egoboo.new/code/egobootypedef.h
+--- egoboo/code/egobootypedef.h 2005-08-31 18:16:26.000000000 +0200
++++ egoboo/code/egobootypedef.h 2005-08-31 18:08:12.000000000 +0200
+@@ -99,7 +99,7 @@
+ /*Return the result*/
+ return data.f;
+ }
+-#elif __i386__
++#elif defined( __i386__ ) || defined( __x86_64__ )
+ #define _LITTLE_ENDIAN
+ #else
+ #define _BIG_ENDIAN