1{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig
2, freetype, SDL, libX11 }:
3
4stdenv.mkDerivation rec {
5 name = "agg-2.5";
6 src = fetchurl {
7 url = "http://www.antigrain.com/${name}.tar.gz";
8 sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
9 };
10 buildInputs = [ autoconf automake libtool pkgconfig freetype SDL libX11 ];
11
12 # fix build with new automake, from Gentoo ebuild
13 preConfigure = ''
14 sed -i '/^AM_C_PROTOTYPES/d' configure.in
15 sh autogen.sh
16 '';
17
18 configureFlags = "--x-includes=${libX11}/include --x-libraries=${libX11}/lib";
19
20 meta = {
21 description = "High quality rendering engine for C++";
22
23 longDescription = ''
24 Anti-Grain Geometry (AGG) is an Open Source, free of charge
25 graphic library, written in industrially standard C++. The
26 terms and conditions of use AGG are described on The License
27 page. AGG doesn't depend on any graphic API or technology.
28 Basically, you can think of AGG as of a rendering engine that
29 produces pixel images in memory from some vectorial data. But
30 of course, AGG can do much more than that.
31 '';
32
33 license = stdenv.lib.licenses.gpl2Plus;
34 homepage = http://www.antigrain.com/;
35 };
36}