SDL2_gfx: 5 -> nightly

This commit is contained in:
Nikolay Amiantov 2016-08-22 06:25:02 +03:00
parent 7bf7f19765
commit 231fca0b7d

View File

@ -1,30 +1,19 @@
{stdenv, fetchsvn, SDL2}: { stdenv, fetchurl, SDL2 }:
let rev = 5; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "SDL2_gfx-${toString rev}"; name = "SDL2_gfx-${version}";
version = "1.0.1";
src = fetchsvn { src = fetchurl {
url = http://svn.code.sf.net/p/sdl2gfx/code/trunk; url = "mirror://sourceforge/sdl2gfx/${name}.tar.gz";
inherit rev; sha256 = "16jrijzdp095qf416zvj9gs2fqqn6zkyvlxs5xqybd0ip37cp6yn";
sha256 = "1hzilbn1412m2b44mygrbdfh1gvks4v5p0kmafz248jf9ifsvmzp";
}; };
buildInputs = [ SDL2 ] ; buildInputs = [ SDL2 ];
configureFlags = "--disable-mmx"; configureFlags = [ "--enable-mmx" ];
postInstall = '' meta = with stdenv.lib; {
sed -i -e 's,"SDL.h",<SDL2/SDL.h>,' \
$out/include/SDL2/*.h
ln -s $out/include/SDL2/SDL2_framerate.h $out/include/SDL2/SDL_framerate.h;
ln -s $out/include/SDL2/SDL2_gfxPrimitives.h $out/include/SDL2/SDL_gfxPrimitives.h;
ln -s $out/include/SDL2/SDL2_rotozoom.h $out/include/SDL2/SDL_rotozoom.h;
ln -s $out/include/SDL2/*.h $out/include/;
'';
meta = {
description = "SDL graphics drawing primitives and support functions"; description = "SDL graphics drawing primitives and support functions";
longDescription = '' longDescription = ''
@ -45,10 +34,10 @@ stdenv.mkDerivation rec {
code. Its is written in plain C and can be used in C++ code. code. Its is written in plain C and can be used in C++ code.
''; '';
homepage = https://sourceforge.net/projects/sdlgfx/; homepage = "https://sourceforge.net/projects/sdlgfx/";
license = stdenv.lib.licenses.lgpl2Plus; license = licenses.zlib;
maintainers = [ stdenv.lib.maintainers.bjg ]; maintainers = with maintainers; [ bjg ];
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }