[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 -->
|
---|
[c6b192c] | 9 | <!ENTITY mupdf-download-http "https://www.mupdf.com/downloads/archive/mupdf-&mupdf-version;-source.tar.gz">
|
---|
[d4bae4c9] | 10 | <!ENTITY mupdf-download-ftp " ">
|
---|
[3e256af] | 11 | <!ENTITY mupdf-md5sum "62690ebb86e3683d331554433e58c10a">
|
---|
| 12 | <!ENTITY mupdf-size "55 MB">
|
---|
[1ff37b54] | 13 | <!ENTITY mupdf-buildsize "249 MB">
|
---|
[388747dd] | 14 | <!ENTITY mupdf-time "0.2 SBU (Using parallelism=4)">
|
---|
[d4bae4c9] | 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 |
|
---|
[dbd73d6] | 34 | &lfs113_checked;
|
---|
[d4bae4c9] | 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 |
|
---|
[313f9a6] | 70 | <!--
|
---|
[4f808b6] | 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>
|
---|
[313f9a6] | 80 | -->
|
---|
[4f808b6] | 81 |
|
---|
[d4bae4c9] | 82 | <bridgehead renderas="sect3">MuPDF Dependencies</bridgehead>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 85 | <para role="required">
|
---|
[a4c3c48] | 86 | <xref linkend="glu"/> and <!-- previously recommended via system freeglut -->
|
---|
[d4bae4c9] | 87 | <xref linkend="xorg7-lib"/>
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 91 | <para role="recommended">
|
---|
[7b43b6a] | 92 | <!--<xref linkend="freeglut"/>, use of the bundled glut is preferred -->
|
---|
[41745476] | 93 | <xref linkend="harfbuzz"/>,
|
---|
[13c6e90] | 94 | <!-- This no-longer gets linked in with our system libs patch
|
---|
| 95 | <xref linkend="lcms2"/>, -->
|
---|
[bd81e201] | 96 | <xref linkend="libjpeg"/>,
|
---|
| 97 | <xref linkend="openjpeg2"/>, and
|
---|
[94b9889] | 98 | <xref linkend="curl"/>
|
---|
[d4bae4c9] | 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 102 | <para role="optional">
|
---|
[f5cdf41] | 103 | <xref role="runtime" linkend="xdg-utils"/> (runtime),
|
---|
[2f727d8f] | 104 | <ulink url="https://jbig2dec.com">jbig2dec</ulink>, and
|
---|
[12b6e53] | 105 | <ulink url="https://mujs.com/">MuJS</ulink>
|
---|
[d4bae4c9] | 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <bridgehead renderas="sect4">Required (runtime)</bridgehead>
|
---|
| 109 | <para role="required">
|
---|
[f5cdf41] | 110 | <xref role="runtime" linkend="x-window-system"/>
|
---|
[d4bae4c9] | 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para condition="html" role="usernotes">
|
---|
| 114 | User Notes: <ulink url="&blfs-wiki;/mupdf"/>
|
---|
| 115 | </para>
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="installation">
|
---|
| 119 | <title>Installation of MuPDF</title>
|
---|
| 120 |
|
---|
[388747dd] | 121 | <para>First, fix the Makefile to link properly with the shared library:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput>sed -i '/MU.*_EXE. :/{
|
---|
[7b43b6a] | 124 | s/\(.(MUPDF_LIB)\)\(.*\)$/\2 | \1/
|
---|
[388747dd] | 125 | N
|
---|
[7b43b6a] | 126 | s/$/ -lmupdf -L$(OUT)/
|
---|
[388747dd] | 127 | }' Makefile</userinput></screen>
|
---|
| 128 |
|
---|
[d4bae4c9] | 129 | <para>
|
---|
| 130 | Install <application>MuPDF</application> by running the following
|
---|
| 131 | commands:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
[388747dd] | 134 | <screen><userinput>cat > user.make << EOF &&
|
---|
| 135 | USE_SYSTEM_FREETYPE := yes
|
---|
| 136 | USE_SYSTEM_HARFBUZZ := yes
|
---|
| 137 | USE_SYSTEM_JBIG2DEC := no
|
---|
| 138 | USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR
|
---|
| 139 | USE_SYSTEM_LCMS2 := no # need lcms2-art fork
|
---|
| 140 | USE_SYSTEM_LIBJPEG := yes
|
---|
[0c953f12] | 141 | USE_SYSTEM_MUJS := no # build needs source anyway
|
---|
[388747dd] | 142 | USE_SYSTEM_OPENJPEG := yes
|
---|
| 143 | USE_SYSTEM_ZLIB := yes
|
---|
| 144 | USE_SYSTEM_GLUT := no # need freeglut2-art fork
|
---|
| 145 | USE_SYSTEM_CURL := yes
|
---|
| 146 | USE_SYSTEM_GUMBO := no
|
---|
| 147 | EOF
|
---|
| 148 |
|
---|
[4f808b6] | 149 | export XCFLAGS=-fPIC &&
|
---|
| 150 | make build=release shared=yes &&
|
---|
[388747dd] | 151 | unset XCFLAGS</userinput></screen>
|
---|
[d4bae4c9] | 152 |
|
---|
| 153 | <para>
|
---|
| 154 | This package does not come with a test suite.
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
[388747dd] | 161 | <screen role="root"><userinput>make prefix=/usr \
|
---|
| 162 | shared=yes \
|
---|
[ff3a9a0] | 163 | docdir=/usr/share/doc/mupdf-&mupdf-version; \
|
---|
[6a5eaa0] | 164 | install &&
|
---|
[dd168618] | 165 |
|
---|
[388747dd] | 166 | chmod 755 /usr/lib/libmupdf.so &&
|
---|
| 167 | ln -sfv mupdf-x11 /usr/bin/mupdf</userinput></screen>
|
---|
[ff3a9a0] | 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
| 171 | <sect2 role="commands">
|
---|
| 172 | <title>Command Explanations</title>
|
---|
| 173 |
|
---|
| 174 | <para>
|
---|
[8558044] | 175 | <command>ln -sfv mupdf-x11 /usr/bin/mupdf </command>:
|
---|
[d97e2f71] | 176 | This symbolic link chooses between <command>mupdf-gl</command>
|
---|
| 177 | and <command>mupdf-x11</command> when running <command>mupdf</command>.
|
---|
[ff3a9a0] | 178 | </para>
|
---|
[d4bae4c9] | 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>
|
---|
[014e63e] | 191 | <seg>
|
---|
[8558044] | 192 | mupdf (symlink),
|
---|
| 193 | mupdf-gl,
|
---|
| 194 | mupdf-x11,
|
---|
[388747dd] | 195 | mupdf-x11-curl,
|
---|
[014e63e] | 196 | muraster, and
|
---|
| 197 | mutool
|
---|
[90dd633] | 198 | </seg>
|
---|
[014e63e] | 199 | <seg>
|
---|
[388747dd] | 200 | libmupdf.so
|
---|
[90dd633] | 201 | </seg>
|
---|
[014e63e] | 202 | <seg>
|
---|
[8558044] | 203 | /usr/include/mupdf,
|
---|
[014e63e] | 204 | /usr/share/doc/mupdf-&mupdf-version;
|
---|
[90dd633] | 205 | </seg>
|
---|
[d4bae4c9] | 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>
|
---|
[ff3a9a0] | 218 | is a program for viewing PDF, XPS, EPUB, and CBZ documents,
|
---|
[4c24eb0a] | 219 | and various image formats such as PNG, JPEG, GIFF, and TIFF
|
---|
[d4bae4c9] | 220 | </para>
|
---|
| 221 | <indexterm zone="mupdf mupdf-prog">
|
---|
| 222 | <primary sortas="b-mupdf">mupdf</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
[ff3a9a0] | 226 |
|
---|
| 227 | <varlistentry id="mupdf-gl">
|
---|
| 228 | <term><command>mupdf-gl</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
[4c24eb0a] | 231 | same as <command>mupdf</command>, using an opengl renderer
|
---|
[ff3a9a0] | 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>
|
---|
[4c24eb0a] | 243 | same as <command>mupdf</command>, using an X Window renderer
|
---|
[ff3a9a0] | 244 | </para>
|
---|
| 245 | <indexterm zone="mupdf mupdf-x11">
|
---|
| 246 | <primary sortas="b-mupdf-x11">mupdf-x11</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
[014e63e] | 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
|
---|
[4c24eb0a] | 256 | documents
|
---|
[014e63e] | 257 | </para>
|
---|
| 258 | <indexterm zone="mupdf muraster">
|
---|
| 259 | <primary sortas="b-muraster">muraster</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
[c1ee005] | 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
|
---|
[4c24eb0a] | 269 | as merging and cleaning PDF documents
|
---|
[c1ee005] | 270 | </para>
|
---|
| 271 | <indexterm zone="mupdf mutool">
|
---|
| 272 | <primary sortas="b-mutool">mutool</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
[ff3a9a0] | 277 | <varlistentry id="libmupdf">
|
---|
| 278 | <term><filename class="libraryfile">libmupdf.so</filename></term>
|
---|
| 279 | <listitem>
|
---|
| 280 | <para>
|
---|
[4c24eb0a] | 281 | contains the mupdf API functions
|
---|
[ff3a9a0] | 282 | </para>
|
---|
| 283 | <indexterm zone="mupdf libmupdf">
|
---|
| 284 | <primary sortas="c-libmupdf">libmupdf.so</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
[d4bae4c9] | 289 | </variablelist>
|
---|
| 290 |
|
---|
| 291 | </sect2>
|
---|
| 292 |
|
---|
| 293 | </sect1>
|
---|