2017-06-28 15:18:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib, mesa
|
|
|
|
, hostPlatform
|
|
|
|
}:
|
2006-08-08 23:39:03 +00:00
|
|
|
|
2014-05-03 09:27:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-17 15:28:54 +00:00
|
|
|
name = "scummvm-1.9.0";
|
2016-08-03 20:32:34 +00:00
|
|
|
|
2006-08-08 23:39:03 +00:00
|
|
|
src = fetchurl {
|
2017-02-17 15:28:54 +00:00
|
|
|
url = "http://scummvm.org/frs/scummvm/1.9.0/scummvm-1.9.0.tar.bz2";
|
|
|
|
sha256 = "813d7d8a76e3d05b45001d37451368711dadc32899ecf907df1cc7abfb1754d2";
|
2007-05-03 15:24:13 +00:00
|
|
|
};
|
|
|
|
|
2016-08-28 07:54:22 +00:00
|
|
|
buildInputs = [ SDL zlib libmpeg2 libmad libogg libvorbis flac alsaLib mesa ];
|
2007-05-03 15:24:13 +00:00
|
|
|
|
2016-08-03 20:32:34 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2010-08-11 20:14:25 +00:00
|
|
|
crossAttrs = {
|
|
|
|
preConfigure = ''
|
|
|
|
# Remove the --build flag set by the gcc cross wrapper setup
|
|
|
|
# hook
|
2017-06-28 15:18:11 +00:00
|
|
|
export configureFlags="--host=${hostPlatform.config}"
|
2010-08-11 20:14:25 +00:00
|
|
|
'';
|
|
|
|
postConfigure = ''
|
|
|
|
# They use 'install -s', that calls the native strip instead of the cross
|
|
|
|
sed -i 's/-c -s/-c/' ports.mk;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2007-05-03 15:24:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "Program to run certain classic graphical point-and-click adventure games (such as Monkey Island)";
|
|
|
|
homepage = http://www.scummvm.org/;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2006-08-08 23:39:03 +00:00
|
|
|
};
|
|
|
|
}
|
2011-09-23 02:23:05 +00:00
|
|
|
|