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