%general-entities; ]> $Date$ MuPDF-&mupdf-version; mupdf Introduction to MuPDF MuPDF is a lightweight PDF and XPS viewer. &lfs110a_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &mupdf-md5sum; Download size: &mupdf-size; Estimated disk space required: &mupdf-buildsize; Estimated build time: &mupdf-time; Required Additional Downloads Required patch: MuPDF Dependencies Required and Recommended , , , and Optional (runtime), jbig2dec, and MuJS Required (runtime) User Notes: Installation of MuPDF First, fix the Makefile to link properly with the shared library: sed -i '/MU.*_EXE. :/{ s/\(.(MUPDF_LIB)\)\(.*\)$/\2 | \1/ N s/$/ -lmupdf -L$(OUT)/ }' Makefile Install MuPDF by running the following commands: cat > user.make << EOF && USE_SYSTEM_FREETYPE := yes USE_SYSTEM_HARFBUZZ := yes USE_SYSTEM_JBIG2DEC := no USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR USE_SYSTEM_LCMS2 := no # need lcms2-art fork USE_SYSTEM_LIBJPEG := yes USE_SYSTEM_MUJS := no # build needs source anyways USE_SYSTEM_OPENJPEG := yes USE_SYSTEM_ZLIB := yes USE_SYSTEM_GLUT := no # need freeglut2-art fork USE_SYSTEM_CURL := yes USE_SYSTEM_GUMBO := no EOF export XCFLAGS=-fPIC && patch -Np1 -i ../mupdf-&mupdf-version;-security_fix-1.patch && make build=release shared=yes && unset XCFLAGS This package does not come with a test suite. Now, as the root user: make prefix=/usr \ shared=yes \ docdir=/usr/share/doc/mupdf-&mupdf-version; \ install && chmod 755 /usr/lib/libmupdf.so && ln -sfv mupdf-x11 /usr/bin/mupdf Command Explanations ln -sfv mupdf-x11 /usr/bin/mupdf : This symbolic link chooses between mupdf-gl and mupdf-x11 when running mupdf. Contents Installed Program Installed Libraries Installed Directories mupdf (symlink), mupdf-gl, mupdf-x11, mupdf-x11-curl, muraster, and mutool libmupdf.so /usr/include/mupdf, /usr/share/doc/mupdf-&mupdf-version; Short Descriptions mupdf is a program for viewing PDF, XPS, EPUB, and CBZ documents, and various image formats such as PNG, JPEG, GIFF, and TIFF mupdf mupdf-gl same as mupdf, using an opengl renderer mupdf-gl mupdf-x11 same as mupdf, using an X Window renderer mupdf-x11 muraster is a program used to perform rasterization tasks with PDF documents muraster mutool is a program to perform various operations on PDF files, such as merging and cleaning PDF documents mutool libmupdf.so contains the mupdf API functions libmupdf.so