2012-02-13 23:34:39 +04:00
|
|
|
{ stdenv, fetchurl, zlib, bzip2, pkgconfig
|
|
|
|
, sdlClient ? true, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx, freetype
|
|
|
|
, gtkClient ? false, gtk
|
|
|
|
, server ? true, readline }:
|
2011-08-20 18:30:16 +04:00
|
|
|
|
2012-02-13 23:34:39 +04:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optional optionals;
|
|
|
|
client = sdlClient || gtkClient;
|
|
|
|
in
|
2011-08-20 18:30:16 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-13 23:34:35 +04:00
|
|
|
name = "freeciv-2.3.1";
|
2011-08-20 18:30:16 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-13 23:34:35 +04:00
|
|
|
url = "mirror://sourceforge/freeciv/${name}.tar.bz2";
|
|
|
|
sha256 = "1n3ak0y9hj9kha0r3cdbi8zb47vrgal1jsbblamqgwwwgzy8cri3";
|
2011-08-20 18:30:16 +04:00
|
|
|
};
|
|
|
|
|
2012-02-13 23:34:39 +04:00
|
|
|
buildNativeInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib bzip2 ]
|
|
|
|
++ optionals sdlClient [ SDL SDL_mixer SDL_image SDL_ttf SDL_gfx freetype ]
|
|
|
|
++ optional gtkClient gtk
|
|
|
|
++ optional server readline;
|
2011-08-20 18:30:16 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "multiplayer (or single player), turn-based strategy game.";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Freeciv is a Free and Open Source empire-building strategy game
|
|
|
|
inspired by the history of human civilization. The game commences in
|
|
|
|
prehistory and your mission is to lead your tribe from the stone age
|
|
|
|
to the space age...
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://freeciv.wikia.com/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
|
|
|
maintainers = with maintainers; [ pierron ];
|
2011-08-21 19:36:25 +04:00
|
|
|
platforms = with platforms; linux;
|
2011-08-20 18:30:16 +04:00
|
|
|
};
|
|
|
|
}
|