[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 |
|
---|
[a2912ff] | 7 | <!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.xz">
|
---|
[97ccf511] | 8 | <!ENTITY cairo-download-ftp " ">
|
---|
[6f124e9] | 9 | <!ENTITY cairo-md5sum "8b3dcade859c44fb7e56fc68edfe9a45">
|
---|
[178e985] | 10 | <!ENTITY cairo-size "41 MB">
|
---|
[7194e83b] | 11 | <!ENTITY cairo-buildsize "170 MB">
|
---|
[178e985] | 12 | <!ENTITY cairo-time "1.1 SBU">
|
---|
[bb41bc7] | 13 | ]>
|
---|
| 14 |
|
---|
[a2912ff] | 15 | <sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
|
---|
[bb41bc7] | 16 | <?dbhtml filename="cairo.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[a2912ff] | 23 | <title>Cairo-&cairo-version;</title>
|
---|
[bb41bc7] | 24 |
|
---|
| 25 | <indexterm zone="cairo">
|
---|
[a2912ff] | 26 | <primary sortas="a-Cairo">Cairo</primary>
|
---|
[bb41bc7] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[4db1ba6] | 30 | <title>Introduction to Cairo</title>
|
---|
[bb41bc7] | 31 |
|
---|
[521cea0] | 32 | <para>
|
---|
| 33 | <application>Cairo</application> is a 2D graphics library with support for
|
---|
| 34 | multiple output devices. Currently supported output targets include the
|
---|
| 35 | <application>X</application> Window System, win32, image buffers,
|
---|
| 36 | PostScript, PDF and SVG. Experimental backends include OpenGL, Quartz and
|
---|
[68d01360] | 37 | XCB file output. <application>Cairo</application> is designed to produce
|
---|
| 38 | consistent output on all output media while taking advantage of display
|
---|
| 39 | hardware acceleration when available (e.g., through the X Render
|
---|
| 40 | Extension). The <application>Cairo</application> API provides operations
|
---|
| 41 | similar to the drawing operators of PostScript and PDF. Operations in
|
---|
[521cea0] | 42 | <application>Cairo</application> include stroking and filling cubic
|
---|
| 43 | Bézier splines, transforming and compositing translucent images,
|
---|
| 44 | and antialiased text rendering. All drawing operations can be transformed
|
---|
| 45 | by any
|
---|
| 46 | <ulink url="http://en.wikipedia.org/wiki/Affine_transformation">affine
|
---|
| 47 | transformation</ulink> (scale, rotation, shear, etc.).
|
---|
| 48 | </para>
|
---|
[bb41bc7] | 49 |
|
---|
[2839d1e] | 50 | &lfs72_checked;
|
---|
[3af39b1] | 51 |
|
---|
[bb41bc7] | 52 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 53 | <itemizedlist spacing="compact">
|
---|
| 54 | <listitem>
|
---|
[521cea0] | 55 | <para>
|
---|
| 56 | Download (HTTP): <ulink url="&cairo-download-http;"/>
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download (FTP): <ulink url="&cairo-download-ftp;"/>
|
---|
| 62 | </para>
|
---|
[bb41bc7] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[521cea0] | 65 | <para>
|
---|
| 66 | Download MD5 sum: &cairo-md5sum;
|
---|
| 67 | </para>
|
---|
[bb41bc7] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[521cea0] | 70 | <para>
|
---|
| 71 | Download size: &cairo-size;
|
---|
| 72 | </para>
|
---|
[bb41bc7] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[521cea0] | 75 | <para>
|
---|
| 76 | Estimated disk space required: &cairo-buildsize;
|
---|
| 77 | </para>
|
---|
[bb41bc7] | 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
[521cea0] | 80 | <para>
|
---|
| 81 | Estimated build time: &cairo-time;
|
---|
| 82 | </para>
|
---|
[bb41bc7] | 83 | </listitem>
|
---|
[521cea0] | 84 | </itemizedlist>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 87 | <itemizedlist spacing="compact">
|
---|
[bb41bc7] | 88 | <listitem>
|
---|
[521cea0] | 89 | <para>
|
---|
[4db1ba6] | 90 | Required patch (if you intend to compile any Mozilla products):
|
---|
[f575476] | 91 | <ulink url="&patch-root;/cairo-&cairo-version;-expose_snapshot-1.patch"/>
|
---|
[521cea0] | 92 | </para>
|
---|
[bb41bc7] | 93 | </listitem>
|
---|
| 94 | </itemizedlist>
|
---|
| 95 |
|
---|
[4db1ba6] | 96 | <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
|
---|
[bb41bc7] | 97 |
|
---|
| 98 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 99 | <para role="required">
|
---|
[a2912ff] | 100 | <xref linkend="libpng"/>,
|
---|
[b0ae5b7] | 101 | <xref linkend="glib2"/> and
|
---|
| 102 | <xref linkend="pixman"/>
|
---|
[4db1ba6] | 103 | </para>
|
---|
| 104 |
|
---|
[f575476] | 105 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[4db1ba6] | 106 | <para role="recommended">
|
---|
[f575476] | 107 | <xref linkend="fontconfig"/> and
|
---|
[a2912ff] | 108 | <xref linkend="xorg7-lib"/>
|
---|
[b8a081c] | 109 | </para>
|
---|
[bc9c1def] | 110 |
|
---|
[bb41bc7] | 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 112 | <para role="optional">
|
---|
| 113 | <xref linkend="cogl"/>,
|
---|
| 114 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
[f575476] | 115 | <!-- <xref linkend="gs"/> (for testing the postscript backend),
|
---|
| 116 | <xref linkend="gtk2"/> (for testing the PDF backend), -->
|
---|
[b8a081c] | 117 | <xref linkend="gtk-doc"/>,
|
---|
[521cea0] | 118 | <xref linkend="libdrm"/>,
|
---|
[f575476] | 119 | <!-- <xref linkend="librsvg"/> (for testing the SVG backend),
|
---|
[d9cf59b] | 120 | <ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (for
|
---|
[f575476] | 121 | testing the PDF backend), -->
|
---|
[b8a081c] | 122 | <xref linkend="mesalib"/>,
|
---|
[f575476] | 123 | <!-- <xref linkend="poppler"/> (for testing the PDF backend) -->
|
---|
[d99d728] | 124 | <xref linkend="qt"/>,
|
---|
[b8a081c] | 125 | <ulink url="http://code.google.com/p/skia/">Skia</ulink> and
|
---|
[f575476] | 126 | <ulink url="http://www.valgrind.org">Valgrind</ulink>
|
---|
[b8a081c] | 127 | </para>
|
---|
[6e08fa52] | 128 |
|
---|
[f575476] | 129 | <!-- <note>
|
---|
[521cea0] | 130 | <para>
|
---|
[4db1ba6] | 131 | There is a reciprocal dependency with the
|
---|
[a2912ff] | 132 | <application>GTK+ 2</application>, <application>librsvg</application> and
|
---|
[4db1ba6] | 133 | <application>Poppler</application> packages. As the test suite is
|
---|
| 134 | currently unreliable, it is best to simply skip it at this time.
|
---|
[521cea0] | 135 | </para>
|
---|
[f575476] | 136 | </note> -->
|
---|
[521cea0] | 137 |
|
---|
| 138 | <para condition="html" role="usernotes">
|
---|
| 139 | User Notes: <ulink url="&blfs-wiki;/cairo"/>
|
---|
| 140 | </para>
|
---|
[bb41bc7] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="installation">
|
---|
[4db1ba6] | 144 | <title>Installation of Cairo</title>
|
---|
[bb41bc7] | 145 |
|
---|
[521cea0] | 146 | <para>
|
---|
| 147 | Install <application>Cairo</application> by running the following
|
---|
| 148 | commands:
|
---|
| 149 | </para>
|
---|
[bb41bc7] | 150 |
|
---|
[f575476] | 151 | <screen><userinput>patch -Np1 -i ../cairo-&cairo-version;-expose_snapshot-1.patch &&
|
---|
| 152 | ./configure --prefix=/usr \
|
---|
| 153 | --enable-tee \
|
---|
| 154 | --enable-xcb \
|
---|
| 155 | --disable-static &&
|
---|
[bb41bc7] | 156 | make</userinput></screen>
|
---|
| 157 |
|
---|
[f575476] | 158 | <!-- <para>
|
---|
[d9cf59b] | 159 | Note that the tests take a long time to run, many of them fail for unknown
|
---|
[a2912ff] | 160 | reasons and it has been known to cause a kernel panic. If you want to run
|
---|
| 161 | the tests issue: <command>make -k check</command>.
|
---|
[f575476] | 162 | </para> -->
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
| 165 | This package does not have a working testsuite.
|
---|
[521cea0] | 166 | </para>
|
---|
[bb41bc7] | 167 |
|
---|
[521cea0] | 168 | <para>
|
---|
| 169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
[bb41bc7] | 171 |
|
---|
| 172 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
[15a4fb4c] | 175 | <sect2 role="commands">
|
---|
| 176 | <title>Command Explanations</title>
|
---|
| 177 |
|
---|
[afb079c] | 178 | <para>
|
---|
[f575476] | 179 | <option>--enable-tee</option>: This switch enables
|
---|
| 180 | <application>Cairo</application>'s experimental tee
|
---|
| 181 | surface which is required by some packages like
|
---|
| 182 | <application>Firefox</application>.
|
---|
[521cea0] | 183 | </para>
|
---|
[827336dc] | 184 |
|
---|
[521cea0] | 185 | <para>
|
---|
[f575476] | 186 | <option>--enable-xcb</option>: This switch enables
|
---|
| 187 | <application>Cairo</application>'s XCB surface
|
---|
| 188 | which is required by some packages.
|
---|
[97ccf511] | 189 | </para>
|
---|
[827336dc] | 190 |
|
---|
[521cea0] | 191 | <para>
|
---|
[f575476] | 192 | <option>--enable-gl</option>: This switch enables
|
---|
| 193 | <application>Cairo</application>'s experimental
|
---|
| 194 | <application>OpenGL</application> surface which
|
---|
| 195 | is required for <application>Wayland</application>
|
---|
| 196 | and some other packages that are not part of BLFS.
|
---|
[521cea0] | 197 | </para>
|
---|
[bc9c1def] | 198 |
|
---|
[521cea0] | 199 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 200 | href="../../xincludes/static-libraries.xml"/>
|
---|
[97ccf511] | 201 |
|
---|
[521cea0] | 202 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[a2912ff] | 203 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 204 |
|
---|
[15a4fb4c] | 205 | </sect2>
|
---|
| 206 |
|
---|
[bb41bc7] | 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Programs</segtitle>
|
---|
[742b99e] | 212 | <segtitle>Installed Libraries</segtitle>
|
---|
[bb41bc7] | 213 | <segtitle>Installed Directories</segtitle>
|
---|
| 214 |
|
---|
| 215 | <seglistitem>
|
---|
[b8a081c] | 216 | <seg>
|
---|
| 217 | cairo-sphinx and cairo-trace
|
---|
| 218 | </seg>
|
---|
| 219 | <seg>
|
---|
[4db1ba6] | 220 | libcairo.so, libcairo-gobject.so and
|
---|
| 221 | libcairo-script-interpreter.so
|
---|
[b8a081c] | 222 | </seg>
|
---|
| 223 | <seg>
|
---|
[a2912ff] | 224 | /usr/include/cairo,
|
---|
| 225 | /usr/lib/cairo and
|
---|
[b8a081c] | 226 | /usr/share/gtk-doc/html/cairo
|
---|
| 227 | </seg>
|
---|
[bb41bc7] | 228 | </seglistitem>
|
---|
| 229 | </segmentedlist>
|
---|
| 230 |
|
---|
| 231 | <variablelist>
|
---|
| 232 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 233 | <?dbfo list-presentation="list"?>
|
---|
| 234 | <?dbhtml list-presentation="table"?>
|
---|
| 235 |
|
---|
[827336dc] | 236 | <varlistentry id="cairo-trace">
|
---|
| 237 | <term><command>cairo-trace</command></term>
|
---|
| 238 | <listitem>
|
---|
[521cea0] | 239 | <para>
|
---|
| 240 | generates a log of all calls made by an application to
|
---|
| 241 | <application>Cairo</application>.
|
---|
| 242 | </para>
|
---|
[827336dc] | 243 | <indexterm zone="cairo cairo-trace">
|
---|
| 244 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
[bb41bc7] | 249 | <varlistentry id="libcairo">
|
---|
[f575476] | 250 | <term><filename class="libraryfile">libcairo.so</filename></term>
|
---|
[bb41bc7] | 251 | <listitem>
|
---|
[521cea0] | 252 | <para>
|
---|
| 253 | contains the 2D graphics functions required for rendering to the
|
---|
| 254 | various output targets.
|
---|
| 255 | </para>
|
---|
[bb41bc7] | 256 | <indexterm zone="cairo libcairo">
|
---|
[4db1ba6] | 257 | <primary sortas="c-libcairo">libcairo.so</primary>
|
---|
[bb41bc7] | 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
[827336dc] | 262 | <varlistentry id="libcairo-gobject">
|
---|
[4db1ba6] | 263 | <term><filename class='libraryfile'>libcairo-gobject.so</filename></term>
|
---|
[827336dc] | 264 | <listitem>
|
---|
[521cea0] | 265 | <para>
|
---|
| 266 | contains functions that integrate
|
---|
| 267 | <application>Cairo</application> with <xref linkend="glib2"/>'s
|
---|
| 268 | GObject type system.
|
---|
| 269 | </para>
|
---|
[827336dc] | 270 | <indexterm zone="cairo libcairo-gobject">
|
---|
[4db1ba6] | 271 | <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
---|
[827336dc] | 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="libcairo-script-interpreter">
|
---|
[4db1ba6] | 277 | <term><filename class='libraryfile'>libcairo-script-interpreter.so</filename></term>
|
---|
[827336dc] | 278 | <listitem>
|
---|
[521cea0] | 279 | <para>
|
---|
| 280 | contains the script interpreter functions for executing and
|
---|
| 281 | manipulating <application>Cairo</application> execution traces.
|
---|
| 282 | </para>
|
---|
[827336dc] | 283 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
[4db1ba6] | 284 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
---|
[827336dc] | 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
[a2912ff] | 288 |
|
---|
[bb41bc7] | 289 | </variablelist>
|
---|
[a2912ff] | 290 |
|
---|
[bb41bc7] | 291 | </sect2>
|
---|
[a2912ff] | 292 |
|
---|
[bb41bc7] | 293 | </sect1>
|
---|