diff options
author | Joseph Jezak <josejx@gentoo.org> | 2005-05-11 19:40:47 +0000 |
---|---|---|
committer | Joseph Jezak <josejx@gentoo.org> | 2005-05-11 19:40:47 +0000 |
commit | 125702a243709c8fdce45f26970aa69c5f0f14bb (patch) | |
tree | 2b49d959f3e5d6f261b2bde504abb58821342a21 /games-arcade/blobwars | |
parent | Add patch to fix crash in chatwindow (#91423). (diff) | |
download | historical-125702a243709c8fdce45f26970aa69c5f0f14bb.tar.gz historical-125702a243709c8fdce45f26970aa69c5f0f14bb.tar.bz2 historical-125702a243709c8fdce45f26970aa69c5f0f14bb.zip |
Added endian patch for pak file generation, bug #92259.
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'games-arcade/blobwars')
-rw-r--r-- | games-arcade/blobwars/ChangeLog | 6 | ||||
-rw-r--r-- | games-arcade/blobwars/blobwars-1.04.ebuild | 10 | ||||
-rw-r--r-- | games-arcade/blobwars/files/1.04-be_pak.diff | 32 |
3 files changed, 45 insertions, 3 deletions
diff --git a/games-arcade/blobwars/ChangeLog b/games-arcade/blobwars/ChangeLog index 16e07b1f7993..74a0a706952e 100644 --- a/games-arcade/blobwars/ChangeLog +++ b/games-arcade/blobwars/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-arcade/blobwars # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/blobwars/ChangeLog,v 1.20 2005/04/27 01:39:33 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/blobwars/ChangeLog,v 1.21 2005/05/11 19:40:47 josejx Exp $ + + 11 May 2005; Joseph Jezak <josejx@gentoo.org> +files/1.04-be_pak.diff, + blobwars-1.04.ebuild: + Added endian patch for pak file generation, bug #92259. *blobwars-1.04 (27 Apr 2005) diff --git a/games-arcade/blobwars/blobwars-1.04.ebuild b/games-arcade/blobwars/blobwars-1.04.ebuild index a0d84ae8465f..bbf3e5ad7793 100644 --- a/games-arcade/blobwars/blobwars-1.04.ebuild +++ b/games-arcade/blobwars/blobwars-1.04.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/blobwars/blobwars-1.04.ebuild,v 1.1 2005/04/27 01:39:33 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/blobwars/blobwars-1.04.ebuild,v 1.2 2005/05/11 19:40:47 josejx Exp $ -inherit games +inherit eutils games DESCRIPTION="Platform game about a blob and his quest to rescue MIAs from an alien invader" HOMEPAGE="http://www.parallelrealities.co.uk/blobWars.php" @@ -19,6 +19,12 @@ DEPEND=">=media-libs/libsdl-1.2.5 media-libs/sdl-ttf media-libs/sdl-image" +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-be_pak.diff +} + src_compile() { emake \ BINDIR="${GAMES_BINDIR}/" \ diff --git a/games-arcade/blobwars/files/1.04-be_pak.diff b/games-arcade/blobwars/files/1.04-be_pak.diff new file mode 100644 index 000000000000..def4ebe66b00 --- /dev/null +++ b/games-arcade/blobwars/files/1.04-be_pak.diff @@ -0,0 +1,32 @@ +--- src/pak.cpp.bak 2005-05-11 14:54:04.000000000 -0400 ++++ src/pak.cpp 2005-05-11 14:55:16.000000000 -0400 +@@ -200,12 +200,18 @@ + + unsigned int numberOfFiles = totalFiles; + ++ /* Make sure we've got it in LE format */ ++#if SDL_BYTEORDER == SDL_BIG_ENDIAN ++ pos = SDL_Swap32(pos); ++ numberOfFiles = SDL_Swap32(numberOfFiles); ++#endif ++ + fwrite(&pos, sizeof(unsigned int), 1, pak); + fwrite(&numberOfFiles, sizeof(unsigned int), 1, pak); + + fclose(pak); + +- printf("\nPak: All Done. Added %d files\n", numberOfFiles); ++ printf("\nPak: All Done. Added %d files\n", totalFiles); + + return 0; + } +--- src/pak.h.bak 2005-05-11 14:53:59.000000000 -0400 ++++ src/pak.h 2005-05-11 14:54:18.000000000 -0400 +@@ -20,6 +20,7 @@ + + #include "zlib.h" + #include "SDL/SDL_endian.h" ++#include "SDL/SDL_byteorder.h" + #include "CFileData.h" + + #include <dirent.h> |