2008-03-10 10:48:17 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig
|
2009-04-28 14:37:09 +02:00
|
|
|
, freetype, SDL, libX11 }:
|
2007-09-05 15:56:12 +02:00
|
|
|
|
2008-03-10 10:48:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2007-09-05 15:56:12 +02:00
|
|
|
name = "agg-2.5";
|
|
|
|
src = fetchurl {
|
2008-03-10 10:48:17 +01:00
|
|
|
url = "http://www.antigrain.com/${name}.tar.gz";
|
2007-09-11 13:15:37 +02:00
|
|
|
sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
|
2007-09-05 15:56:12 +02:00
|
|
|
};
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ autoconf automake libtool freetype SDL libX11 ];
|
2013-02-23 18:27:12 +01:00
|
|
|
|
2019-01-17 09:51:55 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace include/agg_renderer_outline_aa.h \
|
|
|
|
--replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {'
|
|
|
|
'';
|
|
|
|
|
2013-02-23 18:27:12 +01:00
|
|
|
# fix build with new automake, from Gentoo ebuild
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i '/^AM_C_PROTOTYPES/d' configure.in
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
2009-04-28 14:37:09 +02:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--x-includes=${libX11.dev}/include" "--x-libraries=${libX11.out}/lib" "--enable-examples=no" ];
|
2009-04-28 14:37:09 +02:00
|
|
|
|
2017-11-26 08:39:58 +01:00
|
|
|
# libtool --tag=CXX --mode=link g++ -g -O2 libexamples.la ../src/platform/X11/libaggplatformX11.la ../src/libagg.la -o alpha_mask2 alpha_mask2.o
|
|
|
|
# libtool: error: cannot find the library 'libexamples.la'
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2009-04-28 14:37:09 +02:00
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "High quality rendering engine for C++";
|
2009-04-28 14:37:09 +02: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 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.antigrain.com/";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-04-28 14:37:09 +02:00
|
|
|
};
|
2007-09-05 15:56:12 +02:00
|
|
|
}
|