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 " ">
|
---|
9 | <!ENTITY cairo-md5sum "bddd5c5b734ab4b9683eb0ba363070d4">
|
---|
10 | <!ENTITY cairo-size "41 MB">
|
---|
11 | <!ENTITY cairo-buildsize "185 MB">
|
---|
12 | <!ENTITY cairo-time "1.1 SBU">
|
---|
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>
|
---|
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 |
|
---|
50 | &lfs72_checked;
|
---|
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">Additional Downloads</bridgehead>
|
---|
87 | <itemizedlist spacing="compact">
|
---|
88 | <listitem>
|
---|
89 | <para>
|
---|
90 | Required patch:
|
---|
91 | <ulink url="&patch-root;/cairo-&cairo-version;-upstream_fix-1.patch"/>
|
---|
92 | </para>
|
---|
93 | </listitem>
|
---|
94 | </itemizedlist>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
99 | <para role="required">
|
---|
100 | <xref linkend="libpng"/>,
|
---|
101 | <xref linkend="glib2"/> and
|
---|
102 | <xref linkend="pixman"/>
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
106 | <para role="recommended">
|
---|
107 | <xref linkend="fontconfig"/> and
|
---|
108 | <xref linkend="xorg7-lib"/>
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
112 | <para role="optional">
|
---|
113 | <xref linkend="cogl"/>,
|
---|
114 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
115 | <!-- <xref linkend="gs"/> (for testing the postscript backend),
|
---|
116 | <xref linkend="gtk2"/> (for testing the PDF backend), -->
|
---|
117 | <xref linkend="gtk-doc"/>,
|
---|
118 | <xref linkend="libdrm"/>,
|
---|
119 | <!-- <xref linkend="librsvg"/> (for testing the SVG backend),
|
---|
120 | <ulink url="http://libspectre.freedesktop.org">libspectre</ulink> (for
|
---|
121 | testing the PDF backend), -->
|
---|
122 | <xref linkend="mesalib"/>,
|
---|
123 | <!-- <xref linkend="poppler"/> (for testing the PDF backend) -->
|
---|
124 | <xref linkend="qt"/>,
|
---|
125 | <ulink url="http://code.google.com/p/skia/">Skia</ulink> and
|
---|
126 | <ulink url="http://www.valgrind.org">Valgrind</ulink>
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | <!-- <note>
|
---|
130 | <para>
|
---|
131 | There is a reciprocal dependency with the
|
---|
132 | <application>GTK+ 2</application>, <application>librsvg</application> and
|
---|
133 | <application>Poppler</application> packages. As the test suite is
|
---|
134 | currently unreliable, it is best to simply skip it at this time.
|
---|
135 | </para>
|
---|
136 | </note> -->
|
---|
137 |
|
---|
138 | <para condition="html" role="usernotes">
|
---|
139 | User Notes: <ulink url="&blfs-wiki;/cairo"/>
|
---|
140 | </para>
|
---|
141 | </sect2>
|
---|
142 |
|
---|
143 | <sect2 role="installation">
|
---|
144 | <title>Installation of Cairo</title>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | Install <application>Cairo</application> by running the following
|
---|
148 | commands:
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | <screen><userinput>patch -Np1 -i ../cairo-&cairo-version;-upstream_fix-1.patch &&
|
---|
152 | ./configure --prefix=/usr \
|
---|
153 | --enable-tee \
|
---|
154 | --enable-xcb \
|
---|
155 | --disable-static &&
|
---|
156 | make</userinput></screen>
|
---|
157 |
|
---|
158 | <!-- <para>
|
---|
159 | Note that the tests take a long time to run, many of them fail for unknown
|
---|
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>.
|
---|
162 | </para> -->
|
---|
163 |
|
---|
164 | <para>
|
---|
165 | This package does not have a working testsuite.
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <para>
|
---|
169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
173 | </sect2>
|
---|
174 |
|
---|
175 | <sect2 role="commands">
|
---|
176 | <title>Command Explanations</title>
|
---|
177 |
|
---|
178 | <para>
|
---|
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>.
|
---|
183 | </para>
|
---|
184 |
|
---|
185 | <para>
|
---|
186 | <option>--enable-xcb</option>: This switch enables
|
---|
187 | <application>Cairo</application>'s XCB surface
|
---|
188 | which is required by some packages.
|
---|
189 | </para>
|
---|
190 |
|
---|
191 | <para>
|
---|
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.
|
---|
197 | </para>
|
---|
198 |
|
---|
199 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
200 | href="../../xincludes/static-libraries.xml"/>
|
---|
201 |
|
---|
202 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
203 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
204 |
|
---|
205 | </sect2>
|
---|
206 |
|
---|
207 | <sect2 role="content">
|
---|
208 | <title>Contents</title>
|
---|
209 |
|
---|
210 | <segmentedlist>
|
---|
211 | <segtitle>Installed Programs</segtitle>
|
---|
212 | <segtitle>Installed Libraries</segtitle>
|
---|
213 | <segtitle>Installed Directories</segtitle>
|
---|
214 |
|
---|
215 | <seglistitem>
|
---|
216 | <seg>
|
---|
217 | cairo-sphinx and cairo-trace
|
---|
218 | </seg>
|
---|
219 | <seg>
|
---|
220 | libcairo.so, libcairo-gobject.so and
|
---|
221 | libcairo-script-interpreter.so
|
---|
222 | </seg>
|
---|
223 | <seg>
|
---|
224 | /usr/include/cairo,
|
---|
225 | /usr/lib/cairo and
|
---|
226 | /usr/share/gtk-doc/html/cairo
|
---|
227 | </seg>
|
---|
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 |
|
---|
236 | <varlistentry id="cairo-trace">
|
---|
237 | <term><command>cairo-trace</command></term>
|
---|
238 | <listitem>
|
---|
239 | <para>
|
---|
240 | generates a log of all calls made by an application to
|
---|
241 | <application>Cairo</application>.
|
---|
242 | </para>
|
---|
243 | <indexterm zone="cairo cairo-trace">
|
---|
244 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
245 | </indexterm>
|
---|
246 | </listitem>
|
---|
247 | </varlistentry>
|
---|
248 |
|
---|
249 | <varlistentry id="libcairo">
|
---|
250 | <term><filename class="libraryfile">libcairo.so</filename></term>
|
---|
251 | <listitem>
|
---|
252 | <para>
|
---|
253 | contains the 2D graphics functions required for rendering to the
|
---|
254 | various output targets.
|
---|
255 | </para>
|
---|
256 | <indexterm zone="cairo libcairo">
|
---|
257 | <primary sortas="c-libcairo">libcairo.so</primary>
|
---|
258 | </indexterm>
|
---|
259 | </listitem>
|
---|
260 | </varlistentry>
|
---|
261 |
|
---|
262 | <varlistentry id="libcairo-gobject">
|
---|
263 | <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
|
---|
264 | <listitem>
|
---|
265 | <para>
|
---|
266 | contains functions that integrate
|
---|
267 | <application>Cairo</application> with <xref linkend="glib2"/>'s
|
---|
268 | GObject type system.
|
---|
269 | </para>
|
---|
270 | <indexterm zone="cairo libcairo-gobject">
|
---|
271 | <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
---|
272 | </indexterm>
|
---|
273 | </listitem>
|
---|
274 | </varlistentry>
|
---|
275 |
|
---|
276 | <varlistentry id="libcairo-script-interpreter">
|
---|
277 | <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
|
---|
278 | <listitem>
|
---|
279 | <para>
|
---|
280 | contains the script interpreter functions for executing and
|
---|
281 | manipulating <application>Cairo</application> execution traces.
|
---|
282 | </para>
|
---|
283 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
284 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
---|
285 | </indexterm>
|
---|
286 | </listitem>
|
---|
287 | </varlistentry>
|
---|
288 |
|
---|
289 | </variablelist>
|
---|
290 |
|
---|
291 | </sect2>
|
---|
292 |
|
---|
293 | </sect1>
|
---|