[bb41bc7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 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">
|
---|
[15a4fb4c] | 8 | <!ENTITY cairo-download-ftp " ">
|
---|
[6e08fa52] | 9 | <!ENTITY cairo-md5sum "1222b2bfdf113e2c92f66b3389659f2d">
|
---|
| 10 | <!ENTITY cairo-size "2.8 MB">
|
---|
| 11 | <!ENTITY cairo-buildsize "56.7 MB">
|
---|
| 12 | <!ENTITY cairo-time "0.5 SBU (additional 0.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 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download MD5 sum: &cairo-md5sum;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download size: &cairo-size;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated disk space required: &cairo-buildsize;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Estimated build time: &cairo-time;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e77976f] | 71 | <para role="required"><xref linkend="x-window-system"/> and
|
---|
| 72 | <xref linkend="pkgconfig"/></para>
|
---|
[bb41bc7] | 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 75 | <para role="optional"><ulink
|
---|
| 76 | url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
---|
[6e08fa52] | 77 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
[15a4fb4c] | 78 | <ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink>, and
|
---|
[bb41bc7] | 79 | <xref linkend="gtk-doc"/></para>
|
---|
| 80 |
|
---|
[6e08fa52] | 81 | <bridgehead renderas="sect4">Optional (to provide extended test suite
|
---|
| 82 | coverage)</bridgehead>
|
---|
| 83 | <para role="optional"><xref linkend="gtk2"/> (for testing the PDF backend),
|
---|
| 84 | <xref linkend="poppler"/> (for testing the PDF backend),
|
---|
| 85 | <xref linkend="librsvg"/> (for testing the SVG backend), and
|
---|
[37b02f2] | 86 | <ulink url="http://ltp.sourceforge.net/">LTP</ulink></para>
|
---|
[6e08fa52] | 87 |
|
---|
| 88 | <para>Note that the GTK, Poppler and librsvg packages are circular in that
|
---|
| 89 | using them for test suite coverage requires installing cairo first,
|
---|
| 90 | then installing the desired package(s), then installing cairo again.</para>
|
---|
| 91 |
|
---|
[c5c2654] | 92 | <para condition="html" role="usernotes">User Notes:
|
---|
| 93 | <ulink url="&blfs-wiki;/cairo"/></para>
|
---|
| 94 |
|
---|
[bb41bc7] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of cairo</title>
|
---|
| 99 |
|
---|
[6e34843] | 100 | <para><application>cairo</application> will look for an
|
---|
| 101 | <application>X Render</application> <application>pkg-config</application>
|
---|
| 102 | file. If you use <application>XFree86</application> as your
|
---|
| 103 | <application>X</application> Window system, ensure this file exists
|
---|
[6e08fa52] | 104 | (<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>) before beginning
|
---|
| 105 | the installation.</para>
|
---|
[fb0fc4e] | 106 |
|
---|
[bb41bc7] | 107 | <para>Install <application>cairo</application> by running the following
|
---|
| 108 | commands:</para>
|
---|
| 109 |
|
---|
[6e08fa52] | 110 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[bb41bc7] | 111 | make</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 114 |
|
---|
| 115 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
| 117 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
[15a4fb4c] | 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
[56ce09e] | 124 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 125 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 126 |
|
---|
[15a4fb4c] | 127 | </sect2>
|
---|
| 128 |
|
---|
[bb41bc7] | 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
| 134 | <segtitle>Installed Libraries</segtitle>
|
---|
| 135 | <segtitle>Installed Directories</segtitle>
|
---|
| 136 |
|
---|
| 137 | <seglistitem>
|
---|
| 138 | <seg>None</seg>
|
---|
[c5c2654] | 139 | <seg>libcairo.{so,a}</seg>
|
---|
[bb41bc7] | 140 | <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
---|
| 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="libcairo">
|
---|
[c5c2654] | 150 | <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
|
---|
[bb41bc7] | 151 | <listitem>
|
---|
| 152 | <para>contains the 2D graphics functions required for rendering to
|
---|
| 153 | the various output targets.</para>
|
---|
| 154 | <indexterm zone="cairo libcairo">
|
---|
[c5c2654] | 155 | <primary sortas="c-libcairo">libcairo.{so,a}</primary>
|
---|
[bb41bc7] | 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | </variablelist>
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | </sect1>
|
---|