glfs/x/lib/cairo.xml

165 lines
5.8 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY cairo-download-http "http://cairographics.org/releases/cairo-&cairo-version;.tar.gz">
<!ENTITY cairo-download-ftp " ">
<!ENTITY cairo-md5sum "9002b0e69b3f94831a22d3f2a7735ce2">
<!ENTITY cairo-size "1.4 MB">
<!ENTITY cairo-buildsize "30.6 MB">
<!ENTITY cairo-time "0.4 SBU">
]>
<sect1 id="cairo" xreflabel="cairo-&cairo-version;">
<?dbhtml filename="cairo.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
<keywordset>
<keyword role="package">cairo-&cairo-version;.tar</keyword>
<keyword role="ftpdir">cairo</keyword>
</keywordset>
</sect1info>
<title>cairo-&cairo-version;</title>
<indexterm zone="cairo">
<primary sortas="a-cairo">cairo</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to cairo</title>
<para><application>cairo</application> is a 2D graphics library with
support for multiple output devices. Currently supported output targets
include the <application>X</application> Window System, win32, and image
buffers. Experimental backends include OpenGL (through glitz), Quartz,
XCB, PostScript and PDF file output. cairo 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
<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 affine transformation (scale, rotation, shear, etc.).</para>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&cairo-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&cairo-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &cairo-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &cairo-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &cairo-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &cairo-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">cairo Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="x-window-system"/> and
<xref linkend="pkgconfig"/></para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><ulink
url="http://www.freedesktop.org/Software/glitz">glitz</ulink>,
<ulink url="http://xcb.freedesktop.org/wiki/">XCB</ulink>, and
<xref linkend="gtk-doc"/></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/cairo"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of cairo</title>
<para><application>cairo</application> will look for an
<application>X Render</application> <application>pkg-config</application>
file. If you use <application>XFree86</application> as your
<application>X</application> Window system, ensure this file exists
(<filename>/usr/X11R6/lib/pkgconfig/xrender.pc</filename>). Instructions to
create this file have just recently been added to the BLFS book, so you may
need to go back to the <application>XFree86</application> section to create
it.</para>
<para>Install <application>cairo</application> by running the following
commands:</para>
<screen><userinput>sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
-e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
src/cairo-glitz-surface.c &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>sed -i -e '...' -e '...' src/cairo-glitz-surface.c</command>:
This command (copied from upstream CVS) fixes a build problem if you link
<application>glitz</application> into the build by passing
<option>--enable-glitz</option> to the <command>configure</command>
script.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>libcairo.{so,a}</seg>
<seg>/usr/include/cairo and /usr/share/gtk-doc/html/cairo</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libcairo">
<term><filename class='libraryfile'>libcairo.{so,a}</filename></term>
<listitem>
<para>contains the 2D graphics functions required for rendering to
the various output targets.</para>
<indexterm zone="cairo libcairo">
<primary sortas="c-libcairo">libcairo.{so,a}</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>