1 { lib, stdenv, darwin, fetchurl, pkg-config, SDL2 }:
3 stdenv.mkDerivation rec {
8 url = "http://www.ferzkopp.net/Software/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "0qk2ax7f7grlxb13ba0ll3zlm8780s7j8fmrhlpxzjgdvldf1q33";
12 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ SDL2 ]
15 ++ lib.optional stdenv.isDarwin darwin.libobjc;
17 configureFlags = [(if stdenv.hostPlatform.isx86 then "--enable-mmx" else "--disable-mmx")]
18 ++ lib.optional stdenv.isDarwin "--disable-sdltest";
21 description = "SDL graphics drawing primitives and support functions";
24 The SDL_gfx library evolved out of the SDL_gfxPrimitives code
25 which provided basic drawing routines such as lines, circles or
26 polygons and SDL_rotozoom which implemented a interpolating
27 rotozoomer for SDL surfaces.
29 The current components of the SDL_gfx library are:
31 * Graphic Primitives (SDL_gfxPrimitves.h)
32 * Rotozoomer (SDL_rotozoom.h)
33 * Framerate control (SDL_framerate.h)
34 * MMX image filters (SDL_imageFilter.h)
35 * Custom Blit functions (SDL_gfxBlitFunc.h)
37 The library is backwards compatible to the above mentioned
38 code. Its is written in plain C and can be used in C++ code.
41 homepage = "http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/";
42 license = licenses.zlib;
43 maintainers = with maintainers; [ cpages ];
44 platforms = platforms.unix;