Commit graph

74 commits

Author SHA1 Message Date
ryoon
b86dfe6873 Recursive revbump from hardbuzz-2.1.1 2018-11-12 03:51:07 +00:00
leot
a67742bc4f mupdf: Add a big XXX comment regarding DIST_SUBDIR definition
(TLDR; the changes between the two tarballs are not malign and we can safely
remove the DIST_SUBDIR definition in the next mupdf stable release.)
2018-10-09 13:06:48 +00:00
ryoon
016c40d706 Upstream replaced tarball. Set DIST_SUBDIR for new one 2018-10-09 12:34:16 +00:00
leot
b8e06d2f70 mupdf: Update print/mupdf to 1.14.0
pkgsrc changes:
 - Pass USE_SYSTEM_LIBS=yes via MAKE_ENV in order to honor system (pkgsrc)
   packages {C,LD}FLAGS
 - Rewrite the logic to disable lcms2 in patch-ab and inject -DNO_ICC
   directly via CFLAGS

Changes:
MuPDF 1.14.0
------------
* New features:
    * Added "Source Han Serif" CJK fallback font.
    * Added more scripts to the Noto fallback fonts.
    * Multi-page PNM support.
    * "mutool show" now supports a path syntax for selecting objects to show.

* Build system simplifications:
    * Auto-generated CMap, ICC, and JS source files are checked in to git.
    * Embedded CMap resources are now generated by a python script.
    * Embedded font resources are linked directly if using GNU ld or windows.
    * Namegen tool replaced by use of C macros.
    * Simplified Makefile.

* Annotation editing:
    * New annotation editing mode in mupdf-gl.
    * Can create, edit, and delete most annotation types.
    * Can create appearance streams for most annotation types.
    * Can create appearance streams for Tx form fields.
    * Can create appearance streams for Ch form fields.

* Form filling in mupdf-gl:
    * Can click buttons, checkboxes, and radioboxes.
    * Can fill out text fields using dialog box.
    * Can select choice options using dialog box.
    * Can verify and sign digital signatures.

* Improved UI for mupdf-gl:
    * Password dialog.
    * Error dialog.
    * Open/save file dialog.
    * Snap selection to words or lines by holding control or control+shift.
    * Save and restore current location, bookmarks, and navigation history.

* Bug fixes:
    * Improved CJK character fallback handling in EPUB.

* API changes:
    * Pass rectangle and matrix structs by value.
    * Replaced PDF_NAME_Xxx macros with PDF_NAME(Xxx).
    * Added PDF_TRUE, PDF_FALSE, and PDF_NULL constant pdf_obj* macros.
    * Added helper functions: pdf_dict_get_int, etc.
    * Removed 'doc' argument in pdf_new_int, etc.
    * Quads instead of rects when highlighting and searching text.
    * mutool run: Pass arguments to script in scriptArgs global.
