2024-01-20 05:35:53 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2005-09-21 03:33:01 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2023-09-29 00:35:04 +08:00
|
|
|
<!ENTITY cairo-download-http "https://www.cairographics.org/releases/cairo-&cairo-version;.tar.xz">
|
2022-03-23 22:58:30 +08:00
|
|
|
<!--<!ENTITY cairo-download-http "https://www.cairographics.org/snapshots/cairo-&cairo-version;.tar.xz">
|
|
|
|
<!ENTITY cairo-download-http "&sources-anduin-http;/cairo/cairo-&cairo-version;.tar.xz">-->
|
2012-03-25 20:00:05 +08:00
|
|
|
<!ENTITY cairo-download-ftp " ">
|
2023-09-29 00:35:04 +08:00
|
|
|
<!ENTITY cairo-md5sum "3f0685fbadc530606f965b9645bb51d9">
|
|
|
|
<!ENTITY cairo-size "32 MB">
|
|
|
|
<!ENTITY cairo-buildsize "98 MB">
|
|
|
|
<!ENTITY cairo-time "0.3 SBU (Using parallelism=4)">
|
2005-09-21 03:33:01 +08:00
|
|
|
]>
|
|
|
|
|
2012-07-25 00:17:44 +08:00
|
|
|
<sect1 id="cairo" xreflabel="Cairo-&cairo-version;">
|
2005-09-21 03:33:01 +08:00
|
|
|
<?dbhtml filename="cairo.html"?>
|
|
|
|
|
|
|
|
|
2012-07-25 00:17:44 +08:00
|
|
|
<title>Cairo-&cairo-version;</title>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
|
|
<indexterm zone="cairo">
|
2012-07-25 00:17:44 +08:00
|
|
|
<primary sortas="a-Cairo">Cairo</primary>
|
2005-09-21 03:33:01 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2012-05-01 20:08:46 +08:00
|
|
|
<title>Introduction to Cairo</title>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
<application>Cairo</application> is a 2D graphics library with support for
|
|
|
|
multiple output devices. Currently supported output targets include the
|
2023-09-29 00:35:04 +08:00
|
|
|
<application>X</application> Window System, Win32, image buffers,
|
2012-04-23 00:11:50 +08:00
|
|
|
PostScript, PDF and SVG. Experimental backends include OpenGL, Quartz and
|
2012-05-01 20:42:08 +08:00
|
|
|
XCB file output. <application>Cairo</application> is designed to produce
|
|
|
|
consistent output on all output media while taking advantage of display
|
|
|
|
hardware acceleration when available (e.g., through the X Render
|
|
|
|
Extension). The <application>Cairo</application> API provides operations
|
|
|
|
similar to the drawing operators of PostScript and PDF. Operations in
|
2012-04-23 00:11:50 +08:00
|
|
|
<application>Cairo</application> include stroking and filling cubic
|
|
|
|
Bézier splines, transforming and compositing translucent images,
|
|
|
|
and antialiased text rendering. All drawing operations can be transformed
|
|
|
|
by any
|
2022-09-08 16:18:20 +08:00
|
|
|
<ulink url="https://en.wikipedia.org/wiki/Affine_transformation">affine
|
2012-04-23 00:11:50 +08:00
|
|
|
transformation</ulink> (scale, rotation, shear, etc.).
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2024-02-17 03:11:29 +08:00
|
|
|
&lfs121_checked;
|
2009-08-01 02:10:06 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&cairo-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&cairo-download-ftp;"/>
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &cairo-md5sum;
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Download size: &cairo-size;
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &cairo-buildsize;
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &cairo-time;
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
</listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2012-05-01 20:08:46 +08:00
|
|
|
<bridgehead renderas="sect3">Cairo Dependencies</bridgehead>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-04-17 00:14:42 +08:00
|
|
|
<para role="required">
|
2015-06-23 20:46:13 +08:00
|
|
|
<xref linkend="libpng"/> and
|
2012-06-09 07:56:43 +08:00
|
|
|
<xref linkend="pixman"/>
|
2012-05-01 20:08:46 +08:00
|
|
|
</para>
|
|
|
|
|
2012-10-09 04:56:35 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-05-01 20:08:46 +08:00
|
|
|
<para role="recommended">
|
2015-06-23 20:46:13 +08:00
|
|
|
<xref linkend="fontconfig"/>,
|
2021-02-22 03:05:24 +08:00
|
|
|
<xref linkend="glib2"/> (required for most GUIs), and
|
2012-07-25 00:17:44 +08:00
|
|
|
<xref linkend="xorg7-lib"/>
|
2012-04-17 00:14:42 +08:00
|
|
|
</para>
|
2008-11-28 06:33:45 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-04-17 00:14:42 +08:00
|
|
|
<para role="optional">
|
2023-08-30 02:29:10 +08:00
|
|
|
<!--<xref linkend="cogl"/>,-->
|
2016-12-12 20:20:07 +08:00
|
|
|
<xref linkend="gs"/>,
|
|
|
|
<xref linkend="gtk3"/> and <xref linkend="gtk2"/>,
|
2012-04-17 00:14:42 +08:00
|
|
|
<xref linkend="gtk-doc"/>,
|
2012-04-23 00:11:50 +08:00
|
|
|
<xref linkend="libdrm"/>,
|
2016-12-12 20:20:07 +08:00
|
|
|
<xref linkend="librsvg"/>,
|
2019-12-08 05:23:42 +08:00
|
|
|
<xref linkend="libxml2"/>,
|
2014-06-28 17:11:09 +08:00
|
|
|
<xref linkend="lzo"/>,
|
2015-10-11 19:51:21 +08:00
|
|
|
<xref linkend="mesa"/>,
|
2016-12-12 20:20:07 +08:00
|
|
|
<xref linkend="poppler"/>,
|
2023-08-30 02:29:10 +08:00
|
|
|
<!--&qt5-deps;,-->
|
2014-10-15 00:28:28 +08:00
|
|
|
<xref linkend="valgrind"/>,
|
2023-08-30 02:29:10 +08:00
|
|
|
<!--<ulink url="https://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,-->
|
2016-12-12 20:20:07 +08:00
|
|
|
<ulink url="https://github.com/rillian/jbig2dec/">jbig2dec</ulink>,
|
2023-08-30 02:29:10 +08:00
|
|
|
<ulink url="https://www.freedesktop.org/wiki/Software/libspectre/">libspectre</ulink>, and
|
|
|
|
<ulink url="https://skia.org/">Skia</ulink>
|
|
|
|
<!--<ulink url="https://download.qt.io/archive/qt/4.8/">Qt4</ulink>.-->
|
2012-04-17 00:14:42 +08:00
|
|
|
</para>
|
2006-10-05 20:51:08 +08:00
|
|
|
|
2020-03-21 19:42:20 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
There is a circular dependency between cairo and harfbuzz.
|
|
|
|
If cairo is built before harfbuzz, it is necessary to rebuild cairo
|
|
|
|
after harfbuzz in order to build pango.
|
|
|
|
</para>
|
|
|
|
</note>
|
2019-02-17 07:16:14 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2012-05-01 20:08:46 +08:00
|
|
|
<title>Installation of Cairo</title>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2022-08-11 22:50:55 +08:00
|
|
|
<!-- /usr/include/ansidecl.h says "This file is part of the GNU C
|
|
|
|
Library", but it's actually installed by Binutils. -->
|
2023-09-29 00:35:04 +08:00
|
|
|
<!--
|
2022-08-08 13:24:01 +08:00
|
|
|
<para>
|
2022-08-11 22:50:55 +08:00
|
|
|
Adapt this package for Binutils-2.39 or later:
|
2022-08-08 13:24:01 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed 's/PTR/void */' -i util/cairo-trace/lookup-symbol.c</userinput></screen>
|
|
|
|
|
2022-08-25 01:05:04 +08:00
|
|
|
<para>
|
|
|
|
Fix a pkg-config file that may cause errors later:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -e "/@prefix@/a exec_prefix=@exec_prefix@" \
|
|
|
|
-i util/cairo-script/cairo-script-interpreter.pc.in</userinput></screen>
|
2023-09-29 00:35:04 +08:00
|
|
|
-->
|
2022-08-25 01:05:04 +08:00
|
|
|
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Cairo</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2023-09-29 00:35:04 +08:00
|
|
|
<screen><userinput>mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
|
|
|
|
meson setup --prefix=/usr --buildtype=release .. &&
|
|
|
|
ninja</userinput></screen>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2012-10-09 04:56:35 +08:00
|
|
|
<para>
|
2022-12-14 02:19:29 +08:00
|
|
|
This package does not have a working test suite.
|
2023-09-29 00:35:04 +08:00
|
|
|
<!-- The test suite can be run with 'ninja test', but 488 tests fail and
|
2021-03-28 05:55:25 +08:00
|
|
|
59 tests pass. This seems to be due to minute changes in the expected
|
|
|
|
output, similar to librsvg's tests. Since it's a huge chunk of the tests,
|
|
|
|
let's keep it as "broken" for now.-->
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
|
2023-09-29 00:35:04 +08:00
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
2005-09-21 03:33:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2023-09-29 00:35:04 +08:00
|
|
|
<!-- Enabled by default in 1.18.0 (would be -Dtee=enabled otherwise)
|
2014-06-15 19:57:29 +08:00
|
|
|
<para>
|
2023-09-29 00:35:04 +08:00
|
|
|
<parameter>- -enable-tee</parameter>: This switch enables the
|
2021-09-07 01:42:49 +08:00
|
|
|
experimental tee surface backend which is required if using
|
2016-12-12 20:20:07 +08:00
|
|
|
system-installed <application>Cairo</application> with Mozilla applications.
|
2014-06-15 19:57:29 +08:00
|
|
|
</para>
|
2023-09-29 00:35:04 +08:00
|
|
|
-->
|
2014-06-15 19:57:29 +08:00
|
|
|
|
2013-03-02 00:01:45 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-09-29 00:35:04 +08:00
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
2011-11-24 07:25:44 +08:00
|
|
|
|
2013-09-01 18:31:55 +08:00
|
|
|
<para>
|
2023-09-29 00:35:04 +08:00
|
|
|
<option>-Dxlib-xcb=enabled</option>: This switch enables several
|
2021-03-20 15:20:56 +08:00
|
|
|
experimental Xlib/XCB functions used by some window managers.
|
2013-09-01 18:31:55 +08:00
|
|
|
</para>
|
|
|
|
|
2023-09-29 00:35:04 +08:00
|
|
|
<!-- Removed in 1.18.0
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
2023-09-29 00:35:04 +08:00
|
|
|
<option>- -enable-gl</option>: This switch enables
|
2012-10-09 04:56:35 +08:00
|
|
|
<application>Cairo</application>'s experimental
|
|
|
|
<application>OpenGL</application> surface which
|
|
|
|
is required for <application>Wayland</application>
|
2013-03-02 00:01:45 +08:00
|
|
|
compositor and some other packages that are not
|
|
|
|
part of BLFS.
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2023-09-29 00:35:04 +08:00
|
|
|
-->
|
2021-01-07 08:42:06 +08:00
|
|
|
|
|
|
|
<para>
|
2023-09-29 00:35:04 +08:00
|
|
|
<option>-Dgtk_doc=true</option>: Use this parameter if GTK-Doc is
|
2021-01-07 08:42:06 +08:00
|
|
|
installed and you wish to create and install the documentation.
|
|
|
|
</para>
|
2012-07-25 00:17:44 +08:00
|
|
|
|
2006-03-28 00:42:24 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2012-04-17 01:06:53 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2005-09-21 03:33:01 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-04-17 00:14:42 +08:00
|
|
|
<seg>
|
2021-03-28 05:55:25 +08:00
|
|
|
cairo-trace
|
2012-04-17 00:14:42 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2023-09-29 00:35:04 +08:00
|
|
|
libcairo.so,
|
|
|
|
libcairo-gobject.so, and
|
2012-05-01 20:08:46 +08:00
|
|
|
libcairo-script-interpreter.so
|
2012-04-17 00:14:42 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2023-09-29 00:35:04 +08:00
|
|
|
/usr/include/cairo and
|
|
|
|
/usr/lib/cairo
|
2012-04-17 00:14:42 +08:00
|
|
|
</seg>
|
2005-09-21 03:33:01 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<varlistentry id="cairo-trace">
|
|
|
|
<term><command>cairo-trace</command></term>
|
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
generates a log of all calls made by an application to
|
2021-02-19 23:20:16 +08:00
|
|
|
<application>Cairo</application>
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2011-11-24 07:25:44 +08:00
|
|
|
<indexterm zone="cairo cairo-trace">
|
|
|
|
<primary sortas="b-cairo-trace">cairo-trace</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
<varlistentry id="libcairo">
|
2012-10-09 04:56:35 +08:00
|
|
|
<term><filename class="libraryfile">libcairo.so</filename></term>
|
2005-09-21 03:33:01 +08:00
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
contains the 2D graphics functions required for rendering to the
|
2021-02-19 23:20:16 +08:00
|
|
|
various output targets
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2005-09-21 03:33:01 +08:00
|
|
|
<indexterm zone="cairo libcairo">
|
2012-05-01 20:08:46 +08:00
|
|
|
<primary sortas="c-libcairo">libcairo.so</primary>
|
2005-09-21 03:33:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-11-24 07:25:44 +08:00
|
|
|
<varlistentry id="libcairo-gobject">
|
2013-01-20 03:08:57 +08:00
|
|
|
<term><filename class="libraryfile">libcairo-gobject.so</filename></term>
|
2011-11-24 07:25:44 +08:00
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
contains functions that integrate
|
2021-09-07 01:42:49 +08:00
|
|
|
<application>Cairo</application> with
|
2021-02-19 23:20:16 +08:00
|
|
|
<application>Glib</application>'s GObject type system
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2011-11-24 07:25:44 +08:00
|
|
|
<indexterm zone="cairo libcairo-gobject">
|
2012-05-01 20:08:46 +08:00
|
|
|
<primary sortas="c-libcairo-gobject">libcairo-gobject.so</primary>
|
2011-11-24 07:25:44 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libcairo-script-interpreter">
|
2013-01-20 03:08:57 +08:00
|
|
|
<term><filename class="libraryfile">libcairo-script-interpreter.so</filename></term>
|
2011-11-24 07:25:44 +08:00
|
|
|
<listitem>
|
2012-04-23 00:11:50 +08:00
|
|
|
<para>
|
|
|
|
contains the script interpreter functions for executing and
|
2021-02-19 23:20:16 +08:00
|
|
|
manipulating <application>Cairo</application> execution traces
|
2012-04-23 00:11:50 +08:00
|
|
|
</para>
|
2011-11-24 07:25:44 +08:00
|
|
|
<indexterm zone="cairo libcairo-script-interpreter">
|
2012-05-01 20:08:46 +08:00
|
|
|
<primary sortas="c-libcairo-script-interpreter">libcairo-script-interpreter.so</primary>
|
2011-11-24 07:25:44 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-07-25 00:17:44 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</variablelist>
|
2012-07-25 00:17:44 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</sect2>
|
2012-07-25 00:17:44 +08:00
|
|
|
|
2005-09-21 03:33:01 +08:00
|
|
|
</sect1>
|