diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-08-27 02:45:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-08-27 02:45:19 +0000 |
commit | ae15f397e4b9c4e069e3e1e5a52749f2167678d2 (patch) | |
tree | c107a26f2be307ef7cb7ce1689ee2c8b0d058a48 /games-fps | |
parent | ia64 KEYWORDS (Manifest recommit) (diff) | |
download | gentoo-2-ae15f397e4b9c4e069e3e1e5a52749f2167678d2.tar.gz gentoo-2-ae15f397e4b9c4e069e3e1e5a52749f2167678d2.tar.bz2 gentoo-2-ae15f397e4b9c4e069e3e1e5a52749f2167678d2.zip |
patch to fix big endians #61529
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/duke3d/ChangeLog | 6 | ||||
-rw-r--r-- | games-fps/duke3d/duke3d-20040817.ebuild | 3 | ||||
-rw-r--r-- | games-fps/duke3d/files/20040817-endian.patch | 26 |
3 files changed, 33 insertions, 2 deletions
diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog index ba8c9a6b4a8b..0049a6a131be 100644 --- a/games-fps/duke3d/ChangeLog +++ b/games-fps/duke3d/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/duke3d # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.16 2004/08/22 14:06:25 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.17 2004/08/27 02:45:19 vapier Exp $ + + 26 Aug 2004; Mike Frysinger <vapier@gentoo.org> duke3d-20040817.ebuild + +files/20040817-endian.patch: + Add a patch to fix running on big endian systems #61529 by Maciej J. Woloszyk. 22 Aug 2004; Tony Vroon <chainsaw@gentoo.org> +files/20040817-gcc34.patch, duke3d-20040817.ebuild: diff --git a/games-fps/duke3d/duke3d-20040817.ebuild b/games-fps/duke3d/duke3d-20040817.ebuild index b007027118c0..525dbe08ba70 100644 --- a/games-fps/duke3d/duke3d-20040817.ebuild +++ b/games-fps/duke3d/duke3d-20040817.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20040817.ebuild,v 1.2 2004/08/22 14:06:25 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20040817.ebuild,v 1.3 2004/08/27 02:45:19 vapier Exp $ fromcvs=0 ECVS_MODULE="duke3d" @@ -55,6 +55,7 @@ src_unpack() { -e 's:/usr/lib/perl5/i386-linux/CORE/libperl.a::' \ Makefile \ || die "sed build Makefile failed" + epatch ${FILESDIR}/${PV}-endian.patch # configure duke3d cd ${S}/source diff --git a/games-fps/duke3d/files/20040817-endian.patch b/games-fps/duke3d/files/20040817-endian.patch new file mode 100644 index 000000000000..a22d07fb09f1 --- /dev/null +++ b/games-fps/duke3d/files/20040817-endian.patch @@ -0,0 +1,26 @@ +--- duke3d/source/buildengine/platform.h 2003-08-07 12:06:17.000000000 +0200 ++++ duke3d.new/source/buildengine/platform.h 2004-08-24 18:35:05.292291088 +0200 +@@ -5,6 +5,7 @@ + #include "win32_compat.h" + #elif (defined PLATFORM_UNIX) + #include "unix_compat.h" ++#include <endian.h> + #elif (defined PLATFORM_DOS) + #include "doscmpat.h" + #else +@@ -60,9 +61,15 @@ + #define BUILDSWAP_INTEL16(x) _swap16(x) + #define BUILDSWAP_INTEL32(x) _swap32(x) + #else ++#if __BYTE_ORDER == __LITTLE_ENDIAN + #define PLATFORM_LITTLEENDIAN 1 + #define BUILDSWAP_INTEL16(x) (x) + #define BUILDSWAP_INTEL32(x) (x) ++#else ++#define PLATFORM_BIGENDIAN 1 ++#define BUILDSWAP_INTEL16(x) _swap16(x) ++#define BUILDSWAP_INTEL32(x) _swap32(x) ++#endif + #endif + + extern int has_altivec; /* PowerPC-specific. */ |