2010-11-13 07:47:04 +00:00
|
|
|
{ stdenv, fetchurl, cmake, lzma, boost, libdevil, zlib, p7zip
|
2012-03-27 12:07:53 +01:00
|
|
|
, openal, libvorbis, glew, freetype, xlibs, SDL, mesa, binutils
|
2010-11-13 07:47:04 +00:00
|
|
|
, jdk ? null, python ? null
|
|
|
|
, withAI ? true # support for AI Interfaces and Skirmish AIs
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "spring-${version}";
|
2012-10-28 13:43:15 +00:00
|
|
|
version = "0.91.0";
|
2010-11-13 07:47:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-28 13:43:15 +00:00
|
|
|
url = "mirror://sourceforge/springrts/spring_91.0_src.tar.lzma";
|
|
|
|
sha256 = "0ycn9yxpbw58a8p3j3wf3r0x102k665l27bfp1vxq7kpwlk6314l";
|
2010-11-13 07:47:04 +00: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 18:35:23 +00:00
|
|
|
--replace "which" "type -p"
|
2010-11-13 07:47:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://springrts.com/;
|
|
|
|
description = "A powerful real-time strategy(RTS) game engine";
|
|
|
|
license = licenses.gpl2;
|
2012-03-12 15:11:37 +00:00
|
|
|
maintainers = [ maintainers.phreedom maintainers.qknight ];
|
2011-12-11 18:35:23 +00:00
|
|
|
platforms = platforms.unix;
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
2011-12-11 18:35:23 +00:00
|
|
|
}
|