2017-11-29 08:26:27 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
|
|
|
, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis }:
|
2010-08-01 15:14:33 +00:00
|
|
|
|
2010-08-01 14:24:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-11-29 08:26:27 +00:00
|
|
|
name = "gemrb-${version}";
|
|
|
|
version = "0.8.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gemrb";
|
|
|
|
repo = "gemrb";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xkjsiawxz53rac26vqz9sfgva0syff8x8crabrpbpxgmbacih7a";
|
2007-05-14 21:47:11 +00:00
|
|
|
};
|
|
|
|
|
2014-08-24 14:50:59 +00:00
|
|
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
|
2017-11-29 08:26:27 +00:00
|
|
|
buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis ];
|
2007-05-14 21:47:11 +00:00
|
|
|
|
2017-11-29 08:26:27 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2010-08-01 14:24:46 +00:00
|
|
|
|
2017-11-29 08:26:27 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-08-01 14:24:46 +00:00
|
|
|
|
2017-11-29 08:26:27 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLAYOUT=opt"
|
|
|
|
];
|
2014-08-24 14:50:59 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
2014-08-24 14:50:59 +00:00
|
|
|
longDescription = ''
|
2017-11-29 08:26:27 +00:00
|
|
|
GemRB (Game engine made with pre-Rendered Background) is a portable
|
|
|
|
open-source implementation of Bioware's Infinity Engine. It was written to
|
|
|
|
support pseudo-3D role playing games based on the Dungeons & Dragons
|
|
|
|
ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
|
2014-08-24 14:50:59 +00:00
|
|
|
'';
|
|
|
|
homepage = http://gemrb.org/;
|
|
|
|
license = licenses.gpl2;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2017-11-29 08:26:27 +00:00
|
|
|
platforms = platforms.all;
|
2007-05-14 21:47:11 +00:00
|
|
|
};
|
|
|
|
}
|