Adding crack-attack

(patch sent by Piotr Pietraszkiewicz)

svn path=/nixpkgs/trunk/; revision=23987
This commit is contained in:
Lluís Batlle i Rossell 2010-09-28 22:37:27 +00:00
parent fea2d56f09
commit cecffb9df5
4 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- crack-attack-1.1.14/src/Game.h
+++ crack-attack-1.1.14/src/Game.h
@@ -34,6 +34,7 @@
#include <climits>
#include <cstdlib>
#include <cmath>
+#include <cstring>
#ifdef __MINGW32__
# include <windows.h>

View File

@ -0,0 +1,10 @@
--- crack-attack-1.1.14/src/Attack.cxx
+++ crack-attack-1.1.14/src/Attack.cxx
@@ -83,6 +83,7 @@
int height = -1, width = -1;
player_name[0] = '\0';
+ glutInit(&argc, argv);
parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width);
run_crack_attack(mode, port, host_name, player_name, height, width);

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, pkgconfig, gtk, freeglut, SDL, mesa, libXi, libXmu}:
stdenv.mkDerivation {
name = "crack-attack-1.1.14";
src = fetchurl {
url = mirror://savannah/crack-attack/crack-attack-1.1.14.tar.gz;
sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm";
};
buildInputs =
[
pkgconfig gtk freeglut SDL mesa libXi libXmu
];
meta = {
description = "A fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!";
homepage = http://www.nongnu.org/crack-attack/;
license = "GPLv2";
platforms = stdenv.lib.platforms.linux;
};
patches = [
./crack-attack-1.1.14-gcc43.patch
./crack-attack-1.1.14-glut.patch
];
}

View File

@ -6436,6 +6436,8 @@ let
inherit mesa freeglut;
};
crack_attack = callPackage ../games/crack-attack { };
eduke32 = callPackage ../games/eduke32 { };
egoboo = callPackage ../games/egoboo { };