<?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 mupdf-download-http "http://www.mupdf.com/downloads/mupdf-&mupdf-version;-source.tar.gz">
  <!ENTITY mupdf-download-ftp  " ">
  <!ENTITY mupdf-md5sum        "8d69db41ae9e0b6807b76bb6ed70dc2f">
  <!ENTITY mupdf-size          "13 MB">
  <!ENTITY mupdf-buildsize     "167 MB">
  <!ENTITY mupdf-time          "0.3 SBU">
]>

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

  <sect1info>
    <othername>$LastChangedBy: pierre $</othername>
    <date>$Date: 2015-02-26 10:37:06 -0500 (Thu, 26 Feb 2015) $</date>
  </sect1info>

  <title>MuPDF-&mupdf-version;</title>

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

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

    <para>
      <application>MuPDF</application> is a lightweight PDF and XPS viewer.
    </para>

    &lfs77_checked;

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

    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Recommended patch:
          <ulink url="&patch-root;/mupdf-&mupdf-version;-openjpeg21-1.patch"/>
        </para>
      </listitem>
    </itemizedlist>

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

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

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <para role="recommended">
      <xref linkend="libjpeg"/>,
      <xref linkend="openjpeg2"/>, and
      <xref linkend="curl"/>
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="openssl"/> and
      <ulink url="http://sourceforge.net/projects/jbig2dec/">jbig2dec</ulink>
    </para>

    <bridgehead renderas="sect4">Required (runtime)</bridgehead>
    <para role="required">
      <xref linkend="x-window-system"/>
    </para>

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

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

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

<screen><userinput>rm -rf thirdparty/curl &amp;&amp;
rm -rf thirdparty/freetype &amp;&amp;
rm -rf thirdparty/jpeg &amp;&amp;
rm -rf thirdparty/openjpeg &amp;&amp;
rm -rf thirdparty/zlib &amp;&amp;
patch -Np1 -i ../mupdf-&mupdf-version;-openjpeg21-1.patch &amp;&amp;
make build=release</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>install -v -m 755 build/release/mupdf-x11-curl /usr/bin/mupdf &amp;&amp;
install -v -m 644 docs/man/mupdf.1 /usr/share/man/man1/</userinput></screen>

  </sect2>

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

    <segmentedlist>
      <segtitle>Installed Program</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>mupdf</seg>
        <seg>None</seg>
        <seg>None</seg>
      </seglistitem>
    </segmentedlist>

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

      <varlistentry id="mupdf-prog">
        <term><command>mupdf</command></term>
        <listitem>
          <para>
            is a program for viewing PDF and XPS documents.
          </para>
          <indexterm zone="mupdf mupdf-prog">
            <primary sortas="b-mupdf">mupdf</primary>
          </indexterm>
        </listitem>
      </varlistentry>
    </variablelist>

  </sect2>

</sect1>
