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