2009-04-17 00:50:36 +02:00
|
|
|
{stdenv, fetchurl, mesa, openal, autoconf, automake, libtool, freealut, wxGTK,
|
2011-09-19 07:17:00 +02:00
|
|
|
freetype, fftwSinglePrec, SDL, SDL_net, zlib, libpng, libjpeg, pkgconfig, libogg,
|
|
|
|
libvorbis} :
|
2009-04-17 00:50:36 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-09-19 07:17:00 +02:00
|
|
|
name = "scorched3d-43.2a";
|
2009-04-17 00:50:36 +02:00
|
|
|
src = fetchurl {
|
2011-09-19 07:17:00 +02:00
|
|
|
url = mirror://sourceforge/scorched3d/Scorched3D-43.2a-src.tar.gz;
|
|
|
|
sha256 = "1hv1mnfb7y51hqmg95l8rx00j66ff32ddxxi5zgfyw92hsvahgxi";
|
2009-04-17 00:50:36 +02:00
|
|
|
};
|
|
|
|
|
2011-09-19 07:17:00 +02:00
|
|
|
buildInputs =
|
|
|
|
[ mesa openal freealut wxGTK freetype fftwSinglePrec SDL_net zlib libpng libjpeg
|
|
|
|
libogg libvorbis ];
|
2009-04-17 00:50:36 +02:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2009-04-17 00:50:36 +02:00
|
|
|
|
2011-09-19 07:17:00 +02:00
|
|
|
patches = [ ./file-existence.patch ];
|
2009-04-17 00:50:36 +02:00
|
|
|
|
2011-09-19 07:17:00 +02:00
|
|
|
sourceRoot = "scorched";
|
|
|
|
|
|
|
|
configureFlags = "--with-fftw=${fftwSinglePrec}";
|
|
|
|
|
|
|
|
# Fake openal-config
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
mkdir -pv mybin
|
|
|
|
export PATH=$PATH:$PWD/mybin
|
|
|
|
echo -e "#!/bin/sh\npkg-config openal \"$@\"" > mybin/openal-config
|
|
|
|
chmod +x mybin/openal-config
|
|
|
|
'';
|
2009-04-17 00:50:36 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://scorched3d.co.uk/;
|
|
|
|
description = "3D Clone of the classic Scorched Earth";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-04-17 00:50:36 +02:00
|
|
|
};
|
|
|
|
}
|