source: pst/ps/mupdf.xml

trunk
Last change on this file was d7c32a9c, checked in by Thomas Trepl <thomas@…>, 3 weeks ago

Upgrade mupdf-1.24.1

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