source: pst/ps/mupdf.xml@ e406e16

trunk
Last change on this file since e406e16 was e406e16, checked in by Bruce Dubbs <bdubbs@…>, 10 days ago

Update to mupdf-1.24.5.

  • Property mode set to 100644
File size: 8.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
8can be found there, no need to change directory -->
9 <!ENTITY mupdf-download-http "https://www.mupdf.com/downloads/archive/mupdf-&mupdf-version;-source.tar.gz">
10 <!ENTITY mupdf-download-ftp " ">
11 <!ENTITY mupdf-md5sum "1940e7c2c6a45924ddaff162e6bab08f">
12 <!ENTITY mupdf-size "52 MB">
13 <!ENTITY mupdf-buildsize "251 MB">
14 <!ENTITY mupdf-time "0.2 SBU (Using parallelism=4)">
15 <!ENTITY mupdf-lib-major "24.5">
16 <!ENTITY mupdf-lib-minor "5">
17]>
18
19<sect1 id="mupdf" xreflabel="mupdf-&mupdf-version;">
20 <?dbhtml filename="mupdf.html"?>
21
22
23 <title>MuPDF-&mupdf-version;</title>
24
25 <indexterm zone="mupdf">
26 <primary sortas="a-mupdf">mupdf</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MuPDF</title>
31
32 <para>
33 <application>MuPDF</application> is a lightweight PDF and XPS viewer.
34 </para>
35
36 &lfs121_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&mupdf-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&mupdf-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &mupdf-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &mupdf-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &mupdf-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &mupdf-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72<!--
73 <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch: <ulink
78 url="&patch-root;/mupdf-&mupdf-version;-security_fix-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
82-->
83
84 <bridgehead renderas="sect3">MuPDF Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required">
88 <xref linkend="glu"/> and <!-- previously recommended via system freeglut -->
89 <xref linkend="xorg7-lib"/>
90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
94 <!--<xref linkend="freeglut"/>, use of the bundled glut is preferred -->
95 <xref linkend="harfbuzz"/>,
96 <!-- This no-longer gets linked in with our system libs patch
97 <xref linkend="lcms2"/>, -->
98 <xref linkend="libjpeg"/>,
99 <xref linkend="openjpeg2"/>, and
100 <xref linkend="curl"/>
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <xref role="runtime" linkend="xdg-utils"/> (runtime),
106 <ulink url="https://jbig2dec.com">jbig2dec</ulink>, and
107 <ulink url="https://mujs.com/">MuJS</ulink>
108 </para>
109
110 <bridgehead renderas="sect4">Required (runtime)</bridgehead>
111 <para role="required">
112 <xref role="runtime" linkend="x-window-system"/>
113 </para>
114
115 </sect2>
116
117 <sect2 role="installation">
118 <title>Installation of MuPDF</title>
119<!--
120 <para>First, fix the Makefile to link properly with the shared library:</para>
121
122<screen><userinput>sed -i '/MU.*_EXE. :/{
123 s/\(.(MUPDF_LIB)\)\(.*\)$/\2 | \1/
124 N
125 s/$/ -lmupdf -L$(OUT)/
126 }' Makefile</userinput></screen>
127-->
128 <para>
129 Install <application>MuPDF</application> by running the following
130 commands:
131 </para>
132
133<screen><userinput>cat &gt; user.make &lt;&lt; EOF &amp;&amp;
134USE_SYSTEM_FREETYPE := yes
135USE_SYSTEM_HARFBUZZ := yes
136USE_SYSTEM_JBIG2DEC := no
137USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR
138USE_SYSTEM_LCMS2 := no # need lcms2-art fork
139USE_SYSTEM_LIBJPEG := yes
140USE_SYSTEM_MUJS := no # build needs source anyway
141USE_SYSTEM_OPENJPEG := yes
142USE_SYSTEM_ZLIB := yes
143USE_SYSTEM_GLUT := no # need freeglut2-art fork
144USE_SYSTEM_CURL := yes
145USE_SYSTEM_GUMBO := no
146EOF
147
148export XCFLAGS=-fPIC &amp;&amp;
149make build=release shared=yes verbose=yes &amp;&amp;
150unset XCFLAGS</userinput></screen>
151
152 <para>
153 This package does not come with a test suite.
154 </para>
155
156 <para>
157 Now, as the &root; user:
158 </para>
159
160<screen role="root"><userinput>make prefix=/usr \
161 shared=yes \
162 docdir=/usr/share/doc/mupdf-&mupdf-version; \
163 install &amp;&amp;
164
165ln -sfv libmupdf.so.&mupdf-lib-major; /usr/lib/libmupdf.so &amp;&amp;
166ln -sfv libmupdf.so.&mupdf-lib-major; /usr/lib/libmupdf.so.&mupdf-lib-minor; &amp;&amp;
167chmod 755 /usr/lib/libmupdf.so.&mupdf-lib-major; &amp;&amp;
168
169ln -sfv mupdf-x11 /usr/bin/mupdf</userinput></screen>
170
171 </sect2>
172
173 <sect2 role="commands">
174 <title>Command Explanations</title>
175
176 <para>
177 <command>ln -sfv mupdf-x11 /usr/bin/mupdf </command>:
178 This symbolic link chooses between <command>mupdf-gl</command>
179 and <command>mupdf-x11</command> when running <command>mupdf</command>.
180 </para>
181
182 </sect2>
183
184 <sect2 role="content">
185 <title>Contents</title>
186
187 <segmentedlist>
188 <segtitle>Installed Program</segtitle>
189 <segtitle>Installed Libraries</segtitle>
190 <segtitle>Installed Directories</segtitle>
191
192 <seglistitem>
193 <seg>
194 mupdf (symlink),
195 mupdf-gl,
196 mupdf-x11,
197 mupdf-x11-curl,
198 muraster, and
199 mutool
200 </seg>
201 <seg>
202 libmupdf.so
203 </seg>
204 <seg>
205 /usr/include/mupdf,
206 /usr/share/doc/mupdf-&mupdf-version;
207 </seg>
208 </seglistitem>
209 </segmentedlist>
210
211 <variablelist>
212 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
213 <?dbfo list-presentation="list"?>
214 <?dbhtml list-presentation="table"?>
215
216 <varlistentry id="mupdf-prog">
217 <term><command>mupdf</command></term>
218 <listitem>
219 <para>
220 is a program for viewing PDF, XPS, EPUB, and CBZ documents,
221 and various image formats such as PNG, JPEG, GIFF, and TIFF
222 </para>
223 <indexterm zone="mupdf mupdf-prog">
224 <primary sortas="b-mupdf">mupdf</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="mupdf-gl">
230 <term><command>mupdf-gl</command></term>
231 <listitem>
232 <para>
233 same as <command>mupdf</command>, using an opengl renderer
234 </para>
235 <indexterm zone="mupdf mupdf-gl">
236 <primary sortas="b-mupdf-gl">mupdf-gl</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="mupdf-x11">
242 <term><command>mupdf-x11</command></term>
243 <listitem>
244 <para>
245 same as <command>mupdf</command>, using an X Window renderer
246 </para>
247 <indexterm zone="mupdf mupdf-x11">
248 <primary sortas="b-mupdf-x11">mupdf-x11</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="muraster">
254 <term><command>muraster</command></term>
255 <listitem>
256 <para>
257 is a program used to perform rasterization tasks with PDF
258 documents
259 </para>
260 <indexterm zone="mupdf muraster">
261 <primary sortas="b-muraster">muraster</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="mutool">
267 <term><command>mutool</command></term>
268 <listitem>
269 <para>
270 is a program to perform various operations on PDF files, such
271 as merging and cleaning PDF documents
272 </para>
273 <indexterm zone="mupdf mutool">
274 <primary sortas="b-mutool">mutool</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="libmupdf">
280 <term><filename class="libraryfile">libmupdf.so</filename></term>
281 <listitem>
282 <para>
283 contains the mupdf API functions
284 </para>
285 <indexterm zone="mupdf libmupdf">
286 <primary sortas="c-libmupdf">libmupdf.so</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 </variablelist>
292
293 </sect2>
294
295</sect1>
Note: See TracBrowser for help on using the repository browser.