2008-03-10 09:48:17 +00:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig
|
2009-04-28 12:37:09 +00:00
|
|
|
, freetype, SDL, libX11 }:
|
2007-09-05 13:56:12 +00:00
|
|
|
|
2008-03-10 09:48:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2007-09-05 13:56:12 +00:00
|
|
|
name = "agg-2.5";
|
|
|
|
src = fetchurl {
|
2008-03-10 09:48:17 +00:00
|
|
|
url = "http://www.antigrain.com/${name}.tar.gz";
|
2007-09-11 11:15:37 +00:00
|
|
|
sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
|
2007-09-05 13:56:12 +00:00
|
|
|
};
|
2009-04-28 12:37:09 +00:00
|
|
|
buildInputs = [ autoconf automake libtool pkgconfig freetype SDL libX11 ];
|
2013-02-23 17:27:12 +00:00
|
|
|
|
|
|
|
# fix build with new automake, from Gentoo ebuild
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/^AM_C_PROTOTYPES/d' configure.in
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
2009-04-28 12:37:09 +00:00
|
|
|
|
2016-08-30 00:31:55 +00:00
|
|
|
configureFlags = "--x-includes=${libX11.dev}/include --x-libraries=${libX11.out}/lib";
|
2009-04-28 12:37:09 +00:00
|
|
|
|
|
|
|
meta = {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "High quality rendering engine for C++";
|
2009-04-28 12:37:09 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Anti-Grain Geometry (AGG) is an Open Source, free of charge
|
|
|
|
graphic library, written in industrially standard C++. The
|
|
|
|
terms and conditions of use AGG are described on The License
|
|
|
|
page. AGG doesn't depend on any graphic API or technology.
|
|
|
|
Basically, you can think of AGG as of a rendering engine that
|
|
|
|
produces pixel images in memory from some vectorial data. But
|
|
|
|
of course, AGG can do much more than that.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-04-28 12:37:09 +00:00
|
|
|
homepage = http://www.antigrain.com/;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-04-28 12:37:09 +00:00
|
|
|
};
|
2007-09-05 13:56:12 +00:00
|
|
|
}
|