This commit is contained in:
2026-05-19 03:24:10 +02:00
parent 0c9a3fde94
commit 45d47e8d84
12 changed files with 1481 additions and 299 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ def autotools_configure(ctx, extra_args = [], extra_env = {}):
}
env.update(extra_env)
ctx.run([
ctx.source_dir / "configure",
ctx.source_dir + "/configure",
"--host=" + options.target_triple,
"--with-sysroot=" + ctx.sysroot,
"--prefix=" + ctx.prefix,
@@ -25,9 +25,9 @@ def autotools_build(ctx, extra_args = []):
ctx.run(["make", "-j" + str(ctx.jobs)] + extra_args)
def autotools_install(ctx, pkg, extra_args = []):
ctx.run(["make", "install"] + extra_args, env = {"DESTDIR": pkg.destdir})
ctx.run(["make", "install"] + extra_args, env = {"DESTDIR": pkg.dest_dir})
def autotools(configure_args = [], configure_env = [], build_args = [], install_args = []):
def autotools(configure_args = [], configure_env = {}, build_args = [], install_args = []):
def _configure(ctx):
autotools_configure(ctx, extra_args = configure_args, extra_env = configure_env)
def _build(ctx):