summaryrefslogtreecommitdiff
path: root/archivers/zim-tools/files/patch-meson.build
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2025-01-13 17:03:51 +0100
committerOlivier Certner <olce@FreeBSD.org>2025-01-13 19:04:23 +0100
commitd761d9fdd64e2e0ea9ce21c474febcf193a8e5da (patch)
tree0aea80b10b677fbd0bf356d7bfb9e59b604b5905 /archivers/zim-tools/files/patch-meson.build
parentwww/kiwix-tools: Fetch from official site; Revise WWW and COMMENT (diff)
archivers/zim-tools: New port: Command-line tools for ZIM files
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'archivers/zim-tools/files/patch-meson.build')
-rw-r--r--archivers/zim-tools/files/patch-meson.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/archivers/zim-tools/files/patch-meson.build b/archivers/zim-tools/files/patch-meson.build
new file mode 100644
index 000000000000..b913095ecb3b
--- /dev/null
+++ b/archivers/zim-tools/files/patch-meson.build
@@ -0,0 +1,16 @@
+--- meson.build.orig 2024-09-08 18:40:36 UTC
++++ meson.build
+@@ -17,10 +17,10 @@ endif
+ endif
+ endif
+
+-libzim_dep = dependency('libzim', version:'>=9.2.0', static:static_linkage)
+-libzim_dep = dependency('libzim', version:'<10.0.0', static:static_linkage)
++libzim_dep = dependency('libzim', version:['>=9.2.0', '<10.0.0'], static:static_linkage)
+
+-with_xapian_support = compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN')
++with_xapian_support = compiler.has_header_symbol(
++ 'zim/zim.h', 'LIBZIM_WITH_XAPIAN', dependencies: libzim_dep)
+
+ find_library_in_compiler = meson.version().version_compare('>=0.31.0')
+ rt_dep = dependency('rt', required:false)