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 buildInputs = [ SDL ] ;
14 configureFlags = [ "--disable-mmx" ]
15 ++ lib.optional stdenv.isDarwin "--disable-sdltest";
18 description = "SDL graphics drawing primitives and support functions";
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.
26 The current components of the SDL_gfx library are:
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)
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.
38 homepage = "https://sourceforge.net/projects/sdlgfx/";
39 license = licenses.zlib;
41 maintainers = with maintainers; [ ];
42 platforms = platforms.unix;