MuPDF is a lightweight PDF viewer and toolkit written in portable C.
The renderer in MuPDF is tailored for high quality anti-aliased graphics. It
renders text with metrics and spacing accurate to within fractions of a
pixel for the highest fidelity in reproducing the look of a printed page on
screen.
MuPDF has a small footprint. A binary that includes the standard Roman fonts
is only one megabyte. A build with full CJK support (including an Asian
font) is approximately five megabytes.
MuPDF has support for all non-interactive PDF 1.7 features, and the toolkit
provides a simple API for accessing the internal structures of the PDF
document. Example code for navigating interactive links and bookmarks,
encrypting PDF files, extracting fonts, images, and searchable text, and
rendering pages to image files is provided.
===> The following configuration options are available for mupdf-1.28.5,1:
DOCS=on: Build and/or install documentation
JS=off: JavaScript support (V8 engine)
SCROLL=on: Build with scroll hacks
===> Use 'make config' to modify these settings
graphics/mupdf: Update to 1.26.3
The mupdf requires GNU's ar because it support @file option so add
devel/binutils to build dependencies.
Use archivers/brotli in dependencies.
Clean and simplify make arguments.
Remove unneeded CFLAGS and LDFLAGS.
Remove unneeded post-patch.
Changelog: https://github.com/ArtifexSoftware/mupdf/blob/master/CHANGES
multiple_ports: moved man to share/man
Update my ports:
graphics/mupdf
x11-wm/herbstluftwm
x11/stalonetray
Fix order of variables in graphics/mupdf.
Approved by: bofh (mentor)
Differential Revision: https://reviews.freebsd.org/D44052
graphics/mupdf: update to 1.23.9
ChangeLog: https://mupdf.com/releases/history.html
MuPDF 1.23.9 (2024-01-11)
* Fix text moving after redaction.
* Add use-cid-for-unknown-unicode option to stext device.
MuPDF 1.23.8 (2024-01-08)
* Move previously private APIs into public headers so they can be used in
python bindings.
* Add version numbers to shared library installation targets on Linux/OpenBSD.
* Avoid setuptools problems for python bindings in python 3.12.
(Only the first 15 lines of the commit message are shown above )
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
graphics: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Abel Chow <ozsanh45vds001@sneakemail.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Ade Lovett <ade@lovett.com>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Hayward <xelah@xelah.com>
* Alex Ivasyuv <siegerstein@pochta.ru>
* Alex Samorukov <samm@os2.kiev.ua>
(Only the first 15 lines of the commit message are shown above )
graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.
PR: 246767
Reviewed by: manu, bapt
Approved by: x11
Differential Revision: https://reviews.freebsd.org/D30824
graphics/mupdf: update to 1.18.0
ChangeLog: https://mupdf.com/release_history.html
While here rework post-patch and remove noop REINPLACE_CMD
PR: 250473
Submitted by: uzsolt@uzsolt.hu (maintainer)
graphics/mupdf: Update to 1.17
Apply patch in graphics/zathura-pdf-mupdf to use transition functions to the new
API (int fz_page_number_from_location(ctx, doc, location))
ChangeLog: https://www.mupdf.com/docs/api/changes.html
PR: 246532
Submitted by: salil.wadnerkar@gmail.com
Approved by: uzsolt@uzsolt.hu (maintainer)
Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
graphics/mudpf, graphics/zathura-pdf-mudpf: Update to 1.16.0 and 0.3.5
* Update both ports as mupdf 1.16.0 would break zathura-pdf-mupdf <= 0.3.4
and vice versa.
* zathura-pdf-mupdf: Change secondary entry of MASTER_SITES to maintainer's
site as the previous one was provided by madpilot@ as an interim solution
some time ago to cope with unreachability issues of pwmt.org. [1]
Notable changes for mudpf:
* api: Major overhaul of color management architecture.
* api: Improved functions to verify/sign PDF documents.
* epub: Changed default page size to A5.
* epub: New Noto fonts covering more unicode scripts.
(Only the first 15 lines of the commit message are shown above )
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
graphics/mupdf: fix build with big-endian architectures
Remove files/patch-thirdparty_lcms2_src_cmsmd5.c to fix build.
The port builds without this patch now and the patch actually breaks build.
PR: 237930
Approved by: linimon (mentor), uzsolt@uzsolt.hu (maintainer)
Differential Revision: https://reviews.freebsd.org/D20400
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
graphics/mupdf: Fix linking with libmupdf.so for third-party ports
libmupdf.so references symbols from libmupdfthird.so but does not
link directly against it.
This is problematic for ports using the --as-needed linker option,
such as graphics/zathura-pdf-mupdf (>= 0.3.3) due to Meson's defaults.
zathura-pdf-mupdf itself does not reference symbols from libmupdfthird.so,
and so despite being included in the linker arguments, libmupdfthird.so
is not actually linked in.
$ zathura --version
error: Could not load plugin '/usr/local/lib/zathura/libpdf-mupdf.so'
(/usr/local/lib/libmupdf.so.1.13.0: Undefined symbol "js_tointeger").
This is a consequence of us providing shared libraries in spite of
upstream since r433550 to keep package sizes down, but not properly
understanding the dependency between libmupdfthird and libmupdf.
PR: 232059
Submitted by: Albert Ou <aou@eecs.berkeley.edu>
Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG. Change the dependency to be on the port, rather than a file the
port installs.
Fix fallout.
Bump portrevision on depending ports.
PR: 230909
Reviewed by: eadler
Approved by: portmgr (antoine)
Obtained
from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto
exp-run: antoine
Differential Revision: https://reviews.freebsd.org/D16906
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
Revision bump of all ports with USE_GL after consolidation of mesa-libs
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10845
Update to 1.11
- Prevent linking with libcrypto when a pkg-config file for it exists
on the system [1]
- Bump PORTREVISION of dependent ports
PR: 218996, 218688 [1]
Reported by: rsmith@xs4all.nl [1]
Submitted by: Zsolt Udvari <udvzsolt@gmail.com> (maintainer)
Approved by: lme (mentor)
Differential Revision: https://reviews.freebsd.org/D10561
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
Patch graphics/mupdf to build shared libraries instead of static ones.
Because the libraries are faily big this significantly reduces the size of
programs linking to it. Use PORTVERSION as the library version because
upstream does not guarantee compatibility between any two versions.
Add an upstream patch to graphics/llpp to fix brightness increase key.
PR: 216823
Submitted by: Tobias Kortkamp <t@tobik.me> (maintainer of llpp)
Approved by: Zsolt Udvari <udvzsolt@gmail.com> (maintainer)
Obtained from: OpenBSD
graphics/mupdf: Update to version 1.10a.
Other port changes:
- Remove unnecessary WRKSRC definition.
- Do not strip binaries that are already stripped.
- Remove old patches.
Upstream changelog: http://mupdf.com/news
PR: 216061
Submitted by: udvzsolt@gmail.com (maintainer)
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D9178
Remove -I${LOCALBASE}/include from CFLAGS, it leads to
broken build when older version is already installed on the
system. Newer mupdf tries to build against old headers and in
meanwhile API has changed considerably.
PR: 210741
Submitted by: Tobias Kortkamp
Reported by: drhowarddrfine@charter.net
- Fix build with openjpeg 2.1.1
- Bump PORTREVISION
- While I'm here:
- Update MASTER_SITES: make 1.7 fetchable
- Use DISTVERSIONSUFFIX instead of EXTRACT_SUFX
- Convert to new options helper
PR: 203327
Submitted by: Walter Schwarzenfeld <w.litter@aon.at>
Approved by: Zsolt Udvari <udvzsolt@gmail.com> (maintainer)
Mark BROKEN: fails to link with openjpeg 2.1.1
cc -fstack-protector -o build/release/mudraw build/release/tools/mudraw.o
build/release/libmupdf.a -L/usr/local/lib -lm -L/usr/local/lib -lfreetype
-ljbig2dec -ljpeg -L/usr/local/lib -lopenjp2 -lz
build/release/libmupdf.a(load-jpx.o): In function `fz_load_jpx':
source/fitz/load-jpx.c:(.text+0x56): undefined reference to
`opj_set_default_decoder_parameters'
source/fitz/load-jpx.c:(.text+0x69): undefined reference to
`opj_create_decompress'
source/fitz/load-jpx.c:(.text+0x84): undefined reference to
`opj_set_info_handler'
Reported by: pkg-fallout
graphics/mupdf: drop obsolete mirror from MASTER_SITES
GOOGLE_CODE page says:
Downloads are not hosted on google code anymore.
Go to the official MuPDF page instead.
=> mupdf-1.7-source.tar.gz doesn't seem to exist in /usr/ports/distfiles.
=> Attempting to fetch http://mupdf.googlecode.com/files/mupdf-1.7-source.tar.gz
fetch: http://mupdf.googlecode.com/files/mupdf-1.7-source.tar.gz: Not Found
Submitted by: Herbert J. Skuhra <herbert@oslo.ath.cx>
Approved by: Zsolt Udvari <udvzsolt@gmail.com> (maintainer)
- Add dependency on libcurl
- Remove a patch and simplify the Makefile a bit
- Create and install libmupdf_pic.a which can be linked into shared
libraries such as the zathura-pdf-mupdf plugin
PR: 192397
Approved by: Zsolt Udvari <udvzsolt@gmail.com> (maintainer)
graphics/mupdf: 1.2 -> 1.5
- For changes since 1.2 see http://www.mupdf.com/news
- new maintainer: Zsolt Udvari
PR: 184335
Submitted by: Zsolt Udvari <udvzsolt@gmail.com>
Approved by: lichray@gmail.com (maintainer timeout)
2 more ports: convert to USES+= zip
USES=zip is currently desired when all distfiles are zip archives, unless
the after-extraction arguments are tailored for ${TAR}. Currently
USES=zip is incompatible with multiple distfiles of different formats,
but this is being worked on.
Approved by: general infrastructure blanket
Update openjpeg to 2.1.0.
Version 2.x is incompatible with openjpeg 1.5. Preserve it as openjpeg15
and update users.
Approved by: portmgr (implicit) for NO_STAGE ports
The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:
NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE
This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.
This patch also contains updates of libxcb and related ports, pixman, as well
(Only the first 15 lines of the commit message are shown above )
- update to 1.1
- use BSD_INSTALL_DATA for static lib to keep symbols
while here:
- convert Makefile header into two-line format
- remove LICENSE_FILE, unneeded for GPLv3
- switch to USE_PKGCONFIG
- remove quotes from option description
- change bsd.port.[pre|post].mk with just bsd.port.mk
- whitespace fixes in pkg-descr
PR: 171795
Submitted by: Martin Dieringer <martin.dieringer at gmx dot de>
Approved by: Zhihao Yuan <lichray at gmail dot com> (maintainer)
- Instead of using a hardcoded DPI, obtain it from X;
- Add an optional hack that allows j, k and mouse to scroll across
page boundary.
Submitted by: maintainer
PR: ports/157095 (with changes)