2013-01-10 20:55:46 +01:00
|
|
|
{ fetchurl, cmake, stdenv, plib, SDL, openal, freealut, mesa
|
|
|
|
, libvorbis, libogg, gettext, libXxf86vm, curl, pkgconfig
|
|
|
|
, fribidi, autoconf, automake, libtool }:
|
2008-10-12 16:28:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-10 20:55:46 +01:00
|
|
|
name = "supertuxkart-0.8";
|
2008-10-12 16:28:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-24 00:12:27 +01:00
|
|
|
url = "mirror://sourceforge/supertuxkart/${name}-src.tar.bz2";
|
2013-01-10 20:55:46 +01:00
|
|
|
sha256 = "12sbml4wxg2x2wgnnkxfisj96a9gcsaj3fj27kdk8yj524ikv7xr";
|
2008-10-12 16:28:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2013-01-10 20:55:46 +01:00
|
|
|
plib SDL openal freealut mesa libvorbis libogg gettext
|
|
|
|
libXxf86vm curl pkgconfig fribidi autoconf automake libtool cmake
|
2008-10-12 16:28:51 +02:00
|
|
|
];
|
|
|
|
|
2013-01-10 20:55:46 +01:00
|
|
|
enableParallelBuilding = true;
|
2012-02-19 14:15:50 +01:00
|
|
|
|
2013-01-10 20:55:46 +01:00
|
|
|
preConfigure = ''
|
|
|
|
echo Building internal Irrlicht
|
|
|
|
cd lib/irrlicht/source/Irrlicht/
|
2014-03-23 22:26:08 +01:00
|
|
|
cp "${mesa}"/include/GL/{gl,glx,wgl}ext.h .
|
2013-01-10 20:55:46 +01:00
|
|
|
NDEBUG=1 make ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
|
|
|
|
cd -
|
2009-04-14 23:01:29 +02:00
|
|
|
'';
|
|
|
|
|
2008-10-12 16:28:51 +02:00
|
|
|
meta = {
|
|
|
|
description = "SuperTuxKart is a Free 3D kart racing game";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
SuperTuxKart is a Free 3D kart racing game, with many tracks,
|
|
|
|
characters and items for you to try, similar in spirit to Mario
|
|
|
|
Kart.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://supertuxkart.sourceforge.net/;
|
|
|
|
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|