redox/recipes/wip/vm/qemu/recipe.toml
2024-09-19 21:04:16 -06:00

51 lines
949 B
TOML

[source]
git = "https://github.com/jackpot51/qemu.git"
[build]
template = "custom"
dependencies = [
"curl",
"gettext",
"glib",
"libffi",
"libiconv",
"libjpeg",
"liborbital",
"libpng",
"llvm18",
"mesa",
"nghttp2",
"openssl1",
"pcre",
"pixman",
"sdl2",
"sdl2-image",
"zlib",
]
script = """
COOKBOOK_CONFIGURE_FLAGS=(
--host="${TARGET}"
--prefix="/usr"
--cross-prefix="${TARGET}"
--static
--disable-coroutine-pool
--disable-tpm
)
case "${TARGET}" in
aarch64-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=aarch64-softmmu)
;;
i686-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=i386-softmmu)
;;
x86_64-unknown-redox)
COOKBOOK_CONFIGURE_FLAGS+=(--target-list=x86_64-softmmu)
;;
*)
echo "unsupported target ${TARGET}"
exit 1
;;
esac
cookbook_configure
"""