2016-08-24 14:22:35 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
|
2016-03-10 10:42:09 +01:00
|
|
|
let
|
|
|
|
ver_maj = "1.12";
|
|
|
|
ver_min = "0";
|
|
|
|
in
|
2008-02-03 14:18:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-03-10 10:42:09 +01:00
|
|
|
name = "cairomm-${ver_maj}.${ver_min}";
|
2008-02-03 14:18:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-03-10 10:42:09 +01:00
|
|
|
url = "mirror://gnome/sources/cairomm/${ver_maj}/${name}.tar.xz";
|
|
|
|
sha256 = "a54ada8394a86182525c0762e6f50db6b9212a2109280d13ec6a0b29bfd1afe6";
|
2008-02-03 14:18:15 +01:00
|
|
|
};
|
|
|
|
|
2016-03-10 10:42:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ cairo libsigcxx ];
|
2016-08-24 14:22:35 +02:00
|
|
|
buildInputs = [ fontconfig freetype ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
ApplicationServices
|
|
|
|
]);
|
2014-11-08 21:21:36 +01:00
|
|
|
|
2016-03-10 10:42:09 +01:00
|
|
|
doCheck = true;
|
2008-02-03 14:18:15 +01:00
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-01-24 22:55:16 +01:00
|
|
|
description = "A 2D graphics library with support for multiple output devices";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Cairo is a 2D graphics library with support for multiple output
|
|
|
|
devices. Currently supported output targets include the X
|
|
|
|
Window System, Quartz, Win32, image buffers, PostScript, PDF,
|
|
|
|
and SVG file output. Experimental backends include OpenGL
|
|
|
|
(through glitz), XCB, BeOS, OS/2, and DirectFB.
|
|
|
|
|
|
|
|
Cairo is designed to produce consistent output on all output
|
|
|
|
media while taking advantage of display hardware acceleration
|
|
|
|
when available (e.g., through the X Render Extension).
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://cairographics.org/;
|
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
license = with licenses; [ lgpl2Plus mpl10 ];
|
2016-08-24 14:22:35 +02:00
|
|
|
platforms = platforms.unix;
|
2009-01-24 22:55:16 +01:00
|
|
|
};
|
2008-02-03 14:18:15 +01:00
|
|
|
}
|