2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchurl, libGLU_combined, glew, pkgconfig, openalSoft, freealut, wxGTK, libogg
|
2015-09-05 19:10:19 +01:00
|
|
|
, freetype, libvorbis, fftwSinglePrec, SDL, SDL_net, expat, libjpeg, libpng }:
|
2009-04-16 23:50:36 +01:00
|
|
|
|
2015-09-05 19:10:19 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "44";
|
|
|
|
name = "scorched3d-${version}";
|
2009-04-16 23:50:36 +01:00
|
|
|
src = fetchurl {
|
2015-09-05 19:10:19 +01:00
|
|
|
url = "mirror://sourceforge/scorched3d/Scorched3D-${version}-src.tar.gz";
|
|
|
|
sha256 = "1fldi9pn7cz6hc9h70pacgb7sbykzcac44yp3pkhn0qh4axj10qw";
|
2009-04-16 23:50:36 +01:00
|
|
|
};
|
|
|
|
|
2011-09-19 06:17:00 +01:00
|
|
|
buildInputs =
|
2018-02-24 13:12:44 +00:00
|
|
|
[ libGLU_combined glew openalSoft freealut wxGTK libogg freetype libvorbis
|
2016-05-11 14:29:13 +01:00
|
|
|
SDL SDL_net expat libjpeg libpng fftwSinglePrec
|
2015-09-05 19:10:19 +01:00
|
|
|
];
|
2009-04-16 23:50:36 +01:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2009-04-16 23:50:36 +01:00
|
|
|
|
2017-09-08 14:08:00 +01:00
|
|
|
patches = [
|
|
|
|
./file-existence.patch
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch?id=1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d";
|
|
|
|
sha256 = "1farmjxbc2wm4scsdbdnvh29fipnb6mp6z85hxz4bx6n9kbc8y7n";
|
|
|
|
})
|
|
|
|
];
|
2009-04-16 23:50:36 +01:00
|
|
|
|
2011-09-19 06:17:00 +01:00
|
|
|
sourceRoot = "scorched";
|
|
|
|
|
2016-04-16 17:51:13 +01:00
|
|
|
configureFlags = [ "--with-fftw=${fftwSinglePrec.dev}" ];
|
2011-09-19 06:17:00 +01:00
|
|
|
|
2015-09-05 19:10:19 +01:00
|
|
|
NIX_LDFLAGS = [ "-lopenal" ];
|
2009-04-16 23:50:36 +01:00
|
|
|
|
2015-09-05 19:10:19 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://scorched3d.co.uk/;
|
2009-04-16 23:50:36 +01:00
|
|
|
description = "3D Clone of the classic Scorched Earth";
|
2015-09-05 19:10:19 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux; # maybe more
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2009-04-16 23:50:36 +01:00
|
|
|
};
|
|
|
|
}
|