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