SDL2_{gfx,image,net}: Broken on Darwin

Last successful Darwin build was 11 months ago, presumably nobody cares.

http://hydra.nixos.org/build/38317749
http://hydra.nixos.org/build/38318268
http://hydra.nixos.org/build/38322306
This commit is contained in:
Tuomas Tynkkynen 2016-08-06 18:25:51 +03:00
parent 22281009b7
commit 89c867196c
3 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchsvn, SDL2} : {stdenv, fetchsvn, SDL2}:
let rev = 5; in let rev = 5; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
sed -i -e 's,"SDL.h",<SDL2/SDL.h>,' \ sed -i -e 's,"SDL.h",<SDL2/SDL.h>,' \
$out/include/SDL2/*.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_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_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/SDL2_rotozoom.h $out/include/SDL2/SDL_rotozoom.h;
@ -27,28 +27,28 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "SDL graphics drawing primitives and support functions"; description = "SDL graphics drawing primitives and support functions";
longDescription = longDescription = ''
'' The SDL_gfx library evolved out of the SDL_gfxPrimitives code The SDL_gfx library evolved out of the SDL_gfxPrimitives code
which provided basic drawing routines such as lines, circles or which provided basic drawing routines such as lines, circles or
polygons and SDL_rotozoom which implemented a interpolating polygons and SDL_rotozoom which implemented a interpolating
rotozoomer for SDL surfaces. rotozoomer for SDL surfaces.
The current components of the SDL_gfx library are: The current components of the SDL_gfx library are:
* Graphic Primitives (SDL_gfxPrimitves.h) * Graphic Primitives (SDL_gfxPrimitves.h)
* Rotozoomer (SDL_rotozoom.h) * Rotozoomer (SDL_rotozoom.h)
* Framerate control (SDL_framerate.h) * Framerate control (SDL_framerate.h)
* MMX image filters (SDL_imageFilter.h) * MMX image filters (SDL_imageFilter.h)
* Custom Blit functions (SDL_gfxBlitFunc.h) * Custom Blit functions (SDL_gfxBlitFunc.h)
The library is backwards compatible to the above mentioned The library is backwards compatible to the above mentioned
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 = stdenv.lib.licenses.lgpl2Plus;
maintainers = [ stdenv.lib.maintainers.bjg ]; maintainers = [ stdenv.lib.maintainers.bjg ];
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.linux;
}; };
} }

View File

@ -22,6 +22,6 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "SDL image library"; description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/"; homepage = "http://www.libsdl.org/projects/SDL_image/";
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.linux;
}; };
} }

View File

@ -17,6 +17,6 @@ stdenv.mkDerivation rec {
homepage = https://www.libsdl.org/projects/SDL_net; homepage = https://www.libsdl.org/projects/SDL_net;
license = licenses.zlib; license = licenses.zlib;
maintainers = [ maintainers.MP2E ]; maintainers = [ maintainers.MP2E ];
platforms = platforms.all; platforms = platforms.linux;
}; };
} }