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