Fixing xmoto for x86_64-linux, taking a patch from Debian

svn path=/nixpkgs/trunk/; revision=19081
This commit is contained in:
Lluís Batlle i Rossell 2009-12-23 18:34:46 +00:00
parent 3d9eb6a76a
commit 660203213f
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,12 @@
From debian: https://launchpad.net/ubuntu/karmic/+source/xmoto/0.5.2-2
--- a/src/Replay.cpp
+++ b/src/Replay.cpp
@@ -156,7 +156,7 @@
v_replay.writeBuf(pcData, nDataSize);
/* Chunks */
- v_replay << m_Chunks.size();
+ v_replay << (unsigned int)m_Chunks.size();
for(unsigned int i=0;i<m_Chunks.size();i++) {
v_replay << m_Chunks[i]->nNumStates;
v_replay.writeBuf(m_Chunks[i]->pcChunkData, m_nStateSize * m_Chunks[i]->nNumStates);

View file

@ -15,7 +15,9 @@ rec {
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
phaseNames = [ "doPatch" "doConfigure" "doMakeInstall"];
patches = [ ./64bit-ftbs.patch ];
meta = {
description = "X-Moto - obstacled race game";