summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-08-27 02:45:19 +0000
committerMike Frysinger <vapier@gentoo.org>2004-08-27 02:45:19 +0000
commita8d9fe15a0b286da4fbc60a9d6a9fd2e162275e6 (patch)
treedcaa883631ba7af43d6854a8584b0fef31259d08 /games-fps
parentia64 KEYWORDS (diff)
downloadhistorical-a8d9fe15a0b286da4fbc60a9d6a9fd2e162275e6.tar.gz
historical-a8d9fe15a0b286da4fbc60a9d6a9fd2e162275e6.tar.bz2
historical-a8d9fe15a0b286da4fbc60a9d6a9fd2e162275e6.zip
patch to fix big endians #61529
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/duke3d/ChangeLog6
-rw-r--r--games-fps/duke3d/Manifest27
-rw-r--r--games-fps/duke3d/duke3d-20040817.ebuild3
-rw-r--r--games-fps/duke3d/files/20040817-endian.patch26
4 files changed, 52 insertions, 10 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/Manifest b/games-fps/duke3d/Manifest
index f84382f89798..caedcf3588cd 100644
--- a/games-fps/duke3d/Manifest
+++ b/games-fps/duke3d/Manifest
@@ -1,14 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 8bb821d675a41ee8f106e01127b26cb9 ChangeLog 2570
MD5 4f8ea93527f1b7723438a4d1a207030b duke3d-20030817-r1.ebuild 2783
-MD5 c8b1084f78251380ddfd27ceee398025 ChangeLog 2385
-MD5 ff3612009ecb9e3b0c056792163f3f7f duke3d-20040817.ebuild 2802
MD5 3a1f336e4cfd9b74bc9bacb21ea0b300 metadata.xml 2684
-MD5 d9b4e6eca1f10d7502ce7c8b360ba16b files/network.cfg 398
-MD5 b5f62f5d9c612de0355e3ca3db6c5875 files/20040817-gcc34.patch 1886
-MD5 6ba6bae3aa96076fbb7dc72e06d93d3d files/20040817-credits.patch 1267
-MD5 7c4ac6336d128a410fc4fb603ad8b8c7 files/20030817-duke3d-makefile-opts.patch 864
+MD5 96f0a5a28d2d7e6c7d6d3a2d6e888467 duke3d-20040817.ebuild 2839
MD5 f61d663b18e338844d9bdab8cd8a113d files/20030817-buildengine-makefile-cflags.patch 523
+MD5 7c4ac6336d128a410fc4fb603ad8b8c7 files/20030817-duke3d-makefile-opts.patch 864
+MD5 73621a8c90765f4722208283a01319f7 files/digest-duke3d-20030817-r1 66
MD5 ccf71074bb15e3a511194a887a3a7040 files/duke3d.cfg 4314
-MD5 50643150138fd99d9cfb2ed68df15e7d files/20040817-duke3d-makefile-opts.patch 863
+MD5 d9b4e6eca1f10d7502ce7c8b360ba16b files/network.cfg 398
MD5 dfe6b67444e51a0fa3ff5c5bf76261d8 files/20030817-credits.patch 1273
MD5 7c796eee05f2a392dd0449339bc37804 files/digest-duke3d-20040817 69
-MD5 73621a8c90765f4722208283a01319f7 files/digest-duke3d-20030817-r1 66
+MD5 6ba6bae3aa96076fbb7dc72e06d93d3d files/20040817-credits.patch 1267
+MD5 50643150138fd99d9cfb2ed68df15e7d files/20040817-duke3d-makefile-opts.patch 863
+MD5 b5f62f5d9c612de0355e3ca3db6c5875 files/20040817-gcc34.patch 1886
+MD5 8832de2aa57847fefffa6b1f0695603f files/20040817-endian.patch 772
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBLqBFHTu7gpaalycRAhbvAKCFFwQEzJXCiIGbDUu+o1sWyj2k0ACgxmcK
+NC9CfEZENgkOu+rKlQfDn+o=
+=BT+u
+-----END PGP SIGNATURE-----
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. */