head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.2 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.6.0.4 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.2 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.5.0.8 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.6 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.4 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.2 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.4.0.2 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.3.0.14 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.12 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.10 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.8 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.6 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.4 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.2 pkgsrc-2022Q3-base:1.3 pkgsrc-2021Q2:1.1.0.6 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.4 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.2 pkgsrc-2020Q4-base:1.1; locks; strict; comment @# @; 1.7 date 2026.03.02.13.31.38; author yhardy; state Exp; branches; next 1.6; commitid iXxHpCWnWRiY5pwG; 1.6 date 2025.07.21.20.53.04; author yhardy; state Exp; branches; next 1.5; commitid Fp8BjaaBxvGlJE3G; 1.5 date 2024.08.14.06.05.16; author adam; state Exp; branches; next 1.4; commitid Z2xjBvl2NaGNMKlF; 1.4 date 2024.05.04.21.46.48; author nikita; state Exp; branches; next 1.3; commitid ynyV74f7lw2VgJ8F; 1.3 date 2022.08.30.14.16.09; author nia; state Exp; branches; next 1.2; commitid tQZb3OheFNv1uURD; 1.2 date 2021.08.14.07.39.02; author nia; state dead; branches; next 1.1; commitid 38JT3jrn8NT7xU4D; 1.1 date 2020.10.08.22.51.55; author leot; state Exp; branches; next ; commitid 5QzdTdUGUJaYx9rC; desc @@ 1.7 log @print/zathura-pdf-mupdf: update to zathura-pdf-mupdf-2026.02.03 "Looks good to me!" from leot@@ Version 2026.02.03 Update for changes in girara Version 2026.01.30 Various bug fixes and improvements Version 0.4.6 Upgrade to mupdf 1.26 Add support for user-provided CSS styles Add support for attachment export Various fixes and improvements @ text @$NetBSD: patch-meson.build,v 1.6 2025/07/21 20:53:04 yhardy Exp $ Link against mupdf normally, not assuming static linking. --- meson.build.orig 2026-03-02 08:55:03.310455962 +0000 +++ meson.build @@@@ -23,7 +23,7 @@@@ cairo = dependency('cairo') girara = dependency('girara') glib = dependency('glib-2.0') cairo = dependency('cairo') -mupdf = dependency('mupdf', required: false, version: '>=@@0@@.@@1@@'.format(mupdf_required_version_major, mupdf_required_version_minor)) +mupdf = dependency('mupdf', version: '>=@@0@@.@@1@@'.format(mupdf_required_version_major, mupdf_required_version_minor)) build_dependencies = [ zathura, @@@@ -32,7 +32,7 @@@@ build_dependencies = [ cairo, ] -if not mupdf.found() +if mupdf.found() # normal build of mupdf mupdf = cc.find_library('mupdf', has_headers: ['mupdf/fitz/version.h', 'mupdf/fitz.h', 'mupdf/pdf.h'], required: true) mupdfthird = cc.find_library('mupdf-third') @@@@ -48,6 +48,22 @@@@ if not mupdf.found() endif build_dependencies += [mupdf, mupdfthird] + + libbrotlienc = dependency('libbrotlienc') + libjpeg = dependency('libjpeg') + libjbig2dec = cc.find_library('jbig2dec') + libopenjp2 = dependency('libopenjp2') + gumbo = dependency('gumbo') + mujs = dependency('mujs') + + build_dependencies += [ + libbrotlienc, + libjpeg, + libjbig2dec, + libopenjp2, + gumbo, + mujs + ] else # build from Debian's libmupdf-dev build_dependencies += [mupdf] @ 1.6 log @print/zathura-pdf-mupdf: explicitly add dependencies during configure phase This ensures that the plugin links and loads correctly. "looks good to me!" from leot@@ @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.5 2024/08/14 06:05:16 adam Exp $ d5 1 a5 1 --- meson.build.orig 2024-08-04 08:34:58.000000000 +0000 d7 2 a8 2 @@@@ -22,7 +22,7 @@@@ zathura = dependency('zathura', version: girara = dependency('girara-gtk3') a12 1 mupdfthird = cc.find_library('mupdf-third') d15 1 d24 2 a25 2 version_check = ''' @@@@ -47,6 +47,20 @@@@ if not mupdf.found() d30 1 d38 1 d47 1 a47 1 build_dependencies += [mupdf, mupdfthird] @ 1.5 log @zathura-pdf-mupdf: updated to 0.4.4 VERSION 0.4.4 Various fixes and improvements VERSION 0.4.3 Fix crash due to multi-threading issues Various fixes and improvements VERSION 0.4.2 Compatible with mupdf 1.24 Various fixes and improvements @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.4 2024/05/04 21:46:48 nikita Exp $ d25 21 @ 1.4 log @zathura-pdf-mupdf: update to version 0.4.1 Changelog: zathura-pdf-mupdf 0.4.1 2023/09/14 Changelog Fix handling of links zathura-pdf-mupdf 0.4.0 2022/11/27 Changelog Implement better text selection @ text @d1 2 a2 2 $NetBSD: patch-meson.build,v 1.3 2022/08/30 14:16:09 nia Exp $ d5 3 a7 3 --- meson.build.orig 2024-05-04 23:41:36.376199051 +0200 +++ meson.build 2024-05-04 23:43:38.125240401 +0200 @@@@ -19,7 +19,7 @@@@ d11 2 a12 2 -mupdf = dependency('mupdf', required: false) +mupdf = dependency('mupdf') d16 1 a16 1 @@@@ -29,32 +29,9 @@@@ d21 4 a24 31 - # normal build of mupdf - mupdf = cc.find_library('mupdf') - build_dependencies += [mupdf, mupdfthird] -else - # build from Debian's libmupdf-dev - build_dependencies += [mupdf, mupdfthird] - - libjpeg = dependency('libjpeg') - libjbig2dec = cc.find_library('jbig2dec') - libopenjp2 = dependency('libopenjp2') - gumbo = dependency('gumbo') - tesseract = dependency('tesseract') - leptonica = dependency('lept') - mujs = dependency('mujs') - - build_dependencies += [ - libjpeg, - libjbig2dec, - libopenjp2, - gumbo, - tesseract, - leptonica, - mujs - ] -endif +# normal build of mupdf +mupdf = cc.find_library('mupdf') +build_dependencies += [mupdf, mupdfthird] if get_option('plugindir') == '' plugindir = zathura.get_variable(pkgconfig: 'plugindir') @ 1.3 log @zathura-pdf-mupdf: Clean up confusing dependency handling, eliminating some deps that are pulled as a result of some workarounds for how Linux distributions are distributing mupdf. Concern raised by leot@@. @ text @d1 2 a2 2 $NetBSD$ d5 3 a7 3 --- meson.build.orig 2022-08-22 21:00:38.000000000 +0000 +++ meson.build @@@@ -19,7 +19,7 @@@@ zathura = dependency('zathura', version: d16 1 a16 1 @@@@ -29,32 +29,9 @@@@ build_dependencies = [ d51 1 a51 1 plugindir = zathura.get_pkgconfig_variable('plugindir') @ 1.2 log @zathura-pdf-mupdf: update to 0.3.7 Changelog * Compatible with mupdf 1.18 * Various fixes and improvements @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.1 2020/10/08 22:51:55 leot Exp $ d3 1 a3 1 Adjust link-external option for mupdf-1.18.0 (gumbo dependency added) d5 1 a5 1 --- meson.build.orig 2020-09-06 08:24:37.400727000 +0000 d7 11 a17 1 @@@@ -32,11 +32,13 @@@@ build_dependencies = [ d20 29 a48 5 if get_option('link-external') + gumbo = dependency('gumbo') libjpeg = dependency('libjpeg') libjbig2dec = cc.find_library('jbig2dec') libopenjp2 = dependency('libopenjp2') d50 2 a51 5 build_dependencies += [ + gumbo, libjpeg, libjbig2dec, libopenjp2 @ 1.1 log @zathura-pdf-mupdf: Add gumbo to link-external option This is needed for mupdf-1.18.0. PKGREVISION++ @ text @d1 1 a1 1 $NetBSD$ @