git: 94766b375936 - main - graphics/mupdf: Update to 1.28.3

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 12:37:56 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=94766b375936b0e844841e3af595edd172fb3cfa

commit 94766b375936b0e844841e3af595edd172fb3cfa
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2026-09-11 12:35:20 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2026-09-11 12:37:33 +0000

    graphics/mupdf: Update to 1.28.3
    
    Add cmark-gfm to support text-only epubs.
    
    Changelogs: https://mupdf.com/releases/history
    
    PR:             298338
---
 graphics/mupdf/Makefile        |  8 ++++++--
 graphics/mupdf/distinfo        |  6 +++---
 graphics/mupdf/files/user.make | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+), 5 deletions(-)

diff --git a/graphics/mupdf/Makefile b/graphics/mupdf/Makefile
index 7df0ad3e8d98..9f91318fbb9e 100644
--- a/graphics/mupdf/Makefile
+++ b/graphics/mupdf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mupdf
-DISTVERSION=	1.28.2
+DISTVERSION=	1.28.3
 DISTVERSIONSUFFIX=	-source
 PORTREVISION=	1
 PORTEPOCH=	1
@@ -16,6 +16,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 BUILD_DEPENDS=	${LOCALBASE}/bin/ar:devel/binutils
 LIB_DEPENDS=	libbrotlidec.so:archivers/brotli \
 		libbrotlienc.so:archivers/brotli \
+		libcmark-gfm.so:textproc/cmark-gfm \
 		libcurl.so:ftp/curl \
 		libfreetype.so:print/freetype2 \
 		libgumbo.so:devel/gumbo \
@@ -33,7 +34,7 @@ _VERSION_MINOR=	${DISTVERSION:E}
 _VERSION_MAJOR=	${DISTVERSION:R:E}
 MAKE_ARGS=	AR=${LOCALBASE}/bin/ar \
 		build=release \
-		html=no \
+		html=yes \
 		mandir=${PREFIX}/share/man \
 		prefix=${PREFIX} \
 		shared=yes \
@@ -61,6 +62,9 @@ JS_MAKE_ARGS=		V8_PRESENT=1 \
 			V8LIBS=-lv8
 SCROLL_EXTRA_PATCHES=	${FILESDIR}/scroll_hack-platform__x11__pdfapp.c
 
+post-patch:
+	${CP} ${FILESDIR}/user.make ${WRKSRC}
+
 post-install:
 	${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 \
 		${STAGEDIR}${PREFIX}/bin/mupdf
diff --git a/graphics/mupdf/distinfo b/graphics/mupdf/distinfo
index d913063f4fda..5a668c99b4f6 100644
--- a/graphics/mupdf/distinfo
+++ b/graphics/mupdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1787647423
-SHA256 (mupdf-1.28.2-source.tar.gz) = 44075a84e329db55b9bef5f342a70fd26d69e48ad1d33cb89d9664581c641156
-SIZE (mupdf-1.28.2-source.tar.gz) = 68898646
+TIMESTAMP = 1789128757
+SHA256 (mupdf-1.28.3-source.tar.gz) = 37c3209dc0e06fa4f3781ed44839ad933a9e6143eb4731f99e069204715bcef2
+SIZE (mupdf-1.28.3-source.tar.gz) = 68899954
diff --git a/graphics/mupdf/files/user.make b/graphics/mupdf/files/user.make
new file mode 100644
index 000000000000..cac1aafb6dec
--- /dev/null
+++ b/graphics/mupdf/files/user.make
@@ -0,0 +1,40 @@
+HAVE_GLUT := yes
+HAVE_LIBCRYPTO := no
+HAVE_OPENSSL_SSL := no
+HAVE_PTHREAD := yes
+HAVE_X11 := yes
+PTHREAD_LIBS := -lthr
+SYS_CMARK_GFM_CFLAGS := $(shell pkg-config --cflags libcmark-gfm)
+SYS_CMARK_CFM_LIBS := $(shell pkg-config --libs libcmark-gfm) -lcmark-gfm-extensions
+SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl)
+SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
+SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
+SYS_FREETYPE_LIBS := $(shell pkg-config --libs freetype2)
+SYS_GLUT_CFLAGS := $(shell pkg-config --cflags gl glut)
+SYS_GLUT_LIBS := $(shell pkg-config --libs gl glut)
+SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz)
+SYS_HARFBUZZ_LIBS := $(shell pkg-config --libs harfbuzz)
+SYS_JBIG2DEC_CFLAGS := $(shell pkg-config --cflags jbig2dec)
+SYS_JIB2DEC_LIBS := $(shell pkg-config --libs jbig2dec)
+SYS_LIBCRYPTO_CFLAGS :=
+SYS_LIBCRYPTO_LIBS :=
+SYS_LIBJPEG_CFLAGS := $(shell pkg-config --cflags libjpeg)
+SYS_LIBJPEG_LIBS := $(shell pkg-config --libs libjpeg)
+SYS_OPENJPEG_CFLAGS := $(shell pkg-config --cflags libopenjp2)
+SYS_OPENJPEG_LIBS := $(shell pkg-config --libs libopenjp2)
+SYS_PTHREAD_CFLAGS :=
+SYS_PTHREAD_LIBS := -lpthread
+SYS_ZLIB_CFLAGS := $(shell pkg-config --cflags zlib)
+SYS_ZLIB_LIBS := $(shell pkg-config --libs zlib)
+USE_SYSTEM_CMARK_GFM := yes
+USE_SYSTEM_CURL := yes
+USE_SYSTEM_FREETYPE := yes
+USE_SYSTEM_GLUT := yes
+USE_SYSTEM_HARFBUZZ := yes
+USE_SYSTEM_JBIG2DEC := yes
+USE_SYSTEM_LCMS2 := no
+USE_SYSTEM_LIBJPEG := yes
+USE_SYSTEM_OPENJPEG := yes
+USE_SYSTEM_ZLIB := yes
+X11_CFLAGS := $(shell pkg-config --cflags x11 xext)
+X11_LIBS := $(shell pkg-config --libs x11 xext)