2018-10-04 19:02:33 +00:00
adam
9d06c0a472 revbump after boost-libs update 2018-08-16 18:54:26 +00:00
leot
fea5aee3b9 mupdf: Update print/mupdf to 1.13.0
pkgsrc changes:
 - Directly override VERSION in files/mupdf.pc in the post-build phase
   (to avoid an extra manual step for every mupdf update)
 - Get rid of OPJ_STATIC patch hunk in patches/patch-source_fitz_load-jpx.c (it
   is no more needed, because the `-DOPJ_STATIC' is now passed in Makefile-s
   when the bundled openjpeg is used).
 - Pass HAVE_LIBCRYPTO=no to avoid requiring openssl>=1.1.0.

Changes:
1.13.0
------
* This is primarily a bugfix release.
* New "mutool sign" tool for showing and verifying digital signatures.
* Chinese, Japanese, Korean, Cyrillic, and Greek font support in mutool create.
* Improvements to annotation editing API.
2018-05-06 13:19:10 +00:00
adam
35aa3efc12 revbump for boost-libs update 2018-04-29 21:31:17 +00:00
hauke
f759f02243 Package requires a newer zlib version.
Fixes PR pkg/52994
2018-02-09 16:03:04 +00:00
wiz
84974caaf6 mupdf: restrict to zlib>=1.2.3
From Rusty Dev in PR 52936.
2018-01-21 08:21:37 +00:00
adam
983847f667 Revbump after boost update 2018-01-01 21:18:06 +00:00
leot
25a0fa91e5 mupdf: Remove patches/patch-scripts_hexdump.c
It is no longer needed and it was not registered in the distinfo after the
1.12.0 update.

Thanks a lot to <wiz> for noticing and reporting that!
2017-12-21 10:00:22 +00:00
leot
0294092f83 mupdf: Update print/mupdf to 1.12.0
pkgsrc changes:
 - Add support for the `opengl' option via graphics/glut and remove the `glfw'
   option to follow upstream changes. Adjust options.mk and buildlink3.mk
   accordingly.
 - Add patches/patch-platform_gl_gl-app.h to not force freeglut GLUT
   implementation to every non-APPLE platforms (glut also works!) and adjust the
   glut.h include.
 - Add a commented out lcms2 bl3 inclusion entry, lcms2>=2.9 is needed (due
   "lcms2art.h" et al. inclusion, so disable it for now)
 - Explain the OPJ_STATIC comment in patches/patch-source_fitz_load-jpx.c
   a bit more in depth... ...this will hopefully save some time to
   debug opj_* undefined symbols when trying to link libmupdf and
   accidently omitting the patches/patch-source_fitz_load-jpx.c
   hunk (for extra debugging stories fun, if OPJ_STATIC is defined
   some opj_* symbols are defined while others are not defined,
   making the debugging of that problem more naughty!).
 - Inject HAVE_{CURL,GLUT} variables via MAKE_ENV in options.mk to avoid
   depending on www/curl and graphics/glut (yes, that's a bit kludgy
   but unfortunately mupdf doesn't have a configure and so there
   isn't a more sensible way to do it).  This is needed to avoid
   building mupdf-gl for native X.org where the glut.pc pkg-config
   file is available at build time.  Also adjust patches/patch-ab
   accordingly.
 - Remove patches/patch-CVE*, they are no longer needed (all applied in 1.12.0)
 - Bump BUILDLINK_API_DEPENDS.mupdf to 1.12.0 (there were several API changes
   from 1.11 to 1.12.0) and remove the now redundant and no longer needed
   BUILDLINK_ABI_DEPENDS.mupdf.

Changes:
List of changes in MuPDF 1.12.0

* Color management:
   * LCMS2 library for color management.
   * CMYK rendering with overprint simulation.
   * Spot color rendering.
   * Transparency rendering fixes.

* Structured text output improvements:
   * Reworked structured text API.
   * Faster text searching.
   * Highlight and copy text by selecting lines instead of by area.
   * New semantic XHTML output format.
   * New layout preserving HTML output format.

* Features and improvements:
   * Improved non-AA rendering with new scan converter.
   * Improved LARGEFILE support.
   * Improved TIFF support.
   * Improved documentation.
   * PCLm output.
   * PSD output.
   * New "mutool trace" tool.
   * New "mutool sign" tool (work in progress).
   * Text redaction (work in progress).

* Lots of bug fixes.
2017-12-18 15:06:33 +00:00
leot
c7c4a4eefa mupdf: backport patches to fix several possible security issues
Backport patches from upstream to address CVE-2017-14685, CVE-2017-14686,
CVE-2017-14687, CVE-2017-15369 and CVE-2017-15587.

These will not be needed for the next mupdf stable release.

Bump PKGREVISION.
2017-10-25 11:00:03 +00:00
leot
f8b8a214a0 mupdf: Fix possible segfaults when calling opj_free()
With graphics/openjpeg (at least 2.2.0 and 2.3.0) mupdf can crashes when
calling opj_free().
Adapt a patch from OpenBSD ports
textproc/mupdf/patch-source_fitz_load-jpx_c,v 1.5 that fixes this issue.

Bump PKGREVISION
2017-10-19 20:32:07 +00:00
wiz
42426a5a45 Follow some redirects. 2017-09-03 08:53:04 +00:00
adam
62d3f1ac1b Revbump for boost update 2017-08-24 20:02:56 +00:00
leot
7f8869ac74 Do not possibly (re)initialize LDFLAGS and pass it also to AR_CMD.
This fixes RELRO build.

Bump PKGREVISION
2017-07-16 08:29:53 +00:00
joerg
2dd4b571cb Fix the problem with hexdump and LLVM properly. Use .incbin on NetBSD
instead of forcing 8M+ element character array literals through the
compiler.
2017-06-17 19:45:28 +00:00
rumko
371c41ef61 print/mupdf: fix build on fbsd
scripts/hexdump.c: do not output HAVE_INCBIN for fbsd
See https://bugs.ghostscript.com/show_bug.cgi?id=696828

Ok@ leot
2017-05-28 12:42:21 +00:00
fhajny
97aa01a8bc Remove left-behind Linux libs, fixes at least Darwin. 2017-05-19 18:00:38 +00:00
ryoon
76884737ca Recursive revbump from boost update 2017-04-30 01:21:19 +00:00
leot
d282934e31 Update print/mupdf to 1.11
Changes:
List of changes in MuPDF 1.11
-----------------------------
* This is primarily a bug fix release.
* Split Android and iOS viewers into separate projects:
   - mupdf-viewer-ios.git has the iOS viewer.
   - mupdf-viewer-android-old.git has the Android viewer.
   - mupdf-viewer-android-nui.git has a new advanced Android viewer.
   - mupdf-viewer-android-mini.git has a new minimalist Android viewer.
* PDF portfolio support with command line tool "mutool portfolio".
* Add callbacks to load fallback fonts from the system.
* Use system fonts in Android to reduce install size.
* Flag to disable publisher styles in EPUB layout.
* Improved SVG output.
2017-04-12 13:03:08 +00:00
ryoon
72c3cb198b Recursive revbump from fonts/harfbuzz 2017-02-12 06:24:36 +00:00
leot
364bf9a600 Backport security fixes for upstream bugs 697514 and 697515 (CVE-2017-5896) to
PKGREVISON++
2017-02-11 09:39:05 +00:00
wiz
7ac05101c6 Recursive bump for harfbuzz's new graphite2 dependency. 2017-02-06 13:54:36 +00:00
leot
6df30171c6 Backport fixes to mupdf-1.10a from upstream for CVE-2017-562[78]
PKGREVISION++
2017-01-30 14:06:05 +00:00
adam
76632718ac Revbump after boost update 2017-01-01 16:05:55 +00:00
leot
212630e921 Update print/mupdf to mupdf-1.10a
pkgsrc changes:
 - Include more bl3 in buildlink3.mk to reflect current reality
 - Bump BUILDLINK_A[BP]I_DEPENDS.mupdf to 1.10a (packages that depends on
   mupdf seems to not run without being rebuilded despite a bug fix release)

Changes:
MuPDF 1.10a (2016-11-28)
------------------------
Version 1.10a is a bug fix release.

If you downloaded the windows release for 1.10 you should also
upgrade, since the zip archive accidentally included the RC2 binaries
instead of the final version.

A bug with mutool and saving PDF files using the 'ascii' option
has been fixed.

The iOS build issues have been fixed.
2016-12-09 08:19:31 +00:00
leot
35cf598388 Update print/mupdf to mupdf-1.10
pkgsrc changes:
 * Update DESCR and COMMENT to better reflect current status of MuPDF
 * Delete security patches addressing CVE-2016-6265 and CVE-2016-6525,
   fixed upstream.
 * Bump BUILDLINK_A[BP]I_DEPENDS.mupdf (no longer compatible with 1.9 API)

Changes:
List of changes in MuPDF 1.10

* Headline changes:
  * FictionBook (FB2) e-book support.
  * Simple SVG parser (a small subset of SVG only).
  * mutool convert: a new document conversion tool and interface.
  * Multi-threaded rendering in mudraw.
  * Luratech decoders for JBIG2 and JPEG2000 (commercial releases only).
  * Optional JPEG-XR support (not included by default for security reasons).
  * Updated base 14 fonts from URW.
  * New CJK font with language specific variants.
  * Hyperlink support in EPUB.

* Reduced memory use:
  * New tool muraster: example printer driver with limited RAM usage and automatic banding.
  * Alpha channel is now optional in pixmaps.
  * More aggressive purging of cached objects.
  * Partial image decoding for lower memory use when banding.

* Reduced code size when building with a subset of features:
  * Reduced default set of built-in CMap tables to the minimum required.
  * FZ_ENABLE_PDF, _XPS, _JS, to disable features at compile time.
  * Function level linking.

* Interface changes and cleanups:
  * Dropped pdf object generation numbers from public interfaces.
  * Simplified PDF page, xobject, and annotation internals.
  * Closing and freeing devices and writers are now separate steps.
  * Improved PDF annotation editing interface (still a work in progress).
  * Document writer interface.
  * Banded image writer interface.

* Mobile viewers:
  * New JNI interfaces to match capabilities of 'mutool run' javascript.
  * New android and desktop java examples using new JNI interface.
2016-11-28 14:40:42 +00:00
adam
3b88bd43a5 Revbump post boost update 2016-10-07 18:25:29 +00:00
leot
7de1dc617d Fix possible heap corruption (via upstream bug 696954).
Bump PKGREVISION
2016-08-03 08:50:17 +00:00
leot
a4dda0c193 Add a patch to fix CVE-2016-6265 use after free bug (from upstream)
Bump PKGREVISION
2016-07-22 15:42:38 +00:00
leot
2ba00c8f09 Fix linking with openjpeg-2.1.1
Restrict OPJ_STATIC definition to Windows (as the comment suggests).
This avoid linking errors with openjpeg-2.1.1.

Bump PKGREVISION
2016-07-15 12:32:33 +00:00
leot
323265c4a3 Update print/mupdf to 1.9a.
pkgsrc changes:
 o Update MASTER_SITES (archive/ subdirectory contains all the distfiles,
   latest stable version and also older ones)
 o Bump BUILDLINK_A[BP]I_DEPENDS.mupdf to 1.9a due to several API and ABI
   changes

Changes:
MuPDF 1.9a (2016-04-26)
-----------------------
Version 1.9a is a bug fix release. If you run into issues with selecting or
searching for text with ligatures, you should upgrade from 1.9.

MuPDF 1.9 (2016-04-18)
-----------------------
The 1.9 release is here!

Headline changes:

  * New command line tools: create and run.
  * New low-level Java interface for desktop and android.
  * Bidirectional layout for Arabic and Hebrew scripts.
  * Shaping complex scripts for EPUB text layout.
  * Noto fallback fonts for EPUB layout.

mutool create:

  * Create new PDF files from scratch.
  * Read an annotated content stream in a text file and write a PDF file,
    automatically embedding font and image resources.

mutool run:

  * Run javascript scripts with MuPDF bindings.
  * The interface is similar to the new Java interface.

mutool draw:

  * Optional multi-threaded operation (Windows and pthreads).
  * Optional low memory mode (primarily for testing).
2016-04-27 12:34:58 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
leot
148984a134 Add glfw option to mupdf (disabled by default).
Bump PKGREVISION++.
2016-02-04 11:50:24 +00:00
leot
cf3edc3ae2 Fix various installation and build issues.
o Add a lost hunk of patches/patch-ac in order to build and install "mupdf-x11"
  simply as "mupdf" (like previous mupdf releases)
o Threat glfw like any other thirdparty library (and avoid to accidently build
  "mupdf-gl")

Thanks to Thomas Klausner and Yorick Hardy for noticing that.
2015-11-12 21:11:31 +00:00
leot
f569d4a382 Update print/mupdf to 1.8.
pkgsrc changes:
 * Bump BUILDLINK_API_DEPENDS (spotted and tested via the only print/mupdf
   consumer wip/zathura-mupdf)
 * OpenGL-based desktop viewer is still not enabled by default neither upstream
   nor in pkgsrc

Changes:
List of changes in MuPDF 1.8
* Headline changes:
	* New OpenGL-based barebones desktop viewer.
	* New URW fonts with greek and cyrillic.
	* 64-bit file support.
	* Ghostscript proofing mode (source only; not in shipped binaries).
* EPUB improvements:
	* User style sheets.
	* GIF images (also for CBZ).
	* Table of contents.
	* CJK text.
	* Page margins.
	* Many bug fixes.
* Bug fixes:
	* Updated FreeType to version 2.6.1.
	* Various font substitution bug fixes.
	* Fix setjmp/longjmp behaviour which could cause optimizing compilers to misbehave.
2015-11-11 17:08:25 +00:00
agc
03010d7bd0 Add SHA512 digests for distfiles for print category
Problems found locating distfiles:
	Package acroread7: missing distfile AdobeReader_enu-7.0.9-1.i386.tar.gz
	Package acroread8: missing distfile AdobeReader_enu-8.1.7-1.sparc.tar.gz
	Package cups-filters: missing distfile cups-filters-1.1.0.tar.xz
	Package dvidvi: missing distfile dvidvi-1.0.tar.gz
	Package lgrind: missing distfile lgrind.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:01:30 +00:00
wiz
c85233ba32 Fix build with jbig2dec-0.12. 2015-09-06 20:53:24 +00:00
wiz
4ad6f5bc3b Update to 1.7a provided by Leonardo Taccari in PR 49918.
MuPDF 1.7a (2015-05-07)
-----------------------
The 1.7a version is a bugfix release. Bug fixes:
* Fixed bug that allocated too much memory when packing paths.
* Fixed EPUB font scaling bug.
* Fixed EPUB file type handling in viewers.
* Improved tolerance for broken and unsupported CSS.

New features:
* Added -z option to mutool clean.
2015-05-27 21:52:19 +00:00
wiz
7f213a2300 Update print/mupdf to 1.7, provided by Leonardo Taccari in PR 49843.
Changes:
MuPDF 1.7 (2015-04-16)

   The 1.7 release is here!

MuPDF 1.7 RC1 (2015-04-08)

   The 1.7 release is almost here!

   Headline changes:
     * New 'Indie dev' licensing options - contact sales@artifex.com
       for more details.
     * New HTML layout engine, and (DRM-free) EPUB viewer.
     * Reduced memory usage - displaylists and internal PDF representation
       take much less memory, reducing total memory use on some files by
       over 60%.

   Important API changes:
     * Bound contexts have been removed; we now pass fz_contexts
       explicitly.
     * Reference counting of paths and text structures.

   Features:
     * Add mutool pages option.
     * Tweaked rendering to prevent feature dropout in common cases.
     * Viewer tweaks
          + Better mouse wheel handling
          + Shift-space support
          + Mouse button control of presentation mode
          + Failed reloads do not close document

   Internal changes:
     * PDF filter revamp - simpler interface.
     * Devices use derived structures rather than user pointer.
     * Sparse PDF xrefs held in more compact form.
     * New gsview viewer split out to its own repository.

   Bug fixes
     * Improved handling of broken files.
     * Fix BBoxes of Type 3 fonts.
     * Updated fonts (including greek and cyrillic).
     * Various memory leaks and crashes.
     * And many more.
2015-04-17 07:18:21 +00:00
wiz
45e86508b6 Update to 1.6:
List of changes in MuPDF 1.6

* Features:
	* Color detection device (mudraw -T).
	* Sepia mode full-page color tinting in X11 and win32 viewer (keybinding: shift-C).
	* Re-implement printf and strtod due to portability issue with locales and number formatting.
	* Add 'gsview' project: a Windows Modern UI viewer.
	* Improve XML parser interface.
* Bug fixes:
	* CBZ page ordering
	* ZIP64 support
	* iOS and Android bug fixes
	* Miscellaneous minor fixes
2014-10-05 15:19:18 +00:00
wiz
d785e4a8cd Cleanup, from Leonardo Taccari. 2014-06-15 19:15:51 +00:00
richard
4c505c0a2d define _XOPEN_SOURCE=600 for SunOS after setting c99 in general 2014-06-15 16:01:58 +00:00
wiz
0238890bf9 Update to 1.5:
This is a bugfix release: dozens of bugs have been found and
exterminated!

A typo resulting in a potential stack overflow that could corrupt
files when saving edits to a PDF has been fixed. Another bug which
caused a significant slowdown has also been fixed.

We strongly recommend that you upgrade â especially if you are
using version 1.4.
2014-06-15 14:14:18 +00:00
wiz
39a8749002 Remove curl from Makefile, it's an option.
Add proper curl option handling to buildlink3.mk.

From Leonardo Taccari.
2014-05-30 21:39:37 +00:00
wiz
2edd27884f Fix build with openjpeg-2.1.
Bump PKGREVISION.
2014-05-18 08:12:22 +00:00
adam
28bb94d01f Revbump after updating graphics/giflib 2014-05-15 14:41:45 +00:00
degroote
c0813e5389 Fix dependencies registered by mupdf buildlink3.mk
Patch has been provided by Leonardo Taccari on #netbsd @ freenode.
Nothing seems to use it at the moment so don't bump revision.
2014-04-29 22:02:21 +00:00