source: x/lib/cairo.xml@ d804f58

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d804f58 was 56ce09e, checked in by Randy McMurchy <randy@…>, 18 years ago

Replaced many instances of repetitive similar text with xinclude files in various package instructions

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

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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.gz">
8 <!ENTITY cairo-download-ftp " ">
9 <!ENTITY cairo-md5sum "9002b0e69b3f94831a22d3f2a7735ce2">
10 <!ENTITY cairo-size "1.4 MB">
11 <!ENTITY cairo-buildsize "30.6 MB">
12 <!ENTITY cairo-time "0.4 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><application>cairo</application> is a 2D graphics library with
33 support for multiple output devices. Currently supported output targets
34 include the <application>X</application> Window System, win32, and image
35 buffers. Experimental backends include OpenGL (through glitz), Quartz,
36 XCB, PostScript and PDF file output. cairo is designed to produce
37 consistent output on all output media while taking advantage of display
38 hardware acceleration when available (e.g., through the X Render
39 Extension). The <application>cairo</application> API provides operations
40 similar to the drawing operators of PostScript and PDF. Operations in
41 <application>cairo</application> include stroking and filling cubic
42 Bézier splines, transforming and compositing translucent images, and
43 antialiased text rendering. All drawing operations can be transformed by
44 any affine transformation (scale, rotation, shear, etc.).</para>
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download MD5 sum: &cairo-md5sum;</para>
56 </listitem>
57 <listitem>
58 <para>Download size: &cairo-size;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated disk space required: &cairo-buildsize;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated build time: &cairo-time;</para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para role="required"><xref linkend="x-window-system"/> and
72 <xref linkend="pkgconfig"/></para>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional"><ulink
76 url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
77 <ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink>, and
78 <xref linkend="gtk-doc"/></para>
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/cairo"/></para>
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of cairo</title>
87
88 <para><application>cairo</application> will look for an
89 <application>X Render</application> <application>pkg-config</application>
90 file. If you use <application>XFree86</application> as your
91 <application>X</application> Window system, ensure this file exists
92 (<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>). Instructions to
93 create this file have just recently been added to the BLFS book, so you may
94 need to go back to the <application>XFree86</application> section to create
95 it.</para>
96
97 <para>Install <application>cairo</application> by running the following
98 commands:</para>
99
100<screen><userinput>sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
101 -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
102 src/cairo-glitz-surface.c &amp;&amp;
103./configure --prefix=/usr &amp;&amp;
104make</userinput></screen>
105
106 <para>To test the results, issue: <command>make check</command>.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role="root"><userinput>make install</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para><command>sed -i -e '...' -e '...' src/cairo-glitz-surface.c</command>:
118 This command (copied from upstream CVS) fixes a build problem if you link
119 <application>glitz</application> into the build by passing
120 <option>--enable-glitz</option> to the <command>configure</command>
121 script.</para>
122
123 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
124 href="../../xincludes/gtk-doc-rebuild.xml"/>
125
126 </sect2>
127
128 <sect2 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Programs</segtitle>
133 <segtitle>Installed Libraries</segtitle>
134 <segtitle>Installed Directories</segtitle>
135
136 <seglistitem>
137 <seg>None</seg>
138 <seg>libcairo.{so,a}</seg>
139 <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
140 </seglistitem>
141 </segmentedlist>
142
143 <variablelist>
144 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
145 <?dbfo list-presentation="list"?>
146 <?dbhtml list-presentation="table"?>
147
148 <varlistentry id="libcairo">
149 <term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
150 <listitem>
151 <para>contains the 2D graphics functions required for rendering to
152 the various output targets.</para>
153 <indexterm zone="cairo libcairo">
154 <primary sortas="c-libcairo">libcairo.{so,a}</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 </variablelist>
160
161 </sect2>
162
163</sect1>
Note: See TracBrowser for help on using the repository browser.