2010-08-01 16:24:46 +02:00
|
|
|
{ stdenv, fetchurl, cmake, SDL, openal, zlib, libpng, python, libvorbis }:
|
2007-05-14 23:47:11 +02:00
|
|
|
|
2014-12-17 19:11:30 +01:00
|
|
|
assert stdenv.cc.libc != null;
|
2010-08-01 17:14:33 +02:00
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-08-24 17:05:02 +02:00
|
|
|
name = "gemrb-0.8.1";
|
2007-05-14 23:47:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-01 16:24:46 +02:00
|
|
|
url = "mirror://sourceforge/gemrb/${name}.tar.gz";
|
2014-08-24 17:05:02 +02:00
|
|
|
sha256 = "1g68pc0x4azy6zm5y7813g0qky96q796si9v3vafiy7sa8ph49kl";
|
2007-05-14 23:47:11 +02:00
|
|
|
};
|
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
buildInputs = [ cmake python openal SDL zlib libpng libvorbis ];
|
2014-08-24 16:50:59 +02:00
|
|
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl reqs) optional
|
2007-05-14 23:47:11 +02:00
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
# Necessary to find libdl.
|
2015-04-26 19:54:51 +02:00
|
|
|
CMAKE_LIBRARY_PATH = "${stdenv.cc.libc.out}/lib";
|
2010-08-01 16:24:46 +02:00
|
|
|
|
|
|
|
# Can't have -werror because of the Vorbis header files.
|
|
|
|
cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
|
|
|
|
|
2014-08-24 16:50:59 +02:00
|
|
|
# upstream prefers some symbols to remain
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
2014-08-24 16:50:59 +02:00
|
|
|
longDescription = ''
|
|
|
|
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).
|
|
|
|
'';
|
|
|
|
homepage = http://gemrb.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
hydraPlatforms = [];
|
2007-05-14 23:47:11 +02:00
|
|
|
};
|
|
|
|
}
|