summaryrefslogtreecommitdiff
path: root/print/mupdf
AgeCommit message (Collapse)AuthorFilesLines
2022-08-11Bump all dependent packages of wayland (belatedly)gutteridge2-3/+4
The package changed with the addition of its libepoll-shim dependency. Otherwise, we can get: ERROR: libepoll-shim>=0.0.20210418 is not installed; can't buildlink files.
2022-07-24mupdf: Avoid bash dependencyleot3-5/+35
Should hopefully fix the build. Problem reported by <wiz>, thanks!
2022-07-23mupdf: Update to 1.20.0leot7-90/+80
Changes: 1.20.0 ------ Experimental C# bindings. Cross compilation should no longer need a host compiler. Major additions to JNI bindings. New API to edit outline New API to resolve and create links New API to toggle individual layers in PDF Layer panel in mupdf-gl Layer option in mutool draw New API to add a Javascript console Console panel in mupdf-gl Text search API extended to be able to distinguish between separate search hits. Command line tool improvements: all: Negative page numbers to index from the last page mutool draw: Add option to render document without text mutool draw and convert: Support DPI option in text and HTML output New hybrid HTML output format using "scripts/pdftohtml" script: Graphics in a background image Text on top Improved WASM viewer demo Support high DPI screens Progressive loading Update to zlib 1.2.12 for security fix.
2022-04-30Update to 1.19.1wen2-7/+6
Upstream changes: List of changes in MuPDF 1.19.1 Updated zlib to 1.2.12 due to CVE-2018-25032.
2021-12-08revbump for icu and libffiadam1-1/+2
2021-10-26print: Replace RMD160 checksums with BLAKE2s checksumsnia1-2/+2
All checksums have been double-checked against existing RMD160 and SHA512 hashes
2021-10-23mupdf: Update to 1.19.0leot12-182/+240
Changes: 1.19.0 ------ * Removed support for Luratech JBIG2 and JPEG2000 decoders. * Added 'extract' library for more output options: Added DOCX output format Added ODT output format * Notable new features: Journal for undo and redo Snapshot for auto-save and restore (for backgrounding mobile apps) Reflow document wrapper Rollover appearance for annotations and widgets Customize appearance of signed digital signatures Progress and cancel callbacks to OCR functions Create signature form fields * Minor new features: Support CJK fonts in pdfwrite output Support JBIG2 images in pdfwrite output Support opacity for all markup annotation types High-DPI aware UI in mupdf-gl mutool extract -a option to embed SMasks as alpha channel * API changes: Removed pdf_widget type alias (was always same as pdf_annot) Updated annotation 'dirty' logic Fix typo in function and type names: designated name -> distinguished name More functions available to 'mutool run' More functions available to Java library * New unicode scripts and fonts for EPUB: Dogra, Elymaic, Gondi, Hanifi Rohingya, Masaram Gondi, Medefaidrin, Nushu, Nyiakeng Puachue Hmong, Old Sogdian, Sogdian, Soyombo, Wancho, Yezidi, and Zanabazar Square. * C++ and Python bindings: C++ and Python bindings now work on Windows. Python bindings are available as pre-built binaries on pypi.org. Added demo PDF viewer using the Python MuPDF bindings and PyQt. Better access to data in generated wrapper classes. Improved handling of out-parameters in generated Python. Text representation of POD types via C++ operator<< and Python str(). Fixed ref-counting bug in iterators. Updates for new MuPDF functions.
2021-10-07print: Remove SHA1 hashes for distfilesnia1-2/+1
2021-09-29revbump for boost-libsadam2-4/+4
2021-05-25mupdf: apply fix for CVE-2021-3407, bump PKGREVISIONnia4-3/+57
2021-04-21revbump for boost-libsadam2-3/+4
2020-10-08mupdf: Update to 1.18.0leot7-61/+100
Changes: 1.18.0 ------ mutool draw: bbox output format. mutool draw: structured text extraction in JSON format. mutool run: StructuredText.walk() mutool run: PDFPage.process() and PDFAnnotation.process() mupdf-gl: Added IBM Common User Access shortcuts for copy & paste. mupdf-gl: Improved redaction UI. java: Example desktop Java viewer. wasm: WebAssembly viewer that runs in a browser. api: Dehyphenation option in structured text extraction, to improve searching for words that are hyphenated across lines. api: pdf_new_date, pdf_to_date, pdf_dict_put_date and pdf_dict_get_date. api: Added choice of image redaction algorithms: none, full, partial. api: Optional use of Tesseract to use OCR to extract text. svg: Many small parsing fixes. svg: Parse inline CSS style attributes. svg: Text elements (simple text layout only). html: Added HTML5 parser. pdf: High security redaction -- save redacted PDF as flattened bitmap, guaranteed to not leak any sensitive redacted information. Experimental C++ bindings. Experimental Python bindings.
2020-05-22revbump after updating security/nettleadam2-3/+4
2020-05-07mupdf: Update to 1.17.0leot11-71/+60
pkgsrc changes: - Remove patches/patch-platform_x11_pdfapp.c, no longer needed Changes: 1.17.0 ------ api: Improved accessors for markup/ink/polygon annotation data. api: Chapter based API for faster EPUB loading. api: Add more documentation to header files. api: Improved digital signature signing and verification. api: Validate changes in a signed PDF file. build: Moved windows build to VS2019 solution. pdf: Redaction now works on images and links as well as text. pdf: Greek, Cyrillic, Chinese, Japanese, and Korean scripts in forms and annotations. pdf: File attachment annotations. pdf: Use CCITT Fax compression for 1-bit images when creating PDF files. epub: More forgiving XHTML parsing. epub: Accelerator files to cache chapter data for faster EPUB loading. epub: Optimized memory use. mutool run: Edit Markup, Ink, and Polygon annotation data. mutool run: Fill out form fields. viewer: Ask for confirmation before closing a PDF with unsaved changes. viewer: Embed and extract file attachment annotations. library: Miscellaneous bugfixes. library: Fixes to store operation. thirdparty: Updated Harfbuzz to 2.6.4. thirdparty: Updated jbig2dec to 0.18. thirdparty: Updated MuJS to 1.0.7. thirdparty: Updated OpenJPEG to 2.3.1. thirdparty: Updated cURL to 7.66.0 (windows only).
2020-05-06revbump after boost updateadam2-4/+4
2020-04-07mupdf: move GL linking into GL optionwiz2-3/+3
Noted by leo@, thanks!
2020-04-07mupdf: link against libGL for glCallListwiz1-1/+2
Fixes build on NetBSD 9.99.55.
2020-03-10librsvg: update bl3.mk to remove libcroco in rust casewiz2-4/+4
recursive bump for the dependency change
2020-03-08*: recursive bump for libffiwiz2-4/+4
2020-01-26mupdf: Enable opengl by default on non-Darwinnia2-3/+9
Briefly discussed with leot on IRC a while ago
2020-01-18*: Recursive revision bump for openssl 1.1.1.jperkin2-4/+4
2020-01-12*: Recursive revbump from devel/boost-libsryoon2-4/+4
2019-12-12mupdf: Fix pressing ` ' (space) on second to last pageleot3-3/+24
When ` ' (space) was pressed on second to last page it did not advanced to the next page as it should. PKGREVISION++
2019-09-23mupdf: pkgsrc now uses freeglut - update patches.nia3-6/+6
Don't force traditional glut so the extensions are enabled properly. Helps the opengl build.
2019-08-30Switch packages using GLUT to FreeGLUT.nia2-4/+4
Start building FreeGLUT with GLUT compatibility on. - GLUT's maintainance state is much worse than FreeGLUT's, with no substanital commits since 2011. - GLUT can no longer be consider a core component of Mesa or X11. - Nobody except us seems to be using it... Other vendors still shipping GLUT: - GoboLinux, T2 SDE, PLD Linux Revbump packages using GLUT or freeglut by default.
2019-08-22Recursive revbump from boost-1.71.0ryoon2-3/+4
2019-08-04mupdf: Update to 1.16.1leot2-7/+7
Changes: 1.16.1 ------ - Misc minor bug fixes (released to fix a build issue on Android)
2019-08-03mupdf: Update to 1.16.0leot9-105/+125
pkgsrc changes: - (re)add curl option to build mupdf with curl support (disabled by default). Unlike previous versions that supported curl now mupdf with curl support is installed as a separate binary as `mupdf-curl' as done by upstream. Changes: 1.16.0 ------ api: Major overhaul of color management architecture. api: Improved functions to verify/sign PDF documents. api: Number tree accessor function pdf_lookup_number. api: Parse and handle more options for PWG output. api: Removed obsolete gproof document type. api: User callbacks for warning and error messages. epub: Changed default page size to A5. epub: Draw embedded SVG documents in EPUB/XHTML. epub: New Noto fonts covering more unicode scripts. epub: Support small-caps font-variant. pdf: Add Redact annotation type and function to apply redactions. pdf: Add/remove/change encryption and password when saving PDF files. pdf: Improvements to text handling in PDF filter processor. pdf: MP and DP operators now call begin/end_layer device methods. pdf: New and improved progressive loading. svg: Draw external images in SVG documents. mutool show: Add 'form' selector to list PDF form fields. mutool sign: Sign PDF documents from the command line. mutool sign: Verify signatures in PDF documents from the command line. viewer: Option to save a script of user actions for replay with mutool run. viewer: Runtime toggle for ICC and spot rendering. viewer: Tooltip when hovering over a link in mupdf-gl.
2019-07-06mupdf: Backport patches to address CVE-2019-13290leot3-2/+52
Bump PKGREVISION
2019-05-17mupdf: restore LDFLAGS chunk of patchwiz2-4/+4
Lost in last update; fixes RELRO builds.
2019-05-13mupdf: Minor fix/cleanups/patch hunks readd accidentally lost in 1.15.0 updateleot6-26/+17
Fixes: - Use `HAVE_GLUT ?= yes' instead of `HAVE_GLUT := yes' in patch-ab: in that way possible `MAKE_ENV+= HAVE_GLUT=no' in options.mk is honored (in 1.15.0 update this could lead to building and installing mupdf-gl and failing due PLIST mismatch despite `opengl' option was not set.) Cleanups/patch hunks readds/improvements: - Avoid to remove non existent thirdparty/curl directory no longer exists, do not remove it in post-extract - Clarify why pkgsrc lcms2 could not be used - Remove curl leftover in buildlink3.mk - Update patch-Makethird, patch-ab, patch-ac comments to reflect reality - Populate SYS_GLUT_{CFLAGS,LIBS} via `pkg-config'
2019-05-12Update to 1.15.0ryoon7-182/+90
* Update lcms2 comment * Remove removed www/curl option Changelog: List of changes in MuPDF 1.15.0 General improvements: * WebAssembly build target and examples. * Improved forms API in both C and Java bindings. * Improved forms JavaScript support. * Create appearance streams for more form field types. * Fixed many bugs in ICC color management. * Fixed many memory leaks in error cleanup. * Fixed bugs in pdfwrite output. * Improved text extraction from LaTeX documents with math symbols. * Improved trace device formatting. * Support CBZ and CBT files larger than 2Gb. * Show table of contents for FB2 and XHTML documents. * Show embedded raster images in SVG and XHTML documents. * Show FB2 cover page. * Add option to save PDF files without encryption. * Add inhibit-spaces option to stext device to turn off missing space detection. * Simplified fz_try/fz_always/fz_catch macros. mupdf-gl improvements: * Automatically open annotation editor when selecting an annotation. * Full page color tinting option in mupdf-gl. * Show/hide table of contents sections. * Trigger a reload with sighup. * Toggle spot color mode with 'e'. mutool improvements: mutool show $PDF outline -- show outline with open/closed state indicator. mutool show $PDF js -- show document level javascript. mutool clean -A -- create appearance streams when missing. mutool clean -AA -- recreate all appearance streams. mutool run docs/examples/portfolio.js -- extract embedded files from PDF document. mutool run docs/examples/pdf-dejpx.js -- decompress JPEG2000 images in PDF document. mutool run docs/examples/fix-s22pdf.js -- fix fonts in documents generated by S22PDF. Significant API changes: * New and improved forms API. * Renamed -DNO_ICC to -DFZ_ENABLE_ICC=0 * Removed fz_annot superclass. Use pdf_annot and pdf_widget directly instead. * Annotations and Widgets now have separate enumerators. * Added optional separations argument to pixmap rendering utility functions. Various cleanups: Per-function documentation comments moved to the source file. Hopefully they will stay up to date more often than when they were hidden away in the header file. Removed unused internal testing tools: mjsgen and jstest. Removed TGA output support. Use one of the more common and useful PAM, PNM, PNG, or TIFF formats instead. Removed support for PDF portfolios. This work-in-progress feature was never completed, and only worked for a small subset of files. Removed support for progressive loading. This rarely used feature added a lot of complexity and was an unending source of bugs and strange behaviour. Removing this feature has allowed us to clean up and simplify large amounts of code, and fix dozens of bugs in one fell swoop.
2018-12-13revbump for boost 1.69.0adam2-4/+4
2018-11-12Recursive revbump from hardbuzz-2.1.1ryoon2-2/+4
2018-10-09mupdf: Add a big XXX comment regarding DIST_SUBDIR definitionleot1-1/+7
(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-09Upstream replaced tarball. Set DIST_SUBDIR for new oneryoon2-6/+8
2018-10-04mupdf: Update print/mupdf to 1.14.0leot12-357/+400
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-08-16revbump after boost-libs updateadam2-2/+4
2018-05-06mupdf: Update print/mupdf to 1.13.0leot10-127/+135
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-04-29revbump for boost-libs updateadam2-4/+4
2018-02-09Package requires a newer zlib version.hauke1-3/+3
Fixes PR pkg/52994
2018-01-21mupdf: restrict to zlib>=1.2.3wiz1-1/+2
From Rusty Dev in PR 52936.
2018-01-01Revbump after boost updateadam2-2/+4
2017-12-21mupdf: Remove patches/patch-scripts_hexdump.cleot1-27/+0
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-18mupdf: Update print/mupdf to 1.12.0leot17-411/+272
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-10-25mupdf: backport patches to fix several possible security issuesleot7-3/+205
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-19mupdf: Fix possible segfaults when calling opj_free()leot3-8/+55
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-09-03Follow some redirects.wiz1-3/+3
2017-08-24Revbump for boost updateadam2-4/+4
2017-07-16Do not possibly (re)initialize LDFLAGS and pass it also to AR_CMD.leot3-8/+8
This fixes RELRO build. Bump PKGREVISION