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 "https://www.cairographics.org/releases/cairo-&cairo-version;.tar.xz">
|
---|
8 | <!ENTITY cairo-download-ftp " ">
|
---|
9 | <!ENTITY cairo-md5sum "f19e0353828269c22bd72e271243a552">
|
---|
10 | <!ENTITY cairo-size "41 MB">
|
---|
11 | <!ENTITY cairo-buildsize "137 MB">
|
---|
12 | <!ENTITY cairo-time "0.4 SBU (using parallelism=4)">
|
---|
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 | &lfs83_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">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"/> (required for most GUIs) 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="gs"/>,
|
---|
105 | <xref linkend="gtk3"/> and <xref linkend="gtk2"/>,
|
---|
106 | <xref linkend="gtk-doc"/>,
|
---|
107 | <xref linkend="libdrm"/>,
|
---|
108 | <xref linkend="librsvg"/>,
|
---|
109 | <xref linkend="lzo"/>,
|
---|
110 | <xref linkend="mesa"/>,
|
---|
111 | <xref linkend="poppler"/>,
|
---|
112 | <xref linkend="valgrind"/>,
|
---|
113 | <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
|
---|
114 | <ulink url="https://github.com/rillian/jbig2dec/">jbig2dec</ulink>,
|
---|
115 | <ulink url="https://www.freedesktop.org/wiki/Software/libspectre/">libspectre</ulink>,
|
---|
116 | <ulink url="https://skia.org/">Skia</ulink>, and
|
---|
117 | <ulink url="http://download.qt.io/official_releases/qt/4.8/">Qt4</ulink>.
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <para condition="html" role="usernotes">
|
---|
121 | User Notes: <ulink url="&blfs-wiki;/cairo"/>
|
---|
122 | </para>
|
---|
123 | </sect2>
|
---|
124 |
|
---|
125 | <sect2 role="installation">
|
---|
126 | <title>Installation of Cairo</title>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Install <application>Cairo</application> by running the following
|
---|
130 | commands:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen><userinput>./configure --prefix=/usr \
|
---|
134 | --disable-static \
|
---|
135 | --enable-tee &&
|
---|
136 | make</userinput></screen>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | This package does not have a working testsuite.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | <sect2 role="commands">
|
---|
150 | <title>Command Explanations</title>
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | <parameter>--enable-tee</parameter>: This switch enables the
|
---|
154 | experimental tee surface backend which is required if using
|
---|
155 | system-installed <application>Cairo</application> with Mozilla applications.
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
159 | href="../../xincludes/static-libraries.xml"/>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | <option>--enable-xlib-xcb</option>: This switch enables several
|
---|
163 | experimental Xlib/XCB functions used by some window managers.
|
---|
164 | </para>
|
---|
165 |
|
---|
166 | <para>
|
---|
167 | <option>--enable-gl</option>: This switch enables
|
---|
168 | <application>Cairo</application>'s experimental
|
---|
169 | <application>OpenGL</application> surface which
|
---|
170 | is required for <application>Wayland</application>
|
---|
171 | compositor and some other packages that are not
|
---|
172 | part of BLFS.
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
176 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | <sect2 role="content">
|
---|
181 | <title>Contents</title>
|
---|
182 |
|
---|
183 | <segmentedlist>
|
---|
184 | <segtitle>Installed Programs</segtitle>
|
---|
185 | <segtitle>Installed Libraries</segtitle>
|
---|
186 | <segtitle>Installed Directories</segtitle>
|
---|
187 |
|
---|
188 | <seglistitem>
|
---|
189 | <seg>
|
---|
190 | cairo-sphinx and cairo-trace
|
---|
191 | </seg>
|
---|
192 | <seg>
|
---|
193 | libcairo.so, libcairo-gobject.so and
|
---|
194 | libcairo-script-interpreter.so
|
---|
195 | </seg>
|
---|
196 | <seg>
|
---|
197 | /usr/{include,lib,share/gtk-doc/html}/cairo
|
---|
198 | </seg>
|
---|
199 | </seglistitem>
|
---|
200 | </segmentedlist>
|
---|
201 |
|
---|
202 | <variablelist>
|
---|
203 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
204 | <?dbfo list-presentation="list"?>
|
---|
205 | <?dbhtml list-presentation="table"?>
|
---|
206 |
|
---|
207 | <varlistentry id="cairo-sphinx">
|
---|
208 | <term><command>cairo-sphinx</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>
|
---|
211 | is an internal utility for regression analysis.
|
---|
212 | </para>
|
---|
213 | <indexterm zone="cairo cairo-sphinx">
|
---|
214 | <primary sortas="b-cairo-sphinx">cairo-sphinx</primary>
|
---|
215 | </indexterm>
|
---|
216 | </listitem>
|
---|
217 | </varlistentry>
|
---|
218 |
|
---|
219 | <varlistentry id="cairo-trace">
|
---|
220 | <term><command>cairo-trace</command></term>
|
---|
221 | <listitem>
|
---|
222 | <para>
|
---|
223 | generates a log of all calls made by an application to
|
---|
224 | <application>Cairo</application>.
|
---|
225 | </para>
|
---|
226 | <indexterm zone="cairo cairo-trace">
|
---|
227 | <primary sortas="b-cairo-trace">cairo-trace</primary>
|
---|
228 | </indexterm>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 |
|
---|
232 | <varlistentry id="libcairo">
|
---|
233 | <term><filename class="libraryfile">libcairo.so</filename></term>
|
---|
234 | <listitem>
|
---|
235 | <para>
|
---|
236 | contains the 2D graphics functions required for rendering to the
|
---|
237 | various output targets.
|
---|
238 | </para>
|
---|
239 | <indexterm zone="cairo libcairo">
|
---|
240 | <primary sortas="c-libcairo">libcairo.so</primary>
|
---|
241 | </indexterm>
|
---|
242 | </listitem>
|
---|
243 | </varlistentry>
|
---|
244 |
|
---|
245 | <varlistentry id="libcairo-gobject">
|
---|
246 | <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
|
---|
247 | <listitem>
|
---|
248 | <para>
|
---|
249 | contains functions that integrate
|
---|
250 | <application>Cairo</application> with
|
---|
251 | <application>Glib</application>'s GObject type system.
|
---|
252 | </para>
|
---|
253 | <indexterm zone="cairo libcairo-gobject">
|
---|
254 | <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="libcairo-script-interpreter">
|
---|
260 | <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | contains the script interpreter functions for executing and
|
---|
264 | manipulating <application>Cairo</application> execution traces.
|
---|
265 | </para>
|
---|
266 | <indexterm zone="cairo libcairo-script-interpreter">
|
---|
267 | <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | </variablelist>
|
---|
273 |
|
---|
274 | </sect2>
|
---|
275 |
|
---|
276 | </sect1>
|
---|