source: pst/ps/mupdf.xml@ 7b43b6a

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7b43b6a was 7b43b6a, checked in by Pierre Labastie <pieere@…>, 4 years ago

Fix mupdf build

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23807 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.1 KB
Line 
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
8can 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 "6f42be1365350f05270f8776517a3872">
12 <!ENTITY mupdf-size "69 MB">
13 <!ENTITY mupdf-buildsize "322 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 <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 &lfs10_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">MuPDF Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="xorg7-lib"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <!--<xref linkend="freeglut"/>, use of the bundled glut is preferred -->
84 <xref linkend="harfbuzz"/>,
85 <!-- This no-longer gets linked in with our system libs patch
86 <xref linkend="lcms2"/>, -->
87 <xref linkend="libjpeg"/>,
88 <xref linkend="openjpeg2"/>, and
89 <xref linkend="curl"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref role="runtime" linkend="xdg-utils"/> (runtime),
95 <ulink url="https://jbig2dec.com">jbig2dec</ulink>, and
96 <ulink url="https:/mujs.com/">MuJS</ulink>
97 </para>
98
99 <bridgehead renderas="sect4">Required (runtime)</bridgehead>
100 <para role="required">
101 <xref role="runtime" linkend="x-window-system"/>
102 </para>
103
104 <para condition="html" role="usernotes">
105 User Notes: <ulink url="&blfs-wiki;/mupdf"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of MuPDF</title>
111
112 <para>First, fix the Makefile to link properly with the shared library:</para>
113
114<screen><userinput>sed -i '/MU.*_EXE. :/{
115 s/\(.(MUPDF_LIB)\)\(.*\)$/\2 | \1/
116 N
117 s/$/ -lmupdf -L$(OUT)/
118 }' Makefile</userinput></screen>
119
120
121 <para>
122 Install <application>MuPDF</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>cat &gt; user.make &lt;&lt; EOF &amp;&amp;
127USE_SYSTEM_FREETYPE := yes
128USE_SYSTEM_HARFBUZZ := yes
129USE_SYSTEM_JBIG2DEC := no
130USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR
131USE_SYSTEM_LCMS2 := no # need lcms2-art fork
132USE_SYSTEM_LIBJPEG := yes
133USE_SYSTEM_MUJS := no # build needs source anyways
134USE_SYSTEM_OPENJPEG := yes
135USE_SYSTEM_ZLIB := yes
136USE_SYSTEM_GLUT := no # need freeglut2-art fork
137USE_SYSTEM_CURL := yes
138USE_SYSTEM_GUMBO := no
139EOF
140
141export XCFLAGS=-fPIC &amp;&amp;
142make build=release shared=yes &amp;&amp;
143unset XCFLAGS</userinput></screen>
144
145 <para>
146 This package does not come with a test suite.
147 </para>
148
149 <para>
150 Now, as the <systemitem class="username">root</systemitem> user:
151 </para>
152
153<screen role="root"><userinput>make prefix=/usr \
154 shared=yes \
155 docdir=/usr/share/doc/mupdf-&mupdf-version; \
156 install &amp;&amp;
157
158chmod 755 /usr/lib/libmupdf.so &amp;&amp;
159ln -sfv mupdf-x11 /usr/bin/mupdf</userinput></screen>
160
161 </sect2>
162
163 <sect2 role="commands">
164 <title>Command Explanations</title>
165
166 <para>
167 <command>ln -sfv mupdf-x11 /usr/bin/mupdf </command>:
168 This symbolic link chooses between <command>mupdf-gl</command>
169 and <command>mupdf-x11</command> 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>
184 mupdf(symlink),
185 mupdf-gl,
186 mupdf-x11,
187 mupdf-x11-curl,
188 muraster, and
189 mutool
190 </seg>
191 <seg>
192 libmupdf.so
193 </seg>
194 <seg>
195 /usr/include/mupdf,
196 /usr/share/doc/mupdf-&mupdf-version;
197 </seg>
198 </seglistitem>
199 </segmentedlist>
200
201 <variablelist>
202 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
203 <?dbfo list-presentation="list"?>
204 <?dbhtml list-presentation="table"?>
205
206 <varlistentry id="mupdf-prog">
207 <term><command>mupdf</command></term>
208 <listitem>
209 <para>
210 is a program for viewing PDF, XPS, EPUB, and CBZ documents,
211 and various image formats such as PNG, JPEG, GIFF, and TIFF.
212 </para>
213 <indexterm zone="mupdf mupdf-prog">
214 <primary sortas="b-mupdf">mupdf</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="mupdf-gl">
220 <term><command>mupdf-gl</command></term>
221 <listitem>
222 <para>
223 same as <command>mupdf</command>, using an opengl renderer.
224 </para>
225 <indexterm zone="mupdf mupdf-gl">
226 <primary sortas="b-mupdf-gl">mupdf-gl</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="mupdf-x11">
232 <term><command>mupdf-x11</command></term>
233 <listitem>
234 <para>
235 same as <command>mupdf</command>, using an X Window renderer.
236 </para>
237 <indexterm zone="mupdf mupdf-x11">
238 <primary sortas="b-mupdf-x11">mupdf-x11</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="muraster">
244 <term><command>muraster</command></term>
245 <listitem>
246 <para>
247 is a program used to perform rasterization tasks with PDF
248 documents.
249 </para>
250 <indexterm zone="mupdf muraster">
251 <primary sortas="b-muraster">muraster</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="mutool">
257 <term><command>mutool</command></term>
258 <listitem>
259 <para>
260 is a program to perform various operations on PDF files, such
261 as merging and cleaning PDF documents.
262 </para>
263 <indexterm zone="mupdf mutool">
264 <primary sortas="b-mutool">mutool</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="libmupdf">
270 <term><filename class="libraryfile">libmupdf.so</filename></term>
271 <listitem>
272 <para>
273 contains the mupdf API functions.
274 </para>
275 <indexterm zone="mupdf libmupdf">
276 <primary sortas="c-libmupdf">libmupdf.so</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 </variablelist>
282
283 </sect2>
284
285</sect1>
Note: See TracBrowser for help on using the repository browser.