[bb41bc7] | 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">
|
---|
[15a4fb4c] | 8 | <!ENTITY cairo-download-ftp " ">
|
---|
| 9 | <!ENTITY cairo-md5sum "9002b0e69b3f94831a22d3f2a7735ce2">
|
---|
[bb41bc7] | 10 | <!ENTITY cairo-size "1.4 MB">
|
---|
[15a4fb4c] | 11 | <!ENTITY cairo-buildsize "30.6 MB">
|
---|
[bb41bc7] | 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>
|
---|
[76a39aa] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">cairo-&cairo-version;.tar</keyword>
|
---|
[3f5f915] | 23 | <keyword role="ftpdir">cairo</keyword>
|
---|
[76a39aa] | 24 | </keywordset>
|
---|
[bb41bc7] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>cairo-&cairo-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="cairo">
|
---|
| 30 | <primary sortas="a-cairo">cairo</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to cairo</title>
|
---|
| 35 |
|
---|
| 36 | <para><application>cairo</application> is a 2D graphics library with
|
---|
| 37 | support for multiple output devices. Currently supported output targets
|
---|
| 38 | include the <application>X</application> Window System, win32, and image
|
---|
| 39 | buffers. Experimental backends include OpenGL (through glitz), Quartz,
|
---|
| 40 | XCB, PostScript and PDF file output. cairo 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ézier splines, transforming and compositing translucent images, and
|
---|
| 47 | antialiased text rendering. All drawing operations can be transformed by
|
---|
| 48 | any affine transformation (scale, rotation, shear, etc.).</para>
|
---|
| 49 |
|
---|
| 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download MD5 sum: &cairo-md5sum;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download size: &cairo-size;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Estimated disk space required: &cairo-buildsize;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated build time: &cairo-time;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">cairo Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d9c80e1] | 75 | <para role="required">X (<xref linkend="xorg"/>, <xref linkend="xorg7"/>,
|
---|
[371ff30] | 76 | or <xref linkend="xfree86"/>)
|
---|
[76a39aa] | 77 | and <xref linkend="pkgconfig"/></para>
|
---|
[bb41bc7] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 80 | <para role="optional"><ulink
|
---|
| 81 | url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
|
---|
[15a4fb4c] | 82 | <ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink>, and
|
---|
[bb41bc7] | 83 | <xref linkend="gtk-doc"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of cairo</title>
|
---|
| 89 |
|
---|
[6e34843] | 90 | <para><application>cairo</application> will look for an
|
---|
| 91 | <application>X Render</application> <application>pkg-config</application>
|
---|
| 92 | file. If you use <application>XFree86</application> as your
|
---|
| 93 | <application>X</application> Window system, ensure this file exists
|
---|
| 94 | (<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>). Instructions to
|
---|
| 95 | create this file have just recently been added to the BLFS book, so you may
|
---|
| 96 | need to go back to the <application>XFree86</application> section to create
|
---|
| 97 | it.</para>
|
---|
[fb0fc4e] | 98 |
|
---|
[bb41bc7] | 99 | <para>Install <application>cairo</application> by running the following
|
---|
| 100 | commands:</para>
|
---|
| 101 |
|
---|
[15a4fb4c] | 102 | <screen><userinput>sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
|
---|
| 103 | -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
|
---|
| 104 | src/cairo-glitz-surface.c &&
|
---|
| 105 | ./configure --prefix=/usr &&
|
---|
[bb41bc7] | 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 109 |
|
---|
| 110 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 111 |
|
---|
| 112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
[15a4fb4c] | 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
| 118 |
|
---|
| 119 | <para><command>sed -i -e '...' -e '...' src/cairo-glitz-surface.c</command>:
|
---|
| 120 | This command (copied from upstream CVS) fixes a build problem if you link
|
---|
| 121 | <application>glitz</application> into the build by passing
|
---|
| 122 | <option>--enable-glitz</option> to the <command>configure</command>
|
---|
| 123 | script.</para>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
[bb41bc7] | 127 | <sect2 role="content">
|
---|
| 128 | <title>Contents</title>
|
---|
| 129 |
|
---|
| 130 | <segmentedlist>
|
---|
| 131 | <segtitle>Installed Programs</segtitle>
|
---|
| 132 | <segtitle>Installed Libraries</segtitle>
|
---|
| 133 | <segtitle>Installed Directories</segtitle>
|
---|
| 134 |
|
---|
| 135 | <seglistitem>
|
---|
| 136 | <seg>None</seg>
|
---|
| 137 | <seg>libcairo.[so,a]</seg>
|
---|
| 138 | <seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
|
---|
| 139 | </seglistitem>
|
---|
| 140 | </segmentedlist>
|
---|
| 141 |
|
---|
| 142 | <variablelist>
|
---|
| 143 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 144 | <?dbfo list-presentation="list"?>
|
---|
| 145 | <?dbhtml list-presentation="table"?>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="libcairo">
|
---|
| 148 | <term><filename class='libraryfile'>libcairo.[so,a]</filename></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>contains the 2D graphics functions required for rendering to
|
---|
| 151 | the various output targets.</para>
|
---|
| 152 | <indexterm zone="cairo libcairo">
|
---|
| 153 | <primary sortas="c-libcairo">libcairo.[so,a]</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | </variablelist>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | </sect1>
|
---|