1 { lib, stdenv, fetchurl, autoconf, automake, libtool, pkg-config
2 , freetype, SDL, libX11 }:
4 stdenv.mkDerivation rec {
7 url = "http://www.antigrain.com/${name}.tar.gz";
8 sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
10 nativeBuildInputs = [ pkg-config ];
11 buildInputs = [ autoconf automake libtool freetype SDL libX11 ];
14 substituteInPlace include/agg_renderer_outline_aa.h \
15 --replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {'
18 # fix build with new automake, from Gentoo ebuild
20 sed -i '/^AM_C_PROTOTYPES/d' configure.in
24 configureFlags = [ "--x-includes=${libX11.dev}/include" "--x-libraries=${libX11.out}/lib" "--enable-examples=no" ];
26 # libtool --tag=CXX --mode=link g++ -g -O2 libexamples.la ../src/platform/X11/libaggplatformX11.la ../src/libagg.la -o alpha_mask2 alpha_mask2.o
27 # libtool: error: cannot find the library 'libexamples.la'
28 enableParallelBuilding = false;
31 description = "High quality rendering engine for C++";
34 Anti-Grain Geometry (AGG) is an Open Source, free of charge
35 graphic library, written in industrially standard C++. The
36 terms and conditions of use AGG are described on The License
37 page. AGG doesn't depend on any graphic API or technology.
38 Basically, you can think of AGG as of a rendering engine that
39 produces pixel images in memory from some vectorial data. But
40 of course, AGG can do much more than that.
43 license = lib.licenses.gpl2Plus;
44 homepage = "http://www.antigrain.com/";
45 platforms = lib.platforms.linux;