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