2005-09-21 03:33:01 +08:00
|
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
|
|
<!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<!ENTITY cairo-download-ftp "&gentoo-ftp-repo;/cairo-&cairo-version;.tar.gz">
|
|
|
|
|
<!ENTITY cairo-md5sum "d3e1a1035ae563812d4dd44a74fb0dd0">
|
|
|
|
|
<!ENTITY cairo-size "6.4 MB">
|
|
|
|
|
<!ENTITY cairo-buildsize "40 MB (additional 270 MB to run the test suite)">
|
|
|
|
|
<!ENTITY cairo-time "0.4 SBU (additional 2.9 SBU to run the test suite)">
|
2005-09-21 03:33:01 +08:00
|
|
|
|
]>
|
|
|
|
|
|
|
|
|
|
<sect1 id="cairo" xreflabel="cairo-&cairo-version;">
|
|
|
|
|
<?dbhtml filename="cairo.html"?>
|
|
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
|
<date>$Date$</date>
|
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
|
|
<title>cairo-&cairo-version;</title>
|
|
|
|
|
|
|
|
|
|
<indexterm zone="cairo">
|
|
|
|
|
<primary sortas="a-cairo">cairo</primary>
|
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
|
<title>Introduction to cairo</title>
|
|
|
|
|
|
|
|
|
|
<para><application>cairo</application> is a 2D graphics library with
|
|
|
|
|
support for multiple output devices. Currently supported output targets
|
2006-10-05 20:51:08 +08:00
|
|
|
|
include the <application>X</application> Window System, win32, image
|
|
|
|
|
buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
|
|
|
|
(through glitz), Quartz and XCB file output. cairo is designed to produce
|
2005-09-21 03:33:01 +08:00
|
|
|
|
consistent output on all output media while taking advantage of display
|
|
|
|
|
hardware acceleration when available (e.g., through the X Render
|
|
|
|
|
Extension). The <application>cairo</application> API provides operations
|
|
|
|
|
similar to the drawing operators of PostScript and PDF. Operations in
|
|
|
|
|
<application>cairo</application> include stroking and filling cubic
|
|
|
|
|
B<>zier splines, transforming and compositing translucent images, and
|
|
|
|
|
antialiased text rendering. All drawing operations can be transformed by
|
|
|
|
|
any affine transformation (scale, rotation, shear, etc.).</para>
|
|
|
|
|
|
2009-08-01 02:10:06 +08:00
|
|
|
|
&lfs65_checked;
|
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download MD5 sum: &cairo-md5sum;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Download size: &cairo-size;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Estimated disk space required: &cairo-buildsize;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
<listitem>
|
|
|
|
|
<para>Estimated build time: &cairo-time;</para>
|
|
|
|
|
</listitem>
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
|
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<para role="required"><xref linkend="libpng"/>,
|
|
|
|
|
<xref linkend="pixman"/>, and
|
|
|
|
|
<xref linkend="fontconfig"/></para>
|
2009-07-24 02:36:20 +08:00
|
|
|
|
<!-- and <xref linkend="pkgconfig"/></para> -->
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
2008-11-28 06:33:45 +08:00
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<para role="recommended"><xref linkend="x-window-system"/></para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 19:41:26 +08:00
|
|
|
|
<para role="optional"><ulink
|
|
|
|
|
url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
|
|
|
|
<xref linkend="gtk-doc"/>,
|
|
|
|
|
<xref linkend="xcb-util"/>,
|
|
|
|
|
<ulink url="http://libspectre.freedesktop.org">libspectre</ulink>, and
|
|
|
|
|
<ulink url="http://www.valgrind.org">Valgrind</ulink></para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
2006-10-05 20:51:08 +08:00
|
|
|
|
<bridgehead renderas="sect4">Optional (to provide extended test suite
|
|
|
|
|
coverage)</bridgehead>
|
|
|
|
|
<para role="optional"><xref linkend="gtk2"/> (for testing the PDF backend),
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<xref linkend="poppler"/> (for testing the PDF backend), and
|
|
|
|
|
<xref linkend="librsvg"/> (for testing the SVG backend)
|
2008-03-10 01:24:21 +08:00
|
|
|
|
<!-- [ comment this pending clarification - not presently required] , and
|
|
|
|
|
<ulink url="http://ltp.sourceforge.net/">LTP</ulink>--></para>
|
2006-10-05 20:51:08 +08:00
|
|
|
|
|
|
|
|
|
<para>Note that the GTK, Poppler and librsvg packages are circular in that
|
|
|
|
|
using them for test suite coverage requires installing cairo first,
|
|
|
|
|
then installing the desired package(s), then installing cairo again.</para>
|
|
|
|
|
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
|
<ulink url="&blfs-wiki;/cairo"/></para>
|
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
|
<title>Installation of cairo</title>
|
|
|
|
|
|
|
|
|
|
<para>Install <application>cairo</application> by running the following
|
|
|
|
|
commands:</para>
|
|
|
|
|
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2005-09-21 03:33:01 +08:00
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
2009-08-02 01:56:37 +08:00
|
|
|
|
<!-- Tested with Poppler 0.10.7, librsvg 2.26.0, libspectre 0.2.2,
|
|
|
|
|
GTK+ 2.26.5, and GPL Ghostscript 8.64.
|
|
|
|
|
29 of 205 tests failed -->
|
|
|
|
|
|
2007-03-19 03:38:07 +08:00
|
|
|
|
<para>To test the results, issue: <command>make check</command>. Note that
|
2009-08-02 01:56:37 +08:00
|
|
|
|
as many as 29 of the tests are known to fail for unknown reasons.
|
2007-03-21 02:20:25 +08:00
|
|
|
|
If you do not have a <command>gs</command> binary in your path, many
|
2008-11-28 06:33:45 +08:00
|
|
|
|
<!-- used to be (87 of $total), needs to be updated by someone who can
|
|
|
|
|
get them to run through without hanging -->
|
|
|
|
|
of the 205 tests will fail. Also, to enhance test
|
2007-03-21 02:20:25 +08:00
|
|
|
|
coverage, the tests should be run with an available X Window screen (e.g.
|
|
|
|
|
from a local xterm or equivalent window).</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
|
<sect2 role="commands">
|
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
2006-06-26 23:45:37 +08:00
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
|
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<para><parameter>--enable-xcb=yes</parameter>: Enable the xcb back end.
|
|
|
|
|
</para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
|
|
|
|
|
<para><parameter>--disable-static</parameter>: Prevent static libraries
|
|
|
|
|
being built and installed.</para>
|
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
|
</sect2>
|
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<sect2 role="content">
|
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2009-08-01 02:10:06 +08:00
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
|
<seg>None</seg>
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<seg>libcairo.{so,a}</seg>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
|
|
|
|
</seglistitem>
|
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
|
|
<varlistentry id="libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
<listitem>
|
|
|
|
|
<para>contains the 2D graphics functions required for rendering to
|
|
|
|
|
the various output targets.</para>
|
|
|
|
|
<indexterm zone="cairo libcairo">
|
2006-04-11 02:39:30 +08:00
|
|
|
|
<primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
</indexterm>
|
|
|
|
|
</listitem>
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
</sect1>
|