2010-11-13 08:47:04 +01:00
|
|
|
{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
|
|
|
|
, openal, libvorbis, glew, freetype, xlibs, SDL, mesa
|
|
|
|
, jdk ? null, python ? null
|
|
|
|
, withAI ? true # support for AI Interfaces and Skirmish AIs
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "spring-${version}";
|
2012-03-02 00:14:14 +01:00
|
|
|
version = "0.86.0";
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-03-02 00:14:14 +01:00
|
|
|
url = "mirror://sourceforge/springrts/spring_86.0_src.tar.lzma";
|
|
|
|
sha256 = "728bc95ac551d2199539f9ec9a79254ebd4414e6aa81e03a6c4534cec61f7bca";
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL
|
|
|
|
xlibs.libX11 xlibs.libXcursor mesa glew ]
|
|
|
|
++ stdenv.lib.optional withAI jdk
|
|
|
|
++ stdenv.lib.optional withAI python;
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace cont/base/make_gamedata_arch.sh --replace "#!/bin/sh" "#!${stdenv.shell}/bin/sh" \
|
2011-12-11 19:35:23 +01:00
|
|
|
--replace "which" "type -p"
|
2010-11-13 08:47:04 +01:00
|
|
|
'';
|
|
|
|
|
2011-11-12 17:51:44 +01:00
|
|
|
#patches = [ ./gcc44.patch];
|
2010-11-13 08:47:04 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springrts.com/;
|
|
|
|
description = "A powerful real-time strategy(RTS) game engine";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
2011-12-11 19:35:23 +01:00
|
|
|
platforms = platforms.unix;
|
2010-11-13 08:47:04 +01:00
|
|
|
};
|
2011-12-11 19:35:23 +01:00
|
|
|
}
|