[d4bae4c9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f59ac4f] | 7 | <!--Using archive URL, because when a new version is released, older and new
|
---|
| 8 | can be found there, no need to change directory -->
|
---|
| 9 | <!ENTITY mupdf-download-http "http://www.mupdf.com/downloads/archive/mupdf-&mupdf-version;-source.tar.gz">
|
---|
[d4bae4c9] | 10 | <!ENTITY mupdf-download-ftp " ">
|
---|
[90dd633] | 11 | <!ENTITY mupdf-md5sum "447bc5c3305efe9645e12fce759e0198">
|
---|
[06d0c710] | 12 | <!ENTITY mupdf-size "49 MB">
|
---|
[90dd633] | 13 | <!ENTITY mupdf-buildsize "334 MB">
|
---|
| 14 | <!ENTITY mupdf-time "0.2 SBU (Using parallelism=4)">
|
---|
[d4bae4c9] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="mupdf" xreflabel="mupdf-&mupdf-version;">
|
---|
| 18 | <?dbhtml filename="mupdf.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>MuPDF-&mupdf-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="mupdf">
|
---|
| 28 | <primary sortas="a-mupdf">mupdf</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to MuPDF</title>
|
---|
| 33 |
|
---|
| 34 | <para>
|
---|
| 35 | <application>MuPDF</application> is a lightweight PDF and XPS viewer.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[83dc192] | 38 | &lfs83_checked;
|
---|
[d4bae4c9] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&mupdf-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&mupdf-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &mupdf-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &mupdf-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &mupdf-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &mupdf-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[bd81e201] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Recommended patch:
|
---|
[90dd633] | 79 | <ulink url="&patch-root;/mupdf-&mupdf-version;-shared_libs-1.patch"/>
|
---|
[2c13ebe] | 80 | </para>
|
---|
| 81 | </listitem>
|
---|
[bd81e201] | 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[d4bae4c9] | 84 | <bridgehead renderas="sect3">MuPDF Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 87 | <para role="required">
|
---|
| 88 | <xref linkend="xorg7-lib"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 92 | <para role="recommended">
|
---|
[2c13ebe] | 93 | <xref linkend="freeglut"/>,
|
---|
[41745476] | 94 | <xref linkend="harfbuzz"/>,
|
---|
[2c13ebe] | 95 | <xref linkend="lcms2"/>,
|
---|
[bd81e201] | 96 | <xref linkend="libjpeg"/>,
|
---|
| 97 | <xref linkend="openjpeg2"/>, and
|
---|
[94b9889] | 98 | <xref linkend="curl"/>
|
---|
[d4bae4c9] | 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
[f5cdf41] | 103 | <xref role="runtime" linkend="xdg-utils"/> (runtime),
|
---|
[b69e5dc] | 104 | <ulink url="https://artifex.com/developers-ghostscript-jbig2dec/">jbig2dec</ulink>, and
|
---|
[2c13ebe] | 105 | <ulink url="https://artifex.com/mujs/">MuJS</ulink>
|
---|
[d4bae4c9] | 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Required (runtime)</bridgehead>
|
---|
| 109 | <para role="required">
|
---|
[f5cdf41] | 110 | <xref role="runtime" linkend="x-window-system"/>
|
---|
[d4bae4c9] | 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para condition="html" role="usernotes">
|
---|
| 114 | User Notes: <ulink url="&blfs-wiki;/mupdf"/>
|
---|
| 115 | </para>
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="installation">
|
---|
| 119 | <title>Installation of MuPDF</title>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Install <application>MuPDF</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[f3429309] | 126 | <screen><userinput>rm -rf thirdparty/curl &&
|
---|
[2c13ebe] | 127 | rm -rf thirdparty/freeglut &&
|
---|
[94b9889] | 128 | rm -rf thirdparty/freetype &&
|
---|
[41745476] | 129 | rm -rf thirdparty/harfbuzz &&
|
---|
[f3429309] | 130 | rm -rf thirdparty/jpeg &&
|
---|
[2c13ebe] | 131 | rm -rf thirdparty/lcms2 &&
|
---|
[dd168618] | 132 | rm -rf thirdparty/libjpeg &&
|
---|
[bd81e201] | 133 | rm -rf thirdparty/openjpeg &&
|
---|
[f3429309] | 134 | rm -rf thirdparty/zlib &&
|
---|
[96ecf052] | 135 |
|
---|
[90dd633] | 136 | patch -Np1 -i ../mupdf-&mupdf-version;-shared_libs-1.patch &&
|
---|
[96ecf052] | 137 |
|
---|
[d4bae4c9] | 138 | make build=release</userinput></screen>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | This package does not come with a test suite.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
[ff3a9a0] | 148 | <screen role="root"><userinput>make prefix=/usr \
|
---|
| 149 | build=release \
|
---|
| 150 | docdir=/usr/share/doc/mupdf-&mupdf-version; \
|
---|
| 151 | install &&
|
---|
[dd168618] | 152 |
|
---|
[90dd633] | 153 | ln -sfv mupdf-x11 /usr/bin/mupdf</userinput></screen>
|
---|
[ff3a9a0] | 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
[90dd633] | 161 | <command>ln -sfv mupdf-x11 /usr/bin/mupdf </command>: Two
|
---|
[ff3a9a0] | 162 | <command>mupdf</command> executables are installed:
|
---|
[90dd633] | 163 | <command>mupdf-gl</command> and <command>mupdf-x11</command>.
|
---|
| 164 | This symbolic link allows to choose
|
---|
[ff3a9a0] | 165 | which one is used when running <command>mupdf</command>.
|
---|
| 166 | </para>
|
---|
[d4bae4c9] | 167 |
|
---|
| 168 | </sect2>
|
---|
| 169 |
|
---|
| 170 | <sect2 role="content">
|
---|
| 171 | <title>Contents</title>
|
---|
| 172 |
|
---|
| 173 | <segmentedlist>
|
---|
| 174 | <segtitle>Installed Program</segtitle>
|
---|
| 175 | <segtitle>Installed Libraries</segtitle>
|
---|
| 176 | <segtitle>Installed Directories</segtitle>
|
---|
| 177 |
|
---|
| 178 | <seglistitem>
|
---|
[90dd633] | 179 | <seg>mupdf(symlink),
|
---|
| 180 | mupdf-gl,
|
---|
| 181 | mupdf-x11, and
|
---|
| 182 | mutool
|
---|
| 183 | </seg>
|
---|
| 184 | <seg>libmupdf.so,
|
---|
| 185 | libmupdfthird.so,
|
---|
| 186 | libmupkcs7.so, and
|
---|
| 187 | libmuthreads.so
|
---|
| 188 | </seg>
|
---|
| 189 | <seg>/usr/include/mupdf,
|
---|
| 190 | /usr/share/doc/mupdf-&mupdf-version;
|
---|
| 191 | </seg>
|
---|
[d4bae4c9] | 192 | </seglistitem>
|
---|
| 193 | </segmentedlist>
|
---|
| 194 |
|
---|
| 195 | <variablelist>
|
---|
| 196 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 197 | <?dbfo list-presentation="list"?>
|
---|
| 198 | <?dbhtml list-presentation="table"?>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="mupdf-prog">
|
---|
| 201 | <term><command>mupdf</command></term>
|
---|
| 202 | <listitem>
|
---|
| 203 | <para>
|
---|
[ff3a9a0] | 204 | is a program for viewing PDF, XPS, EPUB, and CBZ documents,
|
---|
| 205 | and various image formats such as PNG, JPEG, GIFF, and TIFF.
|
---|
[d4bae4c9] | 206 | </para>
|
---|
| 207 | <indexterm zone="mupdf mupdf-prog">
|
---|
| 208 | <primary sortas="b-mupdf">mupdf</primary>
|
---|
| 209 | </indexterm>
|
---|
| 210 | </listitem>
|
---|
| 211 | </varlistentry>
|
---|
[ff3a9a0] | 212 |
|
---|
| 213 | <varlistentry id="mupdf-gl">
|
---|
| 214 | <term><command>mupdf-gl</command></term>
|
---|
| 215 | <listitem>
|
---|
| 216 | <para>
|
---|
| 217 | same as <command>mupdf</command>, using an opengl renderer.
|
---|
| 218 | </para>
|
---|
| 219 | <indexterm zone="mupdf mupdf-gl">
|
---|
| 220 | <primary sortas="b-mupdf-gl">mupdf-gl</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="mupdf-x11">
|
---|
| 226 | <term><command>mupdf-x11</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>
|
---|
| 229 | same as <command>mupdf</command>, using an X Window renderer.
|
---|
| 230 | </para>
|
---|
| 231 | <indexterm zone="mupdf mupdf-x11">
|
---|
| 232 | <primary sortas="b-mupdf-x11">mupdf-x11</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="libmupdf">
|
---|
| 238 | <term><filename class="libraryfile">libmupdf.so</filename></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>
|
---|
| 241 | contains the mupdf API functions.
|
---|
| 242 | </para>
|
---|
| 243 | <indexterm zone="mupdf libmupdf">
|
---|
| 244 | <primary sortas="c-libmupdf">libmupdf.so</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | <varlistentry id="libmupdfthird">
|
---|
| 250 | <term><filename class="libraryfile">libmupdfthird.so</filename></term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>
|
---|
| 253 | contains the third party libraries compiled for mudpf.
|
---|
| 254 | </para>
|
---|
| 255 | <indexterm zone="mupdf libmupdfthird">
|
---|
| 256 | <primary sortas="c-libmupdfthird">libmupdfthird.so</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
[d4bae4c9] | 261 | </variablelist>
|
---|
| 262 |
|
---|
| 263 | </sect2>
|
---|
| 264 |
|
---|
| 265 | </sect1>
|
---|