[bb41bc7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[bb41bc7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
|
---|
[3af39b1] | 8 | <!ENTITY cairo-download-ftp "&gentoo-ftp-repo;/cairo-&cairo-version;.tar.gz">
|
---|
[a75cf492] | 9 | <!ENTITY cairo-md5sum "b60a82f405f9400bbfdcf850b1728d25">
|
---|
| 10 | <!ENTITY cairo-size "7.1 MB">
|
---|
| 11 | <!ENTITY cairo-buildsize "40 MB (up to an additional 270 MB to run the test suite)">
|
---|
| 12 | <!ENTITY cairo-time "0.4 SBU (up to an additional 2.9 SBU to run the test suite)">
|
---|
[bb41bc7] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cairo" xreflabel="cairo-&cairo-version;">
|
---|
| 16 | <?dbhtml filename="cairo.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>cairo-&cairo-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="cairo">
|
---|
| 26 | <primary sortas="a-cairo">cairo</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to cairo</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>cairo</application> is a 2D graphics library with
|
---|
| 33 | support for multiple output devices. Currently supported output targets
|
---|
[6e08fa52] | 34 | include the <application>X</application> Window System, win32, image
|
---|
| 35 | buffers, PostScript, PDF and SVG. Experimental backends include OpenGL
|
---|
| 36 | (through glitz), Quartz and XCB file output. cairo is designed to produce
|
---|
[bb41bc7] | 37 | consistent output on all output media while taking advantage of display
|
---|
| 38 | hardware acceleration when available (e.g., through the X Render
|
---|
| 39 | Extension). The <application>cairo</application> API provides operations
|
---|
| 40 | similar to the drawing operators of PostScript and PDF. Operations in
|
---|
| 41 | <application>cairo</application> include stroking and filling cubic
|
---|
| 42 | Bézier splines, transforming and compositing translucent images, and
|
---|
| 43 | antialiased text rendering. All drawing operations can be transformed by
|
---|
| 44 | any affine transformation (scale, rotation, shear, etc.).</para>
|
---|
| 45 |
|
---|
[3af39b1] | 46 | &lfs65_checked;
|
---|
| 47 |
|
---|
[bb41bc7] | 48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 49 | <itemizedlist spacing="compact">
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download MD5 sum: &cairo-md5sum;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Download size: &cairo-size;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Estimated disk space required: &cairo-buildsize;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Estimated build time: &cairo-time;</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[3af39b1] | 73 | <para role="required"><xref linkend="libpng"/>,
|
---|
[a41f643] | 74 | <xref linkend="pixman"/>, and
|
---|
[3af39b1] | 75 | <xref linkend="fontconfig"/></para>
|
---|
[358241d1] | 76 | <!-- and <xref linkend="pkgconfig"/></para> -->
|
---|
[bb41bc7] | 77 |
|
---|
[bc9c1def] | 78 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[3af39b1] | 79 | <para role="recommended"><xref linkend="x-window-system"/></para>
|
---|
[bc9c1def] | 80 |
|
---|
[bb41bc7] | 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 82 | <para role="optional"><ulink
|
---|
| 83 | url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
---|
[3af39b1] | 84 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
| 85 | <xref linkend="gtk-doc"/>,
|
---|
| 86 | <xref linkend="xcb-util"/>,
|
---|
| 87 | <ulink url="http://libspectre.freedesktop.org">libspectre</ulink>, and
|
---|
| 88 | <ulink url="http://www.valgrind.org">Valgrind</ulink></para>
|
---|
[bb41bc7] | 89 |
|
---|
[6e08fa52] | 90 | <bridgehead renderas="sect4">Optional (to provide extended test suite
|
---|
| 91 | coverage)</bridgehead>
|
---|
| 92 | <para role="optional"><xref linkend="gtk2"/> (for testing the PDF backend),
|
---|
[3af39b1] | 93 | <xref linkend="poppler"/> (for testing the PDF backend), and
|
---|
[a41f643] | 94 | <xref linkend="librsvg"/> (for testing the SVG backend)
|
---|
[e83eed1] | 95 | <!-- [ comment this pending clarification - not presently required] , and
|
---|
| 96 | <ulink url="http://ltp.sourceforge.net/">LTP</ulink>--></para>
|
---|
[6e08fa52] | 97 |
|
---|
| 98 | <para>Note that the GTK, Poppler and librsvg packages are circular in that
|
---|
| 99 | using them for test suite coverage requires installing cairo first,
|
---|
| 100 | then installing the desired package(s), then installing cairo again.</para>
|
---|
| 101 |
|
---|
[c5c2654] | 102 | <para condition="html" role="usernotes">User Notes:
|
---|
| 103 | <ulink url="&blfs-wiki;/cairo"/></para>
|
---|
| 104 |
|
---|
[bb41bc7] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="installation">
|
---|
| 108 | <title>Installation of cairo</title>
|
---|
| 109 |
|
---|
| 110 | <para>Install <application>cairo</application> by running the following
|
---|
| 111 | commands:</para>
|
---|
| 112 |
|
---|
[3af39b1] | 113 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[bb41bc7] | 114 | make</userinput></screen>
|
---|
| 115 |
|
---|
[8335db4] | 116 | <!-- Tested with Poppler 0.10.7, librsvg 2.26.0, libspectre 0.2.2,
|
---|
| 117 | GTK+ 2.26.5, and GPL Ghostscript 8.64.
|
---|
| 118 | 29 of 205 tests failed -->
|
---|
| 119 |
|
---|
[e78ea706] | 120 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
[8335db4] | 121 | as many as 29 of the tests are known to fail for unknown reasons.
|
---|
[e9585c2a] | 122 | If you do not have a <command>gs</command> binary in your path, many
|
---|
[bc9c1def] | 123 | <!-- used to be (87 of $total), needs to be updated by someone who can
|
---|
| 124 | get them to run through without hanging -->
|
---|
| 125 | of the 205 tests will fail. Also, to enhance test
|
---|
[e9585c2a] | 126 | coverage, the tests should be run with an available X Window screen (e.g.
|
---|
| 127 | from a local xterm or equivalent window).</para>
|
---|
[bb41bc7] | 128 |
|
---|
| 129 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 130 |
|
---|
| 131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
[15a4fb4c] | 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
[e05cd03f] | 138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[56ce09e] | 139 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 140 |
|
---|
[ca89597d] | 141 | <para><option>--enable-xcb=yes</option>: Enable the xcb back end.
|
---|
[3af39b1] | 142 | </para>
|
---|
[bc9c1def] | 143 |
|
---|
[ca89597d] | 144 | <para><option>--disable-static</option>: Prevent static libraries
|
---|
[bc9c1def] | 145 | being built and installed.</para>
|
---|
| 146 |
|
---|
[15a4fb4c] | 147 | </sect2>
|
---|
| 148 |
|
---|
[bb41bc7] | 149 | <sect2 role="content">
|
---|
| 150 | <title>Contents</title>
|
---|
| 151 |
|
---|
| 152 | <segmentedlist>
|
---|
| 153 | <segtitle>Installed Programs</segtitle>
|
---|
[3af39b1] | 154 | <segtitle>Installed Library</segtitle>
|
---|
[bb41bc7] | 155 | <segtitle>Installed Directories</segtitle>
|
---|
| 156 |
|
---|
| 157 | <seglistitem>
|
---|
| 158 | <seg>None</seg>
|
---|
[c5c2654] | 159 | <seg>libcairo.{so,a}</seg>
|
---|
[bb41bc7] | 160 | <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
---|
| 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="libcairo">
|
---|
[c5c2654] | 170 | <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
---|
[bb41bc7] | 171 | <listitem>
|
---|
| 172 | <para>contains the 2D graphics functions required for rendering to
|
---|
| 173 | the various output targets.</para>
|
---|
| 174 | <indexterm zone="cairo libcairo">
|
---|
[c5c2654] | 175 | <primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
---|
[bb41bc7] | 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | </variablelist>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | </sect1>
|
---|