2013-10-25 11:12:31 +00:00
|
|
|
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
2019-05-28 19:09:34 +00:00
|
|
|
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
|
2019-11-10 16:44:34 +00:00
|
|
|
, openglSupport ? libGLSupported, libGLU, libGL ? null
|
2013-10-25 11:12:31 +00:00
|
|
|
}:
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
assert openglSupport -> libGL != null && libGLU != null;
|
2013-10-25 11:12:31 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.1.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "residualvm";
|
2013-10-25 11:12:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/residualvm/residualvm-${version}-sources.tar.bz2";
|
|
|
|
sha256 = "99c419b13885a49bdfc10a50a3a6000fd1ba9504f6aae04c74b840ec6f57a963";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
2019-11-10 16:44:34 +00:00
|
|
|
++ optionals openglSupport [ libGL libGLU ];
|
2013-10-25 11:12:31 +00:00
|
|
|
|
2016-10-01 20:47:19 +00:00
|
|
|
configureFlags = [ "--enable-all-engines" ];
|
2013-10-25 11:12:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Interpreter for LucasArts' Lua-based 3D adventure games";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://residualvm.org/";
|
|
|
|
repositories.git = "https://github.com/residualvm/residualvm.git";
|
2017-12-05 22:20:11 +00:00
|
|
|
license = licenses.gpl2;
|
2013-10-25 11:12:31 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|