<?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 agg-download-http
    "http://www.antigrain.com/agg-&agg-version;.tar.gz">-->
  <!ENTITY agg-download-http
    "http://pkgs.fedoraproject.org/repo/pkgs/agg/agg-&agg-version;.tar.gz/&agg-md5sum;/agg-&agg-version;.tar.gz">
  <!ENTITY agg-download-ftp  " ">
  <!ENTITY agg-md5sum        "0229a488bc47be10a2fee6cf0b2febd6">
  <!ENTITY agg-size          "552 KB">
  <!ENTITY agg-buildsize     "122 MB">
  <!ENTITY agg-time          "1.2 SBU">
]>

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

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-03-04 17:39:39 -0500 (Wed, 04 Mar 2015) $</date>
  </sect1info>

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

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

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

    <para>
      The Anti-Grain Geometry (AGG) package contains a general purpose C++
      graphical toolkit. It can be used in many areas of computer programming
      where high quality 2D graphics is an essential part of the project.
    </para>

    &lfs77_checked;

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

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

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <xref linkend="sdl"/> and
      <xref linkend="xorg7-lib"/>
    </para>

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

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

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

<screen><userinput>sed -i 's:  -L@x_libraries@::' src/platform/X11/Makefile.am &amp;&amp;
sed -i '/^AM_C_PROTOTYPES/d'   configure.in                 &amp;&amp;

bash autogen.sh --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 's:  -L@x_libraries@::'
      src/platform/X11/Makefile.am</command>: This fixes compiling with the
      current Xorg Libraries.
    </para>

    <para>
      <command>sed -i '/^AM_C_PROTOTYPES/d' configure.in</command>: this fixes
      reconfiguring with the current version of <command>automake</command>.
    </para>

    <para>
      <command>bash autogen.sh</command>: This script uses autotools to create
      the configure script, then it runs configure with the given arguments.
    </para>

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

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

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directory</segtitle>

      <seglistitem>
	<seg>
	  None
	</seg>
        <seg>
          libagg.so,
          libaggfontfreetype.so,
          libaggplatformsdl.so, and
          libaggplatformX11.so
        </seg>
        <seg>/usr/include/agg2</seg>
      </seglistitem>
    </segmentedlist>

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

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

      <varlistentry id="libaggfontfreetype">
        <term><filename class="libraryfile">libaggfontfreetype.so</filename></term>
        <listitem>
          <para>contains the AGG freetype font API functions.</para>
          <indexterm zone="agg libaggfontfreetype">
            <primary sortas="c-libaggfontfreetype">libaggfontfreetype.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libaggplatformsdl">
        <term><filename class="libraryfile">libaggplatformsdl.so</filename></term>
        <listitem>
          <para>contains the AGG SDL API functions that.</para>
          <indexterm zone="agg libaggplatformsdl">
            <primary sortas="c-libaggplatformsdl">libaggplatformsdl.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libaggplatformX11">
        <term><filename class="libraryfile">libaggplatformX11.so</filename></term>
        <listitem>
          <para>contains the AGG LibX11 API functions.</para>
          <indexterm zone="agg libaggplatformX11">
            <primary sortas="c-libaggplatformX11">libaggplatformX11.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>
    </variablelist>
  </sect2>
</sect1>
