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
|
|
|
|
2010-08-01 17:14:33 +02:00
|
|
|
assert stdenv.gcc.libc != null;
|
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gemrb-0.6.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";
|
|
|
|
sha256 = "1jnid5nrasy0lglnx71zkvv2p59cxsnhvagy7r8lsmjild1k5l93";
|
2007-05-14 23:47:11 +02:00
|
|
|
};
|
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
buildInputs = [ cmake python openal SDL zlib libpng libvorbis ];
|
2007-05-14 23:47:11 +02:00
|
|
|
|
2010-08-01 16:24:46 +02:00
|
|
|
# Necessary to find libdl.
|
|
|
|
CMAKE_LIBRARY_PATH = "${stdenv.gcc.libc}/lib";
|
|
|
|
|
|
|
|
# Can't have -werror because of the Vorbis header files.
|
|
|
|
cmakeFlags = "-DDISABLE_WERROR=ON -DCMAKE_VERBOSE_MAKEFILE=ON";
|
|
|
|
|
|
|
|
# !!! Ugly. CMake passes library dependencies to the linker using
|
|
|
|
# the full path of the library rather than `-l...', and the
|
|
|
|
# ld-wrapper doesn't add the necessary `-rpath' flag.
|
|
|
|
NIX_LDFLAGS = "-rpath ${zlib}/lib -rpath ${libpng}/lib -rpath ${python}/lib -rpath ${openal}/lib -rpath ${SDL}/lib -rpath ${libvorbis}/lib";
|
2007-05-14 23:47:11 +02:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
2007-05-14 23:47:11 +02:00
|
|
|
homepage = http://gemrb.sourceforge.net/;
|
|
|
|
};
|
|
|
|
}
|