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 "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/cairo-&cairo-version;.tar.gz">
|
---|
9 | <!ENTITY cairo-md5sum "d0b7111a14f90ec3afa777ec40c44984">
|
---|
10 | <!ENTITY cairo-size "1.4 MB">
|
---|
11 | <!ENTITY cairo-buildsize "29.4 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>X (<xref linkend="xorg"/> or <xref linkend="xfree86"/>) and
|
---|
72 | <xref linkend="pkgconfig"/></para>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
75 | <para><ulink url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
---|
76 | <ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink> and
|
---|
77 | <xref linkend="gtk-doc"/></para>
|
---|
78 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <sect2 role="installation">
|
---|
82 | <title>Installation of cairo</title>
|
---|
83 |
|
---|
84 | <para><application>cairo</application> will look for an
|
---|
85 | <application>X Render</application> <application>pkg-config</application>
|
---|
86 | file. If you use <application>XFree86</application> as your
|
---|
87 | <application>X</application> Window system, ensure this file exists
|
---|
88 | (<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>). Instructions to
|
---|
89 | create this file have just recently been added to the BLFS book, so you may
|
---|
90 | need to go back to the <application>XFree86</application> section to create
|
---|
91 | it.</para>
|
---|
92 |
|
---|
93 | <para>Install <application>cairo</application> by running the following
|
---|
94 | commands:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>./configure --prefix=/usr &&
|
---|
97 | make</userinput></screen>
|
---|
98 |
|
---|
99 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
100 |
|
---|
101 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
102 |
|
---|
103 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="content">
|
---|
108 | <title>Contents</title>
|
---|
109 |
|
---|
110 | <segmentedlist>
|
---|
111 | <segtitle>Installed Programs</segtitle>
|
---|
112 | <segtitle>Installed Libraries</segtitle>
|
---|
113 | <segtitle>Installed Directories</segtitle>
|
---|
114 |
|
---|
115 | <seglistitem>
|
---|
116 | <seg>None</seg>
|
---|
117 | <seg>libcairo.[so,a]</seg>
|
---|
118 | <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
---|
119 | </seglistitem>
|
---|
120 | </segmentedlist>
|
---|
121 |
|
---|
122 | <variablelist>
|
---|
123 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
124 | <?dbfo list-presentation="list"?>
|
---|
125 | <?dbhtml list-presentation="table"?>
|
---|
126 |
|
---|
127 | <varlistentry id="libcairo">
|
---|
128 | <term><filename class='libraryfile'>libcairo.[so,a]</filename></term>
|
---|
129 | <listitem>
|
---|
130 | <para>contains the 2D graphics functions required for rendering to
|
---|
131 | the various output targets.</para>
|
---|
132 | <indexterm zone="cairo libcairo">
|
---|
133 | <primary sortas="c-libcairo">libcairo.[so,a]</primary>
|
---|
134 | </indexterm>
|
---|
135 | </listitem>
|
---|
136 | </varlistentry>
|
---|
137 |
|
---|
138 | </variablelist>
|
---|
139 |
|
---|
140 | </sect2>
|
---|
141 |
|
---|
142 | </sect1>
|
---|