2017-12-25 18:46:12 -08:00
|
|
|
{ stdenv, fetchurl, nasm
|
2019-11-10 08:44:34 -08:00
|
|
|
, alsaLib, curl, flac, fluidsynth, freetype, libjpeg, libmad, libmpeg2, libogg, libvorbis, libGLU, libGL, SDL2, zlib
|
2017-06-28 08:18:11 -07:00
|
|
|
}:
|
2006-08-08 16:39:03 -07:00
|
|
|
|
2014-05-03 02:27:12 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "scummvm";
|
2020-09-26 02:35:18 -07:00
|
|
|
version = "2.2.0";
|
2016-08-03 13:32:34 -07:00
|
|
|
|
2006-08-08 16:39:03 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "http://scummvm.org/frs/scummvm/${version}/${pname}-${version}.tar.xz";
|
2020-09-26 02:35:18 -07:00
|
|
|
sha256 = "FGllflk72Ky8+sC4ObCG9kDr8SBjPpPxFsq2UrWyc4c=";
|
2007-05-03 08:24:13 -07:00
|
|
|
};
|
|
|
|
|
2017-12-18 01:56:37 -08:00
|
|
|
nativeBuildInputs = [ nasm ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 08:44:34 -08:00
|
|
|
alsaLib curl freetype flac fluidsynth libjpeg libmad libmpeg2 libogg libvorbis libGLU libGL SDL2 zlib
|
2017-12-18 01:56:37 -08:00
|
|
|
];
|
|
|
|
|
2019-10-12 13:13:08 -07:00
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2017-12-18 01:56:37 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-07-23 14:18:39 -07:00
|
|
|
configurePlatforms = [ "host" ];
|
2017-12-18 01:56:37 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-c++11"
|
|
|
|
"--enable-release"
|
|
|
|
];
|
2016-08-03 13:32:34 -07:00
|
|
|
|
2018-07-23 14:18:39 -07:00
|
|
|
# They use 'install -s', that calls the native strip instead of the cross
|
|
|
|
postConfigure = ''
|
2018-08-01 07:12:05 -07:00
|
|
|
sed -i "s/-c -s/-c -s --strip-program=''${STRIP@Q}/" ports.mk
|
2018-07-23 14:18:39 -07:00
|
|
|
'';
|
2010-08-11 13:14:25 -07:00
|
|
|
|
2017-12-18 01:56:37 -08:00
|
|
|
meta = with stdenv.lib; {
|
2007-05-03 08:24:13 -07:00
|
|
|
description = "Program to run certain classic graphical point-and-click adventure games (such as Monkey Island)";
|
2020-04-03 14:07:56 -07:00
|
|
|
homepage = "https://www.scummvm.org/";
|
2017-12-18 01:56:37 -08:00
|
|
|
license = licenses.gpl2;
|
2017-12-18 07:44:06 -08:00
|
|
|
maintainers = [ maintainers.peterhoeg ];
|
2017-12-18 01:56:37 -08:00
|
|
|
platforms = platforms.linux;
|
2006-08-08 16:39:03 -07:00
|
|
|
};
|
|
|
|
}
|