3bcf4cc196
Comprehensive fix — not a fallback. Each recipe now has explicit [package] section with name and version. Version inference: - Git-source recipes without rev/branch: '0.1.0' (Red Bear convention) - Tar/git recipes with version in URL or dir name: extracted version - Sysroot-copy recipes: matched to toolchain version Affected: 250+ recipes across all categories (core, libs, dev, system, kde, qt, drivers, gpu, drm, kernel, userspace, etc.) Every recipe in the redbear-mini build chain that was missing [package] now has explicit version metadata. Cookbook can now always determine a version at packaging time, eliminating 'cannot guess version' failures. No cookbook fallback hack — the source of truth is recipe metadata.
45 lines
923 B
TOML
45 lines
923 B
TOML
[package]
|
|
name = "ffmpeg6"
|
|
version = "6.0"
|
|
|
|
[source]
|
|
tar = "https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz"
|
|
blake3 = "4879074c357102f85932673044c57c144b0c188ae58edec2a115965536ee340f"
|
|
patches = [
|
|
"ffmpeg.patch",
|
|
"binutils-2.41.patch",
|
|
]
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"liborbital",
|
|
"mesa",
|
|
"sdl2",
|
|
"zlib",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
export LDFLAGS="$LDFLAGS -lSDL2 -lorbital -lOSMesa -lstdc++"
|
|
ARCH="${TARGET%%-*}"
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
--enable-cross-compile
|
|
--target-os=redox
|
|
--arch="${ARCH}"
|
|
--cross_prefix="${TARGET}-"
|
|
--prefix=/usr
|
|
--disable-doc
|
|
--enable-shared
|
|
--disable-static
|
|
--disable-network
|
|
--enable-sdl2
|
|
--enable-zlib
|
|
--enable-encoder=png
|
|
--enable-decoder=png
|
|
)
|
|
cookbook_configure
|
|
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"
|
|
cp -v "${COOKBOOK_RECIPE}/manifest" "${COOKBOOK_STAGE}/usr/share/ui/apps/ffplay"
|
|
"""
|