<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY libgxps-download-http "&gnome-download-http;/libgxps/0.2/libgxps-&libgxps-version;.tar.xz">
  <!ENTITY libgxps-download-ftp  "&gnome-download-ftp;/libgxps/0.2/libgxps-&libgxps-version;.tar.xz">
  <!ENTITY libgxps-md5sum        "65bec2033ff71307f429dc3f91d60233">
  <!ENTITY libgxps-size          "296 KB">
  <!ENTITY libgxps-buildsize     "7.0 MB">
  <!ENTITY libgxps-time          "0.2 SBU">
]>

<sect1 id="libgxps" xreflabel="libgxps-&libgxps-version;">
  <?dbhtml filename="libgxps.html"?>

  <sect1info>
    <othername>$LastChangedBy: randy $</othername>
    <date>$Date: 2013-02-11 13:51:17 -0500 (Mon, 11 Feb 2013) $</date>
  </sect1info>

  <title>libgxps-&libgxps-version;</title>

  <indexterm zone="libgxps">
    <primary sortas="a-libgxps">libgxps</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to libgxps</title>

    <para>
      The <application>libgxps</application> package contains
      GObject based library and utilities for handling and
      rendering XPS documents.
    </para>

    &lfs70_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&libgxps-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&libgxps-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &libgxps-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &libgxps-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &libgxps-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &libgxps-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">libgxps Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <xref linkend="cairo"/> and
      <xref linkend="libarchive"/>
    </para>

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <para role="recommended">
      <xref linkend="lcms2"/>,
      <xref linkend="libjpeg"/>,
      <xref linkend="libpng"/> and
      <xref linkend="libtiff"/>
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="gobject-introspection"/> and
      <xref linkend="gtk-doc"/>
    </para>

    <para condition="html" role="usernotes">
      User Notes: <ulink url="&blfs-wiki;/libgxps"/>
    </para>
  </sect2>

  <sect2 role="installation">
    <title>Installation of libgxps</title>

    <para>
      Install <application>libgxps</application> by running the following
      commands:
    </para>

<screen><userinput>sed -i '/_gir_CFLAGS/s#$# -I/usr/include/cairo#' libgxps/Makefile.in &amp;&amp;
./configure --prefix=/usr --disable-static &amp;&amp;
make</userinput></screen>

    <para>
      This package does not come with a test suite.
    </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 '/_gir_CFLAGS/s#$# -I/usr/include/cairo#'
      libgxps/Makefile.in</command>: This sed fixes a problem compiling if you
      have Gobject Introspection installed. It has no effect if Gobject
      Introspection is not installed.
    </para>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
      href="../../xincludes/static-libraries.xml"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
      href="../../xincludes/gtk-doc-rebuild.xml"/>
  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Library</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          xpstojpeg, xpstopdf, xpstopng, xpstops and xpstosvg
        </seg>
        <seg>
          libgxps.so
        </seg>
        <seg>
          /usr/include/libgxps and /usr/share/gtk-doc/html/libgxps
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="xpstojpeg">
        <term><command>xpstojpeg</command></term>
        <listitem>
          <para>
            is the XPS to JPEG converter.
          </para>
          <indexterm zone="libgxps xpstojpeg">
            <primary sortas="b-xpstojpeg">xpstojpeg</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xpstopdf">
        <term><command>xpstopdf</command></term>
        <listitem>
          <para>
            is the XPS to PDF converter.
          </para>
          <indexterm zone="libgxps xpstopdf">
            <primary sortas="b-xpstopdf">xpstopdf</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xpstopng">
        <term><command>xpstopng</command></term>
        <listitem>
          <para>
            is the XPS to PNG converter.
          </para>
          <indexterm zone="libgxps xpstopng">
            <primary sortas="b-xpstopng">xpstopng</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xpstops">
        <term><command>xpstops</command></term>
        <listitem>
          <para>
            is the XPS to PostScript converter.
          </para>
          <indexterm zone="libgxps xpstops">
            <primary sortas="b-xpstops">xpstops</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="xpstosvg">
        <term><command>xpstosvg</command></term>
        <listitem>
          <para>
            is the XPS to SVG converter.
          </para>
          <indexterm zone="libgxps xpstosvg">
            <primary sortas="b-xpstosvg">xpstosvg</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libgxps-lib">
        <term><filename class="libraryfile">libgxps.so</filename></term>
        <listitem>
          <para>
            contains the libgxps API functions.
          </para>
          <indexterm zone="libgxps libgxps-lib">
            <primary sortas="c-libgxps">libgxps.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
