summaryrefslogtreecommitdiff
path: root/graphics/zathura-pdf-mupdf/files
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/zathura-pdf-mupdf/files')
-rw-r--r--graphics/zathura-pdf-mupdf/files/patch-meson.build33
1 files changed, 7 insertions, 26 deletions
diff --git a/graphics/zathura-pdf-mupdf/files/patch-meson.build b/graphics/zathura-pdf-mupdf/files/patch-meson.build
index 52af85b6f040..796828013b0b 100644
--- a/graphics/zathura-pdf-mupdf/files/patch-meson.build
+++ b/graphics/zathura-pdf-mupdf/files/patch-meson.build
@@ -1,26 +1,25 @@
---- meson.build.orig 2024-08-04 08:34:58 UTC
+--- meson.build.orig 2025-11-02 14:41:12 UTC
+++ meson.build
-@@ -22,8 +22,7 @@ cairo = dependency('cairo')
+@@ -23,7 +23,7 @@ cairo = dependency('cairo')
girara = dependency('girara-gtk3')
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))
--mupdfthird = cc.find_library('mupdf-third')
+mupdf = cc.find_library('mupdf')
build_dependencies = [
zathura,
-@@ -32,43 +31,19 @@ build_dependencies = [
+@@ -32,26 +32,7 @@ build_dependencies = [
cairo,
]
-if not 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')
- version_check = '''
-#include <mupdf/fitz/version.h>
-+ build_dependencies += [mupdf]
-
+-
-#if FZ_VERSION_MAJOR < @0@ || (FZ_VERSION_MAJOR == @0@ && FZ_VERSION_MINOR < @1@)
-#error "mupdf @0@.@1@ or newer is requried"
-#endif
@@ -32,27 +31,9 @@
- 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
-+ gumbo
- ]
+- build_dependencies += [mupdf]
-endif
++build_dependencies += [mupdf]
if get_option('plugindir') == ''
plugindir = zathura.get_variable(pkgconfig: 'plugindir')