source: x/lib/cairo.xml@ 2e6472e6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2e6472e6 was baac59c, checked in by Pierre Labastie <pieere@…>, 4 years ago

Format x/lib xchpater

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22866 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.2 KB
Line 
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 <!--
8 <!ENTITY cairo-download-http "https://www.cairographics.org/releases/cairo-&cairo-version;.tar.xz">
9 -->
10 <!ENTITY cairo-download-http "&sources-anduin-http;/cairo/cairo-&cairo-version;.tar.xz">
11 <!ENTITY cairo-download-ftp " ">
12 <!ENTITY cairo-md5sum "23a9420780f74ad0ca1e9885e53ee022">
13 <!ENTITY cairo-size "40 MB">
14 <!ENTITY cairo-buildsize "148 MB">
15 <!ENTITY cairo-time "0.9 SBU">
16]>
17
18<sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
19 <?dbhtml filename="cairo.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Cairo-&cairo-version;</title>
27
28 <indexterm zone="cairo">
29 <primary sortas="a-Cairo">Cairo</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Cairo</title>
34
35 <para>
36 <application>Cairo</application> is a 2D graphics library with support for
37 multiple output devices. Currently supported output targets include the
38 <application>X</application> Window System, win32, image buffers,
39 PostScript, PDF and SVG. Experimental backends include OpenGL, Quartz and
40 XCB file output. <application>Cairo</application> is designed to produce
41 consistent output on all output media while taking advantage of display
42 hardware acceleration when available (e.g., through the X Render
43 Extension). The <application>Cairo</application> API provides operations
44 similar to the drawing operators of PostScript and PDF. Operations in
45 <application>Cairo</application> include stroking and filling cubic
46 B&eacute;zier splines, transforming and compositing translucent images,
47 and antialiased text rendering. All drawing operations can be transformed
48 by any
49 <ulink url="http://en.wikipedia.org/wiki/Affine_transformation">affine
50 transformation</ulink> (scale, rotation, shear, etc.).
51 </para>
52
53 &lfs91_checked;
54
55 <bridgehead renderas="sect3">Package Information</bridgehead>
56 <itemizedlist spacing="compact">
57 <listitem>
58 <para>
59 Download (HTTP): <ulink url="&cairo-download-http;"/>
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download (FTP): <ulink url="&cairo-download-ftp;"/>
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Download MD5 sum: &cairo-md5sum;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Download size: &cairo-size;
75 </para>
76 </listitem>
77 <listitem>
78 <para>
79 Estimated disk space required: &cairo-buildsize;
80 </para>
81 </listitem>
82 <listitem>
83 <para>
84 Estimated build time: &cairo-time;
85 </para>
86 </listitem>
87 </itemizedlist>
88
89 <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
90
91 <bridgehead renderas="sect4">Required</bridgehead>
92 <para role="required">
93 <xref linkend="libpng"/> and
94 <xref linkend="pixman"/>
95 </para>
96
97 <bridgehead renderas="sect4">Recommended</bridgehead>
98 <para role="recommended">
99 <xref linkend="fontconfig"/>,
100 <xref linkend="glib2"/> (required for most GUIs) and
101 <xref linkend="xorg7-lib"/>
102 </para>
103
104 <bridgehead renderas="sect4">Optional</bridgehead>
105 <para role="optional">
106 <xref linkend="cogl"/>,
107 <xref linkend="gs"/>,
108 <xref linkend="gtk3"/> and <xref linkend="gtk2"/>,
109 <xref linkend="gtk-doc"/>,
110 <xref linkend="libdrm"/>,
111 <xref linkend="librsvg"/>,
112 <xref linkend="libxml2"/>,
113 <xref linkend="lzo"/>,
114 <xref linkend="mesa"/>,
115 <xref linkend="poppler"/>,
116 <xref linkend="qt5"/>,
117 <xref linkend="valgrind"/>,
118 <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
119 <ulink url="https://github.com/rillian/jbig2dec/">jbig2dec</ulink>,
120 <ulink url="https://www.freedesktop.org/wiki/Software/libspectre/">libspectre</ulink>,
121 <ulink url="https://skia.org/">Skia</ulink>, and
122 <ulink url="http://download.qt.io/archive/qt/4.8/">Qt4</ulink>.
123 </para>
124
125 <note>
126 <para>
127 There is a circular dependency between cairo and harfbuzz.
128 If cairo is built before harfbuzz, it is necessary to rebuild cairo
129 after harfbuzz in order to build pango.
130 </para>
131 </note>
132
133 <para condition="html" role="usernotes">
134 User Notes: <ulink url="&blfs-wiki;/cairo"/>
135 </para>
136 </sect2>
137
138 <sect2 role="installation">
139 <title>Installation of Cairo</title>
140
141 <para>
142 Install <application>Cairo</application> by running the following
143 commands:
144 </para>
145
146<screen><userinput>./configure --prefix=/usr \
147 --disable-static \
148 --enable-tee &amp;&amp;
149make</userinput></screen>
150
151 <para>
152 This package does not have a working testsuite.
153 </para>
154
155 <para>
156 Now, as the <systemitem class="username">root</systemitem> user:
157 </para>
158
159<screen role="root"><userinput>make install</userinput></screen>
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para>
166 <parameter>--enable-tee</parameter>: This switch enables the
167 experimental tee surface backend which is required if using
168 system-installed <application>Cairo</application> with Mozilla applications.
169 </para>
170
171 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
172 href="../../xincludes/static-libraries.xml"/>
173
174 <para>
175 <option>--enable-xlib-xcb</option>: This switch enables several
176 experimental Xlib/XCB functions used by some window managers.
177 </para>
178
179 <para>
180 <option>--enable-gl</option>: This switch enables
181 <application>Cairo</application>'s experimental
182 <application>OpenGL</application> surface which
183 is required for <application>Wayland</application>
184 compositor and some other packages that are not
185 part of BLFS.
186 </para>
187
188 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
189 href="../../xincludes/gtk-doc-rebuild.xml"/>
190
191 </sect2>
192
193 <sect2 role="content">
194 <title>Contents</title>
195
196 <segmentedlist>
197 <segtitle>Installed Programs</segtitle>
198 <segtitle>Installed Libraries</segtitle>
199 <segtitle>Installed Directories</segtitle>
200
201 <seglistitem>
202 <seg>
203 cairo-sphinx and cairo-trace
204 </seg>
205 <seg>
206 libcairo.so, libcairo-gobject.so and
207 libcairo-script-interpreter.so
208 </seg>
209 <seg>
210 /usr/{include,lib,share/gtk-doc/html}/cairo
211 </seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="cairo-sphinx">
221 <term><command>cairo-sphinx</command></term>
222 <listitem>
223 <para>
224 is an internal utility for regression analysis.
225 </para>
226 <indexterm zone="cairo cairo-sphinx">
227 <primary sortas="b-cairo-sphinx">cairo-sphinx</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="cairo-trace">
233 <term><command>cairo-trace</command></term>
234 <listitem>
235 <para>
236 generates a log of all calls made by an application to
237 <application>Cairo</application>.
238 </para>
239 <indexterm zone="cairo cairo-trace">
240 <primary sortas="b-cairo-trace">cairo-trace</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="libcairo">
246 <term><filename class="libraryfile">libcairo.so</filename></term>
247 <listitem>
248 <para>
249 contains the 2D graphics functions required for rendering to the
250 various output targets.
251 </para>
252 <indexterm zone="cairo libcairo">
253 <primary sortas="c-libcairo">libcairo.so</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="libcairo-gobject">
259 <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
260 <listitem>
261 <para>
262 contains functions that integrate
263 <application>Cairo</application> with
264 <application>Glib</application>'s GObject type system.
265 </para>
266 <indexterm zone="cairo libcairo-gobject">
267 <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="libcairo-script-interpreter">
273 <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
274 <listitem>
275 <para>
276 contains the script interpreter functions for executing and
277 manipulating <application>Cairo</application> execution traces.
278 </para>
279 <indexterm zone="cairo libcairo-script-interpreter">
280 <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 </variablelist>
286
287 </sect2>
288
289</sect1>
Note: See TracBrowser for help on using the repository browser.