Do not include system library paths in R_LD_LIBRARY_PATH, picking up system
libraries when previously preferring libraries from pkgsrc causes conflicts.

Fixes build on SmartOS where the platform /usr/lib/libgcc_s.so.1 for legacy
applications conflicts with GCC libraries from pkgsrc.
Update print/mupdf to 1.3 (via pkgsrc-wip by Leonardo Taccari, thanks)
=============================================================================
Notes on updating mupdf to mupdf-1.3 (maybe useful for future updates too)

 * mupdf-1.3 depends on openjpeg-2.0 (previously mupdf-1.1 depended on
   openjpeg-1.5). ${WRKSRC}/Makerules is NOT correct and still looks for
   openjpeg-1.5 so patches/patch-ab was modified in order to fix this
   behaviour. Please also note the SUBST.makerules class in Makefile.
 * mupdf should be build with "build=release" (the default is "build=debug" and
   that may be indesiderable for the common user).
 * In order to completely disable the building of third party libraries (it is
   better to use the ones provided/handled by pkgsrc) a brutal ${RM} -fr completely
   remove the ${WRKSRC}/thirdparty directory. For more information please read
   ${WRKSRC}/Makethird and the post-extract target in Makefile.
 * ${WRKSRC}/docs/thirdparty.txt may help for adding correct version of the
   dependencies.
 * To add libcurl support (www/curl) patches/patch-Makethird was introduced and
   patches/patch-ab was modified in order to use pkg-config for
   $(SYS_CURL_CFLAGS) and $(SYS_CURL_LIBS).
 * By default now mupdf install different binaries, e.g. mupdf-x11 (previous it
   was just "mupdf"), mupdf-x11-curl, etc.. In pkgsrc we install *only* the
   featureful version of mupdf simply as "mupdf". For more information please
   give a look to patches/patch-ac.

=============================================================================
(Upstream) List of changes on master since MuPDF 1.2

 * Windows RT viewer app for MuPDF.
 * Library changes to support progressive loading (display PDF files as
   they download). Windows/Linux/MacOS viewer supports this using curl.
 * Incremental updates to PDF files are now (optionally) preserved on
   loading/saving.
 * Prototype support for checking PDF Digital Signatures.
 * Initial annotation support (strike-out, underline, highlight and ink)
   (library and android builds only).
 * Fix operation on Android API level 8.
 * Android redraw optimisations.
 * Android app now supports Google Cloud Print.
 * Android app translated into many languages.
 * Android support for more architectures.
 * Improvements to store (avoid collisions causing unnecessary evictions).
 * Windows apps use Unicode filenames now.
 * PDF function handling improved; functions can now be passed to devices
   without 'sampling'.
 * PDF image handling improved; images can now be passed to devices
   without decompression.
 * Indexed images are no longer uncompressed at load time, saving memory.
 * Caching of rendered tiles for speed.
 * Improved text analysis mode, capable of spotting columns/indents,
   right-to-left text etc.
 * HTML output mode now includes image output.
 * PDF password encoding handling improved.
 * MuPDF now opens Jpeg, Tiff and PNG files directly.
 * Bug preventing OpenXPS files from being opened fixed.
 * Initial (feature incomplete) SVG and PDF output devices.
 * PWG raster (mono/grey/RGB) and PCL (mono) output devices.
 * Various performance improvements (including tilings and mesh based
   shadings).
 * Revamped directory structure to reflect recent changes.
 * Various potential SEGV, SoftMask and rendering fixes.
 * Many potential crashes in Jpeg2000 and JBIG2 images fixed.

List of changes on master since MuPDF 1.1

 * Important API changes:
    * fz_bbox is now fz_irect.
    * APIs (including fz_device) now pass fz_rect/fz_matrix by reference.
    * fz_device API is now more consistent with regards to use of
      fz_rect rather than fz_bbox.
 * Add support for Javascript and forms handling.
 * Fix many SEGVs with out of spec files. Many thanks to Mateusz "j00ru"
   Jurczyk and Gynvael Coldwind of the Google Security team, zeniko,
   Sebastian Rasmussen and all other contributors.
 * Add fz_open_document_with_stream to allow non-file based operation.
 * Move to using git submodules for third party libraries.
 * Much enhanced Android application. Now on Google Play!
 * Oversized and stroke text clipping implemented.
 * Change shadings to decompose at render times; massive memory savings.
 * Renamed 'mubusy' to 'mutool'.
 * PDF 1.7 Extension Level 8 encryption implemented.
 * Added consts to various parts of the API to help C++ interworking.
 * Prototype transition support.
 * Text searching API moved to fitz.
 * Highlight and copy text selections.
 * Performance enhancements for color conversion and fax decompression.
 * ARM optimisations for color conversion and bitmap scaling.
 * Bitmap subsampling stage introduced, with ARM optimisations.
 * Type 3 fonts; glyphs are now handled as display lists.
 * Scan converter performance improvements.
 * Various rendering fixes.
Add missing file (options.mk).
Needs bzip2.
Updated print/mupdf to 1.3
Needs zlib.
Needs zlib.  Provide dummy Minisat::memUsedPeak().
Needs bzip2 and zlib.
Needs zlib.
Add more libraries required for SunOS.
Needs bzip2 and zlib.
Add cfmakeraw compatability for SunOS.
Avoid existing ERR macros.  Fixes SunOS.
Add SunOS support.
Add mac distfile.
Various patches to fix SunOS build.
SunOS bzero() needs strings.h
sort
Remove obsolete patch
rabbitmq (yesterday)