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.
47 lines
1.0 KiB
TOML
47 lines
1.0 KiB
TOML
[package]
|
|
name = "retroarch"
|
|
version = "0.1.0"
|
|
|
|
[source]
|
|
git = "https://github.com/jackpot51/retroarch.git"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"liborbital",
|
|
"libretro-super",
|
|
"mesa",
|
|
"openssl1",
|
|
"sdl2",
|
|
"zlib",
|
|
]
|
|
script = """
|
|
pushd "${COOKBOOK_SOURCE}"
|
|
./fetch-submodules.sh
|
|
popd
|
|
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
|
|
|
# For now, we will statically link with the snes9x libretro
|
|
mkdir -pv "${COOKBOOK_SYSROOT}/lib"
|
|
cp -v "${COOKBOOK_SYSROOT}/share/libretro/snes9x_libretro.a" "${COOKBOOK_SYSROOT}/lib/libretro.a"
|
|
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
--host="${TARGET}"
|
|
--prefix="/"
|
|
--disable-builtinzlib # conflicts with zlib
|
|
--disable-discord # does not link
|
|
--disable-dylib
|
|
--disable-dynamic
|
|
--disable-netplaydiscovery # missing ifaddrs.h
|
|
--disable-thread_storage # crash in pthread_setspecific called by sthread_tls_set
|
|
--disable-threads # prevents hang
|
|
--enable-opengl
|
|
--enable-sdl2
|
|
--enable-ssl
|
|
--enable-zlib
|
|
--with-libretro="-lretro -lstdc++ -lz"
|
|
)
|
|
cookbook_configure
|
|
"""
|