9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
48 lines
1.7 KiB
Nix
48 lines
1.7 KiB
Nix
{ stdenv, fetchurl, autoconf, automake, libtool, pkg-config
|
|
, freetype, SDL, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "agg-2.5";
|
|
src = fetchurl {
|
|
url = "http://www.antigrain.com/${name}.tar.gz";
|
|
sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
|
|
};
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ autoconf automake libtool freetype SDL libX11 ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace include/agg_renderer_outline_aa.h \
|
|
--replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {'
|
|
'';
|
|
|
|
# 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" "--enable-examples=no" ];
|
|
|
|
# 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;
|
|
|
|
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;
|
|
};
|
|
}
|