[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">
|
---|
| 78 | <xref linkend="xorg7-lib"/>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para role="recommended">
|
---|
[388747dd] | 83 | <!--<xref linkend="freeglut"/>, -->
|
---|
[41745476] | 84 | <xref linkend="harfbuzz"/>,
|
---|
[13c6e90] | 85 | <!-- This no-longer gets linked in with our system libs patch
|
---|
| 86 | <xref linkend="lcms2"/>, -->
|
---|
[bd81e201] | 87 | <xref linkend="libjpeg"/>,
|
---|
| 88 | <xref linkend="openjpeg2"/>, and
|
---|
[94b9889] | 89 | <xref linkend="curl"/>
|
---|
[d4bae4c9] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
[f5cdf41] | 94 | <xref role="runtime" linkend="xdg-utils"/> (runtime),
|
---|
[2f727d8f] | 95 | <ulink url="https://jbig2dec.com">jbig2dec</ulink>, and
|
---|
[014e63e] | 96 | <ulink url="https:/mujs.com/">MuJS</ulink>
|
---|
[d4bae4c9] | 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <bridgehead renderas="sect4">Required (runtime)</bridgehead>
|
---|
| 100 | <para role="required">
|
---|
[f5cdf41] | 101 | <xref role="runtime" linkend="x-window-system"/>
|
---|
[d4bae4c9] | 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 |
|
---|
[388747dd] | 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)//
|
---|
| 116 | N
|
---|
| 117 | s/$/ -lmupdf/
|
---|
| 118 | }' Makefile</userinput></screen>
|
---|
| 119 |
|
---|
| 120 |
|
---|
[d4bae4c9] | 121 | <para>
|
---|
| 122 | Install <application>MuPDF</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[388747dd] | 126 | <screen><userinput>cat > user.make << EOF &&
|
---|
| 127 | USE_SYSTEM_FREETYPE := yes
|
---|
| 128 | USE_SYSTEM_HARFBUZZ := yes
|
---|
| 129 | USE_SYSTEM_JBIG2DEC := no
|
---|
| 130 | USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR
|
---|
| 131 | USE_SYSTEM_LCMS2 := no # need lcms2-art fork
|
---|
| 132 | USE_SYSTEM_LIBJPEG := yes
|
---|
| 133 | USE_SYSTEM_MUJS := no # build needs source anyways
|
---|
| 134 | USE_SYSTEM_OPENJPEG := yes
|
---|
| 135 | USE_SYSTEM_ZLIB := yes
|
---|
| 136 | USE_SYSTEM_GLUT := no # need freeglut2-art fork
|
---|
| 137 | USE_SYSTEM_CURL := yes
|
---|
| 138 | USE_SYSTEM_GUMBO := no
|
---|
| 139 | EOF
|
---|
| 140 |
|
---|
| 141 | export XCFLAGS=-fPIC &&
|
---|
| 142 | make build=release shared=yes &&
|
---|
| 143 | unset XCFLAGS</userinput></screen>
|
---|
[d4bae4c9] | 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 |
|
---|
[388747dd] | 153 | <screen role="root"><userinput>make prefix=/usr \
|
---|
| 154 | shared=yes \
|
---|
[ff3a9a0] | 155 | docdir=/usr/share/doc/mupdf-&mupdf-version; \
|
---|
[6a5eaa0] | 156 | install &&
|
---|
[dd168618] | 157 |
|
---|
[388747dd] | 158 | chmod 755 /usr/lib/libmupdf.so &&
|
---|
| 159 | ln -sfv mupdf-x11 /usr/bin/mupdf</userinput></screen>
|
---|
[ff3a9a0] | 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
[d97e2f71] | 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>.
|
---|
[ff3a9a0] | 170 | </para>
|
---|
[d4bae4c9] | 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>
|
---|
[014e63e] | 183 | <seg>
|
---|
| 184 | mupdf(symlink),
|
---|
| 185 | mupdf-gl,
|
---|
| 186 | mupdf-x11,
|
---|
[388747dd] | 187 | mupdf-x11-curl,
|
---|
[014e63e] | 188 | muraster, and
|
---|
| 189 | mutool
|
---|
[90dd633] | 190 | </seg>
|
---|
[014e63e] | 191 | <seg>
|
---|
[388747dd] | 192 | libmupdf.so
|
---|
[90dd633] | 193 | </seg>
|
---|
[014e63e] | 194 | <seg>
|
---|
| 195 | /usr/include/mupdf,
|
---|
| 196 | /usr/share/doc/mupdf-&mupdf-version;
|
---|
[90dd633] | 197 | </seg>
|
---|
[d4bae4c9] | 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>
|
---|
[ff3a9a0] | 210 | is a program for viewing PDF, XPS, EPUB, and CBZ documents,
|
---|
| 211 | and various image formats such as PNG, JPEG, GIFF, and TIFF.
|
---|
[d4bae4c9] | 212 | </para>
|
---|
| 213 | <indexterm zone="mupdf mupdf-prog">
|
---|
| 214 | <primary sortas="b-mupdf">mupdf</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
[ff3a9a0] | 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 |
|
---|
[014e63e] | 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 |
|
---|
[c1ee005] | 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 |
|
---|
[ff3a9a0] | 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 |
|
---|
[d4bae4c9] | 281 | </variablelist>
|
---|
| 282 |
|
---|
| 283 | </sect2>
|
---|
| 284 |
|
---|
| 285 | </sect1>
|
---|