[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 " ">
|
---|
[55ec717] | 11 | <!ENTITY mupdf-md5sum "f80fbba2524d1d52f6ed09237d382411">
|
---|
[ff3a9a0] | 12 | <!ENTITY mupdf-size "40 MB">
|
---|
[55ec717] | 13 | <!ENTITY mupdf-buildsize "326 MB">
|
---|
[ff3a9a0] | 14 | <!ENTITY mupdf-time "0.5 SBU">
|
---|
[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 |
|
---|
[2fd90a2] | 38 | &lfs7a_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:
|
---|
[ff3a9a0] | 79 | <ulink url="&patch-root;/mupdf-&mupdf-version;-shared_libs-1.patch"/>
|
---|
[bd81e201] | 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 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">
|
---|
[41745476] | 93 | <xref linkend="harfbuzz"/>,
|
---|
[bd81e201] | 94 | <xref linkend="libjpeg"/>,
|
---|
| 95 | <xref linkend="openjpeg2"/>, and
|
---|
[94b9889] | 96 | <xref linkend="curl"/>
|
---|
[d4bae4c9] | 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 100 | <para role="optional">
|
---|
[41745476] | 101 | <xref linkend="openssl"/>,
|
---|
[ff3a9a0] | 102 | <xref linkend="xdg-utils"/> (runtime),
|
---|
[41745476] | 103 | <ulink url="http://www.glfw.org/">GLFW</ulink>, and
|
---|
[5ff75d2] | 104 | <ulink url="http://downloads.ghostscript.com/public/jbig2dec/">jbig2dec</ulink>
|
---|
[d4bae4c9] | 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <bridgehead renderas="sect4">Required (runtime)</bridgehead>
|
---|
| 108 | <para role="required">
|
---|
| 109 | <xref linkend="x-window-system"/>
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para condition="html" role="usernotes">
|
---|
| 113 | User Notes: <ulink url="&blfs-wiki;/mupdf"/>
|
---|
| 114 | </para>
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of MuPDF</title>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | Install <application>MuPDF</application> by running the following
|
---|
| 122 | commands:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[f3429309] | 125 | <screen><userinput>rm -rf thirdparty/curl &&
|
---|
[94b9889] | 126 | rm -rf thirdparty/freetype &&
|
---|
[41745476] | 127 | rm -rf thirdparty/harfbuzz &&
|
---|
[f3429309] | 128 | rm -rf thirdparty/jpeg &&
|
---|
[bd81e201] | 129 | rm -rf thirdparty/openjpeg &&
|
---|
[f3429309] | 130 | rm -rf thirdparty/zlib &&
|
---|
[96ecf052] | 131 |
|
---|
[ff3a9a0] | 132 | sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c &&
|
---|
| 133 |
|
---|
| 134 | patch -Np1 -i ../mupdf-&mupdf-version;-shared_libs-1.patch &&
|
---|
[96ecf052] | 135 |
|
---|
[d4bae4c9] | 136 | make build=release</userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | This package does not come with a test suite.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
[ff3a9a0] | 146 | <screen role="root"><userinput>make prefix=/usr \
|
---|
| 147 | build=release \
|
---|
| 148 | docdir=/usr/share/doc/mupdf-&mupdf-version; \
|
---|
| 149 | install &&
|
---|
| 150 | ln -sfv mupdf-x11-curl /usr/bin/mupdf</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="commands">
|
---|
| 155 | <title>Command Explanations</title>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | <command>sed '/OPJ_STATIC$/d' ... </command>: Remove a switch, which
|
---|
| 159 | prevents using shared libraries for <application>openjpeg2</application>.
|
---|
| 160 | </para>
|
---|
[96ecf052] | 161 |
|
---|
[ff3a9a0] | 162 | <para>
|
---|
| 163 | <command>ln -sfv mupdf-x11-curl /usr/bin/mupdf </command>: Three
|
---|
| 164 | <command>mupdf</command> executables are installed:
|
---|
| 165 | <command>mupdf-gl</command>, <command>mupdf-x11</command>, and
|
---|
| 166 | <command>mupdf-x11-curl</command>. This symbolic link allows to choose
|
---|
| 167 | which one is used when running <command>mupdf</command>.
|
---|
| 168 | </para>
|
---|
[d4bae4c9] | 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="content">
|
---|
| 173 | <title>Contents</title>
|
---|
| 174 |
|
---|
| 175 | <segmentedlist>
|
---|
| 176 | <segtitle>Installed Program</segtitle>
|
---|
| 177 | <segtitle>Installed Libraries</segtitle>
|
---|
| 178 | <segtitle>Installed Directories</segtitle>
|
---|
| 179 |
|
---|
| 180 | <seglistitem>
|
---|
[ff3a9a0] | 181 | <seg>mujstest, mupdf(symlink), mupdf-gl, mupdf-x11, mupdf-x11-curl,
|
---|
| 182 | muraster, mutool</seg>
|
---|
| 183 | <seg>libmupdf.so, libmupdfthird.so</seg>
|
---|
| 184 | <seg>/usr/include/mupdf, /usr/share/doc/mupdf-&mupdf-version;</seg>
|
---|
[d4bae4c9] | 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
[ff3a9a0] | 193 | <varlistentry id="mujstest">
|
---|
| 194 | <term><command>mujstest</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>
|
---|
| 197 | is a test program for mupdf + javascript
|
---|
| 198 | </para>
|
---|
| 199 | <indexterm zone="mupdf mujstest">
|
---|
| 200 | <primary sortas="b-mujstest">mujstest</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
[d4bae4c9] | 205 | <varlistentry id="mupdf-prog">
|
---|
| 206 | <term><command>mupdf</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>
|
---|
[ff3a9a0] | 209 | is a program for viewing PDF, XPS, EPUB, and CBZ documents,
|
---|
| 210 | and various image formats such as PNG, JPEG, GIFF, and TIFF.
|
---|
[d4bae4c9] | 211 | </para>
|
---|
| 212 | <indexterm zone="mupdf mupdf-prog">
|
---|
| 213 | <primary sortas="b-mupdf">mupdf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[ff3a9a0] | 217 |
|
---|
| 218 | <varlistentry id="mupdf-gl">
|
---|
| 219 | <term><command>mupdf-gl</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
| 222 | same as <command>mupdf</command>, using an opengl renderer.
|
---|
| 223 | </para>
|
---|
| 224 | <indexterm zone="mupdf mupdf-gl">
|
---|
| 225 | <primary sortas="b-mupdf-gl">mupdf-gl</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
| 230 | <varlistentry id="mupdf-x11">
|
---|
| 231 | <term><command>mupdf-x11</command></term>
|
---|
| 232 | <listitem>
|
---|
| 233 | <para>
|
---|
| 234 | same as <command>mupdf</command>, using an X Window renderer.
|
---|
| 235 | </para>
|
---|
| 236 | <indexterm zone="mupdf mupdf-x11">
|
---|
| 237 | <primary sortas="b-mupdf-x11">mupdf-x11</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="mupdf-x11-curl">
|
---|
| 243 | <term><command>mupdf-x11-curl</command></term>
|
---|
| 244 | <listitem>
|
---|
| 245 | <para>
|
---|
| 246 | same as <command>mupdf</command>, using an X Window renderer,
|
---|
| 247 | with the capability of rendering web pages, using an
|
---|
| 248 | <quote>http://...</quote> url.
|
---|
| 249 | </para>
|
---|
| 250 | <indexterm zone="mupdf mupdf-x11-curl">
|
---|
| 251 | <primary sortas="b-mupdf-x11-curl">mupdf-x11-curl</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="muraster">
|
---|
| 257 | <term><command>muraster</command></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>
|
---|
| 260 | transforms files in one of the formats displayable by mupdf into
|
---|
| 261 | a graphic file.
|
---|
| 262 | </para>
|
---|
| 263 | <indexterm zone="mupdf muraster">
|
---|
| 264 | <primary sortas="b-muraster">muraster</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="mutool">
|
---|
| 270 | <term><command>mutool</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>
|
---|
| 273 | deals with document files in various manners.
|
---|
| 274 | </para>
|
---|
| 275 | <indexterm zone="mupdf mutool">
|
---|
| 276 | <primary sortas="b-mutool">mutool</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="libmupdf">
|
---|
| 282 | <term><filename class="libraryfile">libmupdf.so</filename></term>
|
---|
| 283 | <listitem>
|
---|
| 284 | <para>
|
---|
| 285 | contains the mupdf API functions.
|
---|
| 286 | </para>
|
---|
| 287 | <indexterm zone="mupdf libmupdf">
|
---|
| 288 | <primary sortas="c-libmupdf">libmupdf.so</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
| 293 | <varlistentry id="libmupdfthird">
|
---|
| 294 | <term><filename class="libraryfile">libmupdfthird.so</filename></term>
|
---|
| 295 | <listitem>
|
---|
| 296 | <para>
|
---|
| 297 | contains the third party libraries compiled for mudpf.
|
---|
| 298 | </para>
|
---|
| 299 | <indexterm zone="mupdf libmupdfthird">
|
---|
| 300 | <primary sortas="c-libmupdfthird">libmupdfthird.so</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
[d4bae4c9] | 305 | </variablelist>
|
---|
| 306 |
|
---|
| 307 | </sect2>
|
---|
| 308 |
|
---|
| 309 | </sect1>
|
---|