diff options
author | Olivier Certner <olce@FreeBSD.org> | 2025-01-13 17:03:51 +0100 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2025-01-13 19:04:23 +0100 |
commit | d761d9fdd64e2e0ea9ce21c474febcf193a8e5da (patch) | |
tree | 0aea80b10b677fbd0bf356d7bfb9e59b604b5905 /archivers/zim-tools/files/patch-src_zimcheck_meson.build | |
parent | www/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-src_zimcheck_meson.build')
-rw-r--r-- | archivers/zim-tools/files/patch-src_zimcheck_meson.build | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/archivers/zim-tools/files/patch-src_zimcheck_meson.build b/archivers/zim-tools/files/patch-src_zimcheck_meson.build new file mode 100644 index 000000000000..e458ce1b224f --- /dev/null +++ b/archivers/zim-tools/files/patch-src_zimcheck_meson.build @@ -0,0 +1,30 @@ +--- src/zimcheck/meson.build.orig 2024-09-08 18:40:36 UTC ++++ src/zimcheck/meson.build +@@ -8,11 +8,13 @@ inc = include_directories(extra_include) + + inc = include_directories(extra_include) + +-if compiler.get_id() == 'gcc' and host_machine.system() == 'linux' +- # C++ std::thread is implemented using pthread on linux by gcc +- thread_dep = dependency('threads') +-else +- thread_dep = dependency('', required:false) ++zimcheck_deps = [libzim_dep, icu_dep, docopt_dep] ++ ++# C++ std::thread is implemented using pthread on Linux by GCC, and on FreeBSD ++# for both GCC and LLVM. ++if (host_machine.system() == 'linux' and compiler.get_id() == 'gcc') or \ ++ host_machine.system() == 'freebsd' ++ zimcheck_deps += dependency('threads') + endif + + executable('zimcheck', +@@ -23,7 +25,5 @@ executable('zimcheck', + '../tools.cpp', + '../metadata.cpp', + include_directories : inc, +- dependencies: [libzim_dep, icu_dep, thread_dep, docopt_dep], ++ dependencies: zimcheck_deps, + install: true) +- +- |