redox/recipes/games/sopwith/recipe.toml
2026-05-15 22:36:18 +07:00

29 lines
746 B
TOML

[source]
tar = "https://github.com/fragglet/sdl-sopwith/releases/download/sdl-sopwith-2.9.0/sdl-sopwith-2.9.0.tar.gz"
blake3 = "44e1404a9c4bea257d7778d2a4b1512231603a74b0a7b18eac5d18f36730ed3e"
script = """
./autogen.sh
"""
[build]
template = "custom"
dependencies = [
"sdl1",
"liborbital",
"libiconv",
]
script = """
DYNAMIC_INIT
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include/SDL"
export LIBS="-lSDL -lorbital" # TODO: Uses sdl-config instead of pkg-config
# For some reason, cook_configure breaks spectacularly on this
# We will just copy instead
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
COOKBOOK_CONFIGURE="./configure"
COOKBOOK_CONFIGURE_FLAGS+=(
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
)
cookbook_configure
"""