2013-10-25 12:12:31 +01:00
|
|
|
{ stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib
|
2019-05-28 20:09:34 +01:00
|
|
|
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
|
2019-02-03 15:30:37 +00:00
|
|
|
, openglSupport ? libGLSupported, libGLU_combined ? null
|
2013-10-25 12:12:31 +01:00
|
|
|
}:
|
|
|
|
|
2018-02-24 13:12:44 +00:00
|
|
|
assert openglSupport -> libGLU_combined != null;
|
2013-10-25 12:12:31 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.1.1";
|
|
|
|
name = "residualvm-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/residualvm/residualvm-${version}-sources.tar.bz2";
|
|
|
|
sha256 = "99c419b13885a49bdfc10a50a3a6000fd1ba9504f6aae04c74b840ec6f57a963";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ stdenv SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib ]
|
2018-02-24 13:12:44 +00:00
|
|
|
++ optional openglSupport libGLU_combined;
|
2013-10-25 12:12:31 +01:00
|
|
|
|
2016-10-01 21:47:19 +01:00
|
|
|
configureFlags = [ "--enable-all-engines" ];
|
2013-10-25 12:12:31 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Interpreter for LucasArts' Lua-based 3D adventure games";
|
|
|
|
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 12:12:31 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|