[ac38e9dc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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.xz">
|
---|
| 8 | <!ENTITY cairo-download-ftp " ">
|
---|
[a7e1ac8] | 9 | <!ENTITY cairo-md5sum "23a0b2f0235431d35238df1d3a517fdb">
|
---|
| 10 | <!ENTITY cairo-size "35 MB">
|
---|
| 11 | <!ENTITY cairo-buildsize "144 MB">
|
---|
[ac38e9dc] | 12 | <!ENTITY cairo-time "0.8 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
|
---|
| 16 | <?dbhtml filename="cairo.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[3acf108] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[ac38e9dc] | 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>
|
---|
| 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
|
---|
| 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
|
---|
| 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>
|
---|
| 49 |
|
---|
[383a1cd0] | 50 | &lfs79_checked;
|
---|
[ac38e9dc] | 51 |
|
---|
| 52 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 53 | <itemizedlist spacing="compact">
|
---|
| 54 | <listitem>
|
---|
| 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>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Download MD5 sum: &cairo-md5sum;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Download size: &cairo-size;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Estimated disk space required: &cairo-buildsize;
|
---|
| 77 | </para>
|
---|
| 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>
|
---|
| 81 | Estimated build time: &cairo-time;
|
---|
| 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 89 | <para role="required">
|
---|
| 90 | <xref linkend="libpng"/> and
|
---|
| 91 | <xref linkend="pixman"/>
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 95 | <para role="recommended">
|
---|
| 96 | <xref linkend="fontconfig"/>,
|
---|
| 97 | <xref linkend="glib2"/>, and
|
---|
| 98 | <xref linkend="xorg7-lib"/>
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
| 103 | <xref linkend="cogl"/>,
|
---|
| 104 | <xref linkend="gtk-doc"/>,
|
---|
| 105 | <xref linkend="libdrm"/>,
|
---|
| 106 | <xref linkend="lzo"/>,
|
---|
[ba8cf0e] | 107 | <xref linkend="mesa"/>,
|
---|
[ac38e9dc] | 108 | <xref linkend="qt4"/>,
|
---|
| 109 | <xref linkend="valgrind"/>,
|
---|
[a7e1ac8] | 110 | <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
|
---|
[ac38e9dc] | 111 | <ulink url="https://github.com/rillian/jbig2dec/">jbig2dec</ulink>, and
|
---|
| 112 | <ulink url="http://code.google.com/p/skia/">Skia</ulink>
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <para condition="html" role="usernotes">
|
---|
| 116 | User Notes: <ulink url="&blfs-wiki;/cairo"/>
|
---|
| 117 | </para>
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2 role="installation">
|
---|
| 121 | <title>Installation of Cairo</title>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | Install <application>Cairo</application> by running the following
|
---|
| 125 | commands:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 129 | --disable-static \
|
---|
| 130 | --enable-tee &&
|
---|
| 131 | make</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | <para>
|
---|
| 134 | This package does not have a working testsuite.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="commands">
|
---|
| 145 | <title>Command Explanations</title>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
[383a1cd0] | 148 | <parameter>--enable-tee</parameter>: This switch enables the experimental tee
|
---|
[ac38e9dc] | 149 | surface backend which is required if using system-installed
|
---|
| 150 | <application>Cairo</application> with Mozilla applications.
|
---|
| 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 154 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <option>--enable-xlib-xcb</option>: This switch enables experimental
|
---|
| 158 | Xlib/XCB functions used by some window managers.
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
| 162 | <option>--enable-gl</option>: This switch enables
|
---|
| 163 | <application>Cairo</application>'s experimental
|
---|
| 164 | <application>OpenGL</application> surface which
|
---|
| 165 | is required for <application>Wayland</application>
|
---|
| 166 | compositor and some other packages that are not
|
---|
| 167 | part of BLFS.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 171 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
| 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Programs</segtitle>
|
---|
| 180 | <segtitle>Installed Libraries</segtitle>
|
---|
| 181 | <segtitle>Installed Directories</segtitle>
|
---|
| 182 |
|
---|
| 183 | <seglistitem>
|
---|
| 184 | <seg>
|
---|
[a7e1ac8] | 185 | cairo-sphinx
|
---|
| 186 | and cairo-trace
|
---|
[ac38e9dc] | 187 | </seg>
|
---|
| 188 | <seg>
|
---|
[a7e1ac8] | 189 | libcairo.so,
|
---|
| 190 | libcairo-gobject.so, and
|
---|
[ac38e9dc] | 191 | libcairo-script-interpreter.so
|
---|
| 192 | </seg>
|
---|
| 193 | <seg>
|
---|
| 194 | /usr/include/cairo,
|
---|
| 195 | /usr/lib/cairo and
|
---|
| 196 | /usr/share/gtk-doc/html/cairo
|
---|
| 197 | </seg>
|
---|
| 198 | </seglistitem>
|
---|
| 199 | </segmentedlist>
|
---|
| 200 |
|
---|
| 201 | <variablelist>
|
---|
| 202 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 203 | <?dbfo list-presentation="list"?>
|
---|
| 204 | <?dbhtml list-presentation="table"?>
|
---|
| 205 |
|
---|
[a7e1ac8] | 206 | <varlistentry id="cairo-sphinx">
|
---|
| 207 | <term><command>cairo-sphinx</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | is an internal utility for regression analysis.
|
---|
| 211 | </para>
|
---|
| 212 | <indexterm zone="cairo cairo-sphinx">
|
---|
| 213 | <primary sortas="b-cairo-sphinx">cairo-sphinx</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[ac38e9dc] | 218 | <varlistentry id="cairo-trace">
|
---|
| 219 | <term><command>cairo-trace</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
| 222 | generates a log of all calls made by an application to
|
---|
| 223 | <application>Cairo</application>.
|
---|
| 224 | </para>
|
---|
| 225 | <indexterm zone="cairo cairo-trace">
|
---|
| 226 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="libcairo">
|
---|
| 232 | <term><filename class="libraryfile">libcairo.so</filename></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | contains the 2D graphics functions required for rendering to the
|
---|
| 236 | various output targets.
|
---|
| 237 | </para>
|
---|
| 238 | <indexterm zone="cairo libcairo">
|
---|
| 239 | <primary sortas="c-libcairo">libcairo.so</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="libcairo-gobject">
|
---|
| 245 | <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>
|
---|
| 248 | contains functions that integrate
|
---|
| 249 | <application>Cairo</application> with <xref linkend="glib2"/>'s
|
---|
| 250 | GObject type system.
|
---|
| 251 | </para>
|
---|
| 252 | <indexterm zone="cairo libcairo-gobject">
|
---|
| 253 | <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="libcairo-script-interpreter">
|
---|
| 259 | <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>
|
---|
| 262 | contains the script interpreter functions for executing and
|
---|
| 263 | manipulating <application>Cairo</application> execution traces.
|
---|
| 264 | </para>
|
---|
| 265 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
| 266 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
| 271 | </variablelist>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
| 274 |
|
---|
| 275 | </sect1>
|
---|