3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/agg/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

39 lines
1.3 KiB
Nix

{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig
, freetype, SDL, libX11 }:
stdenv.mkDerivation rec {
name = "agg-2.5";
src = fetchurl {
url = "http://www.antigrain.com/${name}.tar.gz";
sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake libtool freetype SDL libX11 ];
# fix build with new automake, from Gentoo ebuild
preConfigure = ''
sed -i '/^AM_C_PROTOTYPES/d' configure.in
sh autogen.sh
'';
configureFlags = "--x-includes=${libX11.dev}/include --x-libraries=${libX11.out}/lib";
meta = {
description = "High quality rendering engine for C++";
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.
'';
license = stdenv.lib.licenses.gpl2Plus;
homepage = http://www.antigrain.com/;
platforms = stdenv.lib.platforms.linux;
};
}