2018-02-24 14:12:44 +01:00
|
|
|
{stdenv, fetchsvn, SDL, libGLU_combined, openal, libvorbis, freealut, SDL_image, popt}:
|
2010-07-08 20:06:01 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "blackshades-elite-svn-29";
|
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://svn.gna.org/svn/blackshadeselite/trunk;
|
|
|
|
rev = 29;
|
|
|
|
sha256 = "1lkws5pqpgcgdlar11waikp6y41z678457n9jcik7nhn53cjjr1s";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lSDL_image";
|
2012-07-02 21:40:14 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
2010-07-08 20:06:01 +02:00
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ SDL SDL_image libGLU_combined openal libvorbis freealut popt ];
|
2010-07-08 20:06:01 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,Data/,$out/opt/$name/Data/,g \
|
|
|
|
-e s,Data:,$out/opt/$name/Data/,g \
|
|
|
|
Source/*.cpp
|
|
|
|
sed -i -e s/-march=pentium-m// Makefile
|
|
|
|
sed -i -e '/include "Window.h"/a#include <cstring>' -e 's/strcmp/std::strcmp/' \
|
|
|
|
Source/Window.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/opt/$name
|
2010-07-08 20:06:01 +02:00
|
|
|
cp objs/blackshades $out/bin/blackshadeselite
|
|
|
|
cp -R Data IF* Readme $out/opt/$name/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://home.gna.org/blackshadeselite/;
|
|
|
|
description = "Fork of Black Shades";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus; # Says its gna.org project page
|
2010-07-08 20:06:01 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|