<?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 jasper-download-http "http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-&jasper-version;.zip">
  <!ENTITY jasper-download-ftp  " ">
  <!ENTITY jasper-md5sum        "a342b2b4495b3e1394e161eb5d85d754">
  <!ENTITY jasper-size          "1.4 MB">
  <!ENTITY jasper-buildsize     "11.1 MB (without the static library)">
  <!ENTITY jasper-time          "0.3 SBU">
]>

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

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-24 00:00:51 -0500 (Tue, 24 Feb 2015) $</date>
  </sect1info>

  <title>JasPer-&jasper-version;</title>

  <indexterm zone="jasper">
    <primary sortas="a-jasper-&jasper-version;">JasPer</primary>
  </indexterm>

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

    <para>The <application>JasPer</application> Project is an open-source
    initiative to provide a free software-based reference implementation of the
    JPEG-2000 codec.</para>

    &lfs77_checked;

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

    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Required patch: <ulink
        url="&patch-root;/jasper-&jasper-version;-security_fixes-2.patch"/></para>
      </listitem>
    </itemizedlist>

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

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required"><xref linkend="unzip"/></para>

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <para role="recommended">
      <xref linkend="libjpeg"/>
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="freeglut"/> (required for <command>jiv</command>)
    </para>

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

  </sect2>

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

<note>
  <para>The package source is distributed in <filename class="extension">.zip</filename>
  format and requires <command>unzip</command>, but it has been correctly packaged
  and will create the jasper-&jasper-version; directory when you unzip it.</para>
</note>

<screen><userinput>patch -Np1 -i ../jasper-&jasper-version;-security_fixes-2.patch &amp;&amp;
./configure --prefix=/usr    \
            --enable-shared  \
            --disable-static \
            --mandir=/usr/share/man &amp;&amp;
make</userinput></screen>

    <para>This package does not come with a testsuite.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>make install</userinput></screen>

    <para>If you wish to install the PDF files for the Reference Manual and a
    tutorial on the JPEG-2000 standard, run the following commands as the
    <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/jasper-&jasper-version; &amp;&amp;
install -v -m644 doc/*.pdf /usr/share/doc/jasper-&jasper-version;</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para><parameter>--enable-shared</parameter>: This command
    causes the shared library to be built.</para>

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

    <para><option>--x-includes=DIR --x-libraries=DIR</option>: These tell the
    <command>configure</command> script where to find <application>Xorg</application>
    if it is not in
    <filename class='directory'>/usr/X11</filename>,
    <filename class='directory'>/usr/X11R6</filename>, or
    <filename class='directory'>/usr</filename>.</para>

  </sect2>

  <!-- commented because make install has run ldconfig
  <sect2 role="configuration">
    <title>Configuring JasPer</title>

    <sect3>
      <title>Configuration Information</title>

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

    </sect3>

  </sect2>-->

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

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

      <seglistitem>
        <seg>imgcmp, imginfo, jasper, jiv, and tmrdemo</seg>
        <seg>libjasper.so</seg>
        <seg>/usr/include/jasper and /usr/share/doc/jasper-&jasper-version;</seg>
      </seglistitem>
    </segmentedlist>

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

      <varlistentry id="imgcmp">
        <term><command>imgcmp</command></term>
        <listitem>
          <para>compares two images of the same geometry.</para>
          <indexterm zone="jasper imgcmp">
            <primary sortas="b-imgcmp">imgcmp</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="imginfo">
        <term><command>imginfo</command></term>
        <listitem>
          <para>displays information about an image.</para>
          <indexterm zone="jasper imginfo">
            <primary sortas="b-imginfo">imginfo</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="jasper-command">
        <term><command>jasper</command></term>
        <listitem>
          <para>converts images between formats (BMP, JPS, JPC, JPG, PGX, PNM, MIF,
          and RAS).</para>
          <indexterm zone="jasper jasper">
            <primary sortas="b-jasper">jasper</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="jiv">
        <term><command>jiv</command></term>
        <listitem>
          <para>displays images.</para>
          <indexterm zone="jasper jiv">
            <primary sortas="b-jiv">jiv</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="tmrdemo">
        <term><command>tmrdemo</command></term>
        <listitem>
          <para>is a timer demonstration program.</para>
          <indexterm zone="jasper tmrdemo">
            <primary sortas="b-tmrdemo">tmrdemo</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="jasper-lib">
        <term><filename class='libraryfile'>libjasper.so</filename></term>
        <listitem>
          <para>a library used by programs for reading and writing
          JPEG2000 format files.</para>
          <indexterm zone="jasper jasper-lib">
            <primary sortas="c-libjasper">libjasper.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
