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