diff --git a/kiwixbuild/dependencies.py b/kiwixbuild/dependencies.py index 4c6a27d..b1a1f05 100644 --- a/kiwixbuild/dependencies.py +++ b/kiwixbuild/dependencies.py @@ -326,7 +326,7 @@ class Zimwriterfs(Dependency): @property def dependencies(self): - base_dependencies = ['libzim', 'zlib', 'lzma', 'xapian-core', 'gumbo'] + base_dependencies = ['libzim', 'zlib', 'xapian-core', 'gumbo'] if self.buildEnv.platform_info.build != 'native': return base_dependencies + ["icu4c_cross-compile", "libmagic_cross-compile"] else: @@ -337,12 +337,14 @@ class Zimwriterfs(Dependency): git_dir = "zimwriterfs" release_git_ref = "1.1" - def _post_prepare_script(self, context): - context.try_skip(self.git_path) - command = "./autogen.sh" - self.buildEnv.run_command(command, self.git_path, context) + class Builder(MesonBuilder): + @property + def configure_option(self): + base_option = "-Dmagic-install-prefix={buildEnv.install_dir}" + if self.buildEnv.platform_info.static: + base_option += " -Dstatic-linkage=true" + return base_option - Builder = MakeBuilder class Kiwixlib(Dependency):