lol
1{ stdenv, fetchurl, SDL2 }:
2
3stdenv.mkDerivation rec {
4 name = "SDL2_gfx-${version}";
5 version = "1.0.1";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/sdl2gfx/${name}.tar.gz";
9 sha256 = "16jrijzdp095qf416zvj9gs2fqqn6zkyvlxs5xqybd0ip37cp6yn";
10 };
11
12 buildInputs = [ SDL2 ];
13
14 configureFlags = if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx";
15
16 meta = with stdenv.lib; {
17 description = "SDL graphics drawing primitives and support functions";
18
19 longDescription = ''
20 The SDL_gfx library evolved out of the SDL_gfxPrimitives code
21 which provided basic drawing routines such as lines, circles or
22 polygons and SDL_rotozoom which implemented a interpolating
23 rotozoomer for SDL surfaces.
24
25 The current components of the SDL_gfx library are:
26
27 * Graphic Primitives (SDL_gfxPrimitves.h)
28 * Rotozoomer (SDL_rotozoom.h)
29 * Framerate control (SDL_framerate.h)
30 * MMX image filters (SDL_imageFilter.h)
31 * Custom Blit functions (SDL_gfxBlitFunc.h)
32
33 The library is backwards compatible to the above mentioned
34 code. Its is written in plain C and can be used in C++ code.
35 '';
36
37 homepage = https://sourceforge.net/projects/sdlgfx/;
38 license = licenses.zlib;
39
40 maintainers = with maintainers; [ bjg ];
41 platforms = platforms.linux;
42 };
43}