Adding the pacman-like game njam.

svn path=/nixpkgs/trunk/; revision=26553
This commit is contained in:
Lluís Batlle i Rossell 2011-03-27 20:35:08 +00:00
parent a602209a6b
commit 723fce8d57
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }:
stdenv.mkDerivation rec {
name = "njam-1.25";
src = fetchurl {
url = mirror://sourceforge/njam/njam-1.25-src.tar.gz;
sha256 = "0ysvqw017xkvddj957pdfmbmji7qi20nyr7f0zxvcvm6c7d3cc7s";
};
preBuild = ''
rm src/*.o
'';
buildInputs = [ SDL SDL_image SDL_mixer SDL_net ];
patches = [ ./logfile.patch ];
meta = {
homepage = http://trackballs.sourceforge.net/;
description = "Cross-platform pacman-like game";
license = "GPLv2+";
};
}

View file

@ -0,0 +1,22 @@
diff --git a/src/njamedit.cpp b/src/njamedit.cpp
index a895ca9..38477db 100644
--- a/src/njamedit.cpp
+++ b/src/njamedit.cpp
@@ -114,7 +114,7 @@ void NjamEngine::LevelEditor()
key = SDLK_a;
else if (CheckForSave())
{
- LogFile::LogFile("Saving maps");
+ LogFile("Saving maps");
m_Maps.Save(filename);
level_type_was = level_type;
changed = false;
@@ -139,7 +139,7 @@ void NjamEngine::LevelEditor()
"levels/%s.%s",
#endif
filename, types[level_type]);
- LogFile::LogFile("Saving maps");
+ LogFile("Saving maps");
m_Maps.Save(buf);
level_type_was = level_type;
changed = false;

View file

@ -7096,6 +7096,8 @@ let
micropolis = callPackage ../games/micropolis { };
njam = callPackage ../games/njam { };
openttd = callPackage ../games/openttd {
zlib = zlibStatic;
};