# This stuff was getting long & annoying, so I moved it to a separate file. # It's probably only of interest to me, and only because my memory is short. # 20201020 bkw: update for 1.18.0. See notes, below. # Notes for 1.18.0: # - This script can no longer build older versions, too many changes. # - Upstream *finally* supports building as a shared library, so I and # all other distro packagers can stop patching it... except the # shared lib is unversioned, which means upgrades would cause more # breakage than they should. So there's still some trickery here to # build a versioned solib. # - I've got rid of the STATIC=yes option and now only build shared libs. # As a side effect, libmupdf-third is gone, but I've included a # placeholder so stuff that links with it, will work without patching. # - gumbo (HTML parser) is now a hard dep. The source is bundled, so # there's no need to create a new gumbo SlackBuild, but it does mean # the mupdf shared lib has grown in size. # - mupdf-gl uses freeglut. The version we have in 14.2 is new enough to # build with, but old enough that you can't copy text from mupdf-gl. # So we build the bundled version here. # - API docs are now included in the package. # - Now using upstream's icons, including scalable SVG. # - Add missing doinst.sh # - There's now the option to build with tesseract and leptonica, # but it's disabled in this script. I have yet to get it to # actually *do* anything other than fail to build (when using # upstream's tesseract/leptonica forks) or complain about being # unable to load eng.traineddata (using SBo tesseract/leptonica, # and yes eng.traineddata is fine). Until I work out what's wrong, # or upstream releases a new version, this script doesn't support # building with tesseract. Don't contact me about this before March # 1, 2021, unless you actually have a patch that fixes it. After # that, if this message is still here, feel free to remind me to # revisit it. # - Slackware 14.2's libcrypto (from openssl) is too old for mupdf, # and there's no bundled souce for it. So currently mupdf is being # built without libcrypto. Hope that's OK. # 20160725 bkw: # - version bump to 1.9a. # - s/i486/i586/g (to match new 14.2 template). # - script will no longer build old versions of mupdf, too much # changed upstream. # 20200217 bkw: update for 1.16.1. # 20180623 bkw: BUILD=2, add patch for dynamic linking. Thanks # to Thomas Morper for pointing me in the right direction. # 20180615 bkw: update for 1.13.0, move old change comments to ChangeLog.old # 20180101 bkw: update for 1.12.0. # 20170711 bkw: update for 1.11. # 20170621 bkw: fix build with -current's newer openjpeg, BUILD=2. # 20170122 bkw: update for 1.10a. # 20150915 bkw BUILD=2: # - add -DJBIG_NO_MEMENTO, needed for building with jbig2dec-0.12. # 20150511 bkw: # - version bump to 1.7a. # - remembered to reset BUILD to 1, yay. # - no other changes (amazingly enough). # 20140827 bkw: fix quality control fails in previous version. # 2 issues pointed out by Thomas Morper in an email: # - The source is already found in upstream's archive/, and won't get # moved, so update DOWNLOAD in the .info file to point there. # - Get rid of redundant /usr/share/doc/mupdf dir. # # Also, I forgot to reset BUILD to 1 when VERSION changed, so this # will be build "4" of 1.5 even thought it's really the 2nd one :( # 20140822 bkw: # - Updated for mupdf-1.5. # - Hosting the source on my server, so I know it won't get moved # to an archive/ dir when a new release comes out. # - Script also tested with 1.4: # DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/mupdf-1.4-source.tar.gz" # MD5SUM="0f6840a7020db0c833b0c090ca1864ec" # - Add .desktop, .pc, icon # - Got rid of CVE-2014-2013 patch (integrated by upstream in 1.4). # - Remove man page patch (not needed for 1.4 and up). # - Replace openjpeg dep with newly-submitted openjpeg2. # - Small patch to allow building with openjpeg 2.1.0 (rather than 2.0.0). # - For now, revert to static libmupdf. Upstream doesn't support # shared libs, they hate it when distro packages create them, # and rolling my own shared libs is more PITA than it's worth. # - Upstream renamed the binary to mupdf-x11, add symlinks so scripts # or .desktop files can still run it as mupdf, and "man mupdf" will # still work. # 20140224 bkw: # - backported security fix for CVE-2014-2013. I will be upgrading this # build to mupdf-1.3, but it'll take more work than I currently have # time for: # + mupdf's internals have changed, will have to redo my patches # + it depends on openjpeg 2.0 which SBo hasn't got yet. 2.0 uses an # incompatible API, so an openjpeg 2.0 SlackBuild would require # updates for everything that depends on it. # + zathura-pdf-mupdf will need updating (mupdf's API has changed) # + probably all the other zathura-* builds will need updating to # be compatible with new zathura-pdf-mupdf # The security fix is needed now, it's a tiny patch, and shouldn't have # to wait on all that other stuff. # 20140318 bkw: fix permissions on headers and man pages. # 20130618 bkw: # - Took over maintenance. # - Updated for mupdf 1.2. # - Build library shared, not static. # - Build with system zlib, libjpeg, openjpeg, jbig2dec, libtiff, libpng, # liblcms2 instead of bundled sources (which made the lib + exes *huge*). # Also, the included libjpeg is too new (it broke zathura-pdf-mupdf). # - Include mutool in package (instead of just its man page). # - Add CHANGES CONTRIBUTORS doc/* to /usr/doc. # - Use DESTDIR libdir mandir instead of patching makefile. # - Updated README & slack-desc to mention XPS and CBZ. # - Fix the man pages slightly.