source: x/lib/cairo.xml@ 0945dd2d

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 0945dd2d was ac0d66d, checked in by Douglas R. Reno <renodr@…>, 16 months ago

Tags for PHP dependencies

  • Property mode set to 100644
File size: 10.6 KB
RevLine 
[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
[a5fe42a]7 <!ENTITY cairo-download-http "&gnome-download-http;/cairo/&cairo-minor;/cairo-&cairo-version;.tar.xz">
8 <!--<!ENTITY cairo-download-http "https://www.cairographics.org/snapshots/cairo-&cairo-version;.tar.xz">
9 <!ENTITY cairo-download-http "&sources-anduin-http;/cairo/cairo-&cairo-version;.tar.xz">-->
[97ccf511]10 <!ENTITY cairo-download-ftp " ">
[3c51a6e]11 <!ENTITY cairo-md5sum "c5a6f255af72a2e5faa8e6a53dd882e2">
12 <!ENTITY cairo-size "33 MB">
13 <!ENTITY cairo-buildsize "137 MB">
14 <!ENTITY cairo-time "0.4 SBU (Using parallelism=4)">
[bb41bc7]15]>
16
[a2912ff]17<sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
[bb41bc7]18 <?dbhtml filename="cairo.html"?>
19
20
[a2912ff]21 <title>Cairo-&cairo-version;</title>
[bb41bc7]22
23 <indexterm zone="cairo">
[a2912ff]24 <primary sortas="a-Cairo">Cairo</primary>
[bb41bc7]25 </indexterm>
26
27 <sect2 role="package">
[4db1ba6]28 <title>Introduction to Cairo</title>
[bb41bc7]29
[521cea0]30 <para>
31 <application>Cairo</application> is a 2D graphics library with support for
32 multiple output devices. Currently supported output targets include the
33 <application>X</application> Window System, win32, image buffers,
34 PostScript, PDF and SVG. Experimental backends include OpenGL, Quartz and
[68d01360]35 XCB file output. <application>Cairo</application> is designed to produce
36 consistent output on all output media while taking advantage of display
37 hardware acceleration when available (e.g., through the X Render
38 Extension). The <application>Cairo</application> API provides operations
39 similar to the drawing operators of PostScript and PDF. Operations in
[521cea0]40 <application>Cairo</application> include stroking and filling cubic
41 B&eacute;zier splines, transforming and compositing translucent images,
42 and antialiased text rendering. All drawing operations can be transformed
43 by any
[87fc185]44 <ulink url="https://en.wikipedia.org/wiki/Affine_transformation">affine
[521cea0]45 transformation</ulink> (scale, rotation, shear, etc.).
46 </para>
[bb41bc7]47
[ac0d66d]48 &lfs113_checked;
[3af39b1]49
[bb41bc7]50 <bridgehead renderas="sect3">Package Information</bridgehead>
51 <itemizedlist spacing="compact">
52 <listitem>
[521cea0]53 <para>
54 Download (HTTP): <ulink url="&cairo-download-http;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download (FTP): <ulink url="&cairo-download-ftp;"/>
60 </para>
[bb41bc7]61 </listitem>
62 <listitem>
[521cea0]63 <para>
64 Download MD5 sum: &cairo-md5sum;
65 </para>
[bb41bc7]66 </listitem>
67 <listitem>
[521cea0]68 <para>
69 Download size: &cairo-size;
70 </para>
[bb41bc7]71 </listitem>
72 <listitem>
[521cea0]73 <para>
74 Estimated disk space required: &cairo-buildsize;
75 </para>
[bb41bc7]76 </listitem>
77 <listitem>
[521cea0]78 <para>
79 Estimated build time: &cairo-time;
80 </para>
[bb41bc7]81 </listitem>
[521cea0]82 </itemizedlist>
83
[4db1ba6]84 <bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
[bb41bc7]85
86 <bridgehead renderas="sect4">Required</bridgehead>
[b8a081c]87 <para role="required">
[1cfd61d]88 <xref linkend="libpng"/> and
[b0ae5b7]89 <xref linkend="pixman"/>
[4db1ba6]90 </para>
91
[f575476]92 <bridgehead renderas="sect4">Recommended</bridgehead>
[4db1ba6]93 <para role="recommended">
[1cfd61d]94 <xref linkend="fontconfig"/>,
[3df8ea47]95 <xref linkend="glib2"/> (required for most GUIs), and
[a2912ff]96 <xref linkend="xorg7-lib"/>
[b8a081c]97 </para>
[bc9c1def]98
[bb41bc7]99 <bridgehead renderas="sect4">Optional</bridgehead>
[b8a081c]100 <para role="optional">
101 <xref linkend="cogl"/>,
[11d14a27]102 <xref linkend="gs"/>,
103 <xref linkend="gtk3"/> and <xref linkend="gtk2"/>,
[b8a081c]104 <xref linkend="gtk-doc"/>,
[521cea0]105 <xref linkend="libdrm"/>,
[11d14a27]106 <xref linkend="librsvg"/>,
[f68e46f]107 <xref linkend="libxml2"/>,
[652b18b]108 <xref linkend="lzo"/>,
[7a395d1]109 <xref linkend="mesa"/>,
[11d14a27]110 <xref linkend="poppler"/>,
[f68e46f]111 <xref linkend="qt5"/>,
[ae629f3]112 <xref linkend="valgrind"/>,
[87fc185]113 <ulink url="https://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
[11d14a27]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
[87fc185]117 <ulink url="https://download.qt.io/archive/qt/4.8/">Qt4</ulink>.
[b8a081c]118 </para>
[6e08fa52]119
[baac59c]120 <note>
121 <para>
122 There is a circular dependency between cairo and harfbuzz.
123 If cairo is built before harfbuzz, it is necessary to rebuild cairo
124 after harfbuzz in order to build pango.
125 </para>
126 </note>
[e641675]127
[521cea0]128 <para condition="html" role="usernotes">
129 User Notes: <ulink url="&blfs-wiki;/cairo"/>
130 </para>
[bb41bc7]131 </sect2>
132
133 <sect2 role="installation">
[4db1ba6]134 <title>Installation of Cairo</title>
[bb41bc7]135
[35a179c8]136 <!-- /usr/include/ansidecl.h says "This file is part of the GNU C
137 Library", but it's actually installed by Binutils. -->
[ba3b0498]138 <para>
[35a179c8]139 Adapt this package for Binutils-2.39 or later:
[ba3b0498]140 </para>
141
142<screen><userinput>sed 's/PTR/void */' -i util/cairo-trace/lookup-symbol.c</userinput></screen>
143
[8969d72]144 <para>
145 Fix a pkg-config file that may cause errors later:
146 </para>
147
148<screen><userinput>sed -e "/@prefix@/a exec_prefix=@exec_prefix@" \
149 -i util/cairo-script/cairo-script-interpreter.pc.in</userinput></screen>
150
[521cea0]151 <para>
152 Install <application>Cairo</application> by running the following
153 commands:
154 </para>
[bb41bc7]155
[a2ce753]156<screen><userinput>./configure --prefix=/usr \
[9ad08f8]157 --disable-static \
158 --enable-tee &amp;&amp;
[bb41bc7]159make</userinput></screen>
160
[f575476]161 <para>
[48771ae]162 This package does not have a working test suite.
[a2ce753]163 <!-- The test suite can be run with 'make check', but 488 tests fail and
164 59 tests pass. This seems to be due to minute changes in the expected
165 output, similar to librsvg's tests. Since it's a huge chunk of the tests,
166 let's keep it as "broken" for now.-->
[521cea0]167 </para>
[bb41bc7]168
[521cea0]169 <para>
170 Now, as the <systemitem class="username">root</systemitem> user:
171 </para>
[bb41bc7]172
173<screen role="root"><userinput>make install</userinput></screen>
174 </sect2>
175
[15a4fb4c]176 <sect2 role="commands">
177 <title>Command Explanations</title>
178
[a2ce753]179<!-- Not needed with 1.17.4
[e24dbc2]180 <para>
[1ea3b96]181 <parameter>autoreconf -fv</parameter>: This prevents
[e24dbc2]182 <command>configure</command> ending in error with the current version
183 of <application>automake</application> because the AM_INIT_AUTOMAKE
184 definitions came from a previous version.
185 </para>
[a2ce753]186-->
[e24dbc2]187
[7251b1d]188 <para>
[8558044]189 <parameter>--enable-tee</parameter>: This switch enables the
190 experimental tee surface backend which is required if using
[11d14a27]191 system-installed <application>Cairo</application> with Mozilla applications.
[7251b1d]192 </para>
193
[a98acfe7]194 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
195 href="../../xincludes/static-libraries.xml"/>
[827336dc]196
[74520e8]197 <para>
[11d14a27]198 <option>--enable-xlib-xcb</option>: This switch enables several
[5ec23d4]199 experimental Xlib/XCB functions used by some window managers.
[74520e8]200 </para>
201
[521cea0]202 <para>
[f575476]203 <option>--enable-gl</option>: This switch enables
204 <application>Cairo</application>'s experimental
205 <application>OpenGL</application> surface which
206 is required for <application>Wayland</application>
[a98acfe7]207 compositor and some other packages that are not
208 part of BLFS.
[521cea0]209 </para>
[bc9c1def]210
[f25b2c03]211<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[a2912ff]212 href="../../xincludes/gtk-doc-rebuild.xml"/>
[f25b2c03]213 NOTE: For this version, no docs are installed by default -->
214
215 <para>
216 <option>--enable-gtk-doc</option>: Use this parameter if GTK-Doc is
217 installed and you wish to create and install the documentation.
218 </para>
[a2912ff]219
[15a4fb4c]220 </sect2>
221
[bb41bc7]222 <sect2 role="content">
223 <title>Contents</title>
224
225 <segmentedlist>
226 <segtitle>Installed Programs</segtitle>
[742b99e]227 <segtitle>Installed Libraries</segtitle>
[bb41bc7]228 <segtitle>Installed Directories</segtitle>
229
230 <seglistitem>
[b8a081c]231 <seg>
[a2ce753]232 cairo-trace
[b8a081c]233 </seg>
234 <seg>
[4db1ba6]235 libcairo.so, libcairo-gobject.so and
236 libcairo-script-interpreter.so
[b8a081c]237 </seg>
238 <seg>
[49a38a1]239 /usr/{include,lib,share/gtk-doc/html}/cairo
[b8a081c]240 </seg>
[bb41bc7]241 </seglistitem>
242 </segmentedlist>
243
244 <variablelist>
245 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
246 <?dbfo list-presentation="list"?>
247 <?dbhtml list-presentation="table"?>
248
[a2ce753]249<!--
[298fee30]250 <varlistentry id="cairo-sphinx">
251 <term><command>cairo-sphinx</command></term>
252 <listitem>
253 <para>
[4c24eb0a]254 is an internal utility for regression analysis
[298fee30]255 </para>
256 <indexterm zone="cairo cairo-sphinx">
257 <primary sortas="b-cairo-sphinx">cairo-sphinx</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
[a2ce753]261-->
[298fee30]262
[827336dc]263 <varlistentry id="cairo-trace">
264 <term><command>cairo-trace</command></term>
265 <listitem>
[521cea0]266 <para>
267 generates a log of all calls made by an application to
[4c24eb0a]268 <application>Cairo</application>
[521cea0]269 </para>
[827336dc]270 <indexterm zone="cairo cairo-trace">
271 <primary sortas="b-cairo-trace">cairo-trace</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
[bb41bc7]276 <varlistentry id="libcairo">
[f575476]277 <term><filename class="libraryfile">libcairo.so</filename></term>
[bb41bc7]278 <listitem>
[521cea0]279 <para>
280 contains the 2D graphics functions required for rendering to the
[4c24eb0a]281 various output targets
[521cea0]282 </para>
[bb41bc7]283 <indexterm zone="cairo libcairo">
[4db1ba6]284 <primary sortas="c-libcairo">libcairo.so</primary>
[bb41bc7]285 </indexterm>
286 </listitem>
287 </varlistentry>
288
[827336dc]289 <varlistentry id="libcairo-gobject">
[7ca0e36]290 <term><filename class="libraryfile">libcairo-gobject.so</filename></term>
[827336dc]291 <listitem>
[521cea0]292 <para>
293 contains functions that integrate
[8558044]294 <application>Cairo</application> with
[4c24eb0a]295 <application>Glib</application>'s GObject type system
[521cea0]296 </para>
[827336dc]297 <indexterm zone="cairo libcairo-gobject">
[4db1ba6]298 <primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
[827336dc]299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="libcairo-script-interpreter">
[7ca0e36]304 <term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
[827336dc]305 <listitem>
[521cea0]306 <para>
307 contains the script interpreter functions for executing and
[4c24eb0a]308 manipulating <application>Cairo</application> execution traces
[521cea0]309 </para>
[827336dc]310 <indexterm zone="cairo libcairo-script-interpreter">
[4db1ba6]311 <primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
[827336dc]312 </indexterm>
313 </listitem>
314 </varlistentry>
[a2912ff]315
[bb41bc7]316 </variablelist>
[a2912ff]317
[bb41bc7]318 </sect2>
[a2912ff]319
[bb41bc7]320</sect1>
Note: See TracBrowser for help on using the repository browser.