50b731f1b7
Derivative of Redox OS (https://www.redox-os.org) adding: - AMD GPU driver (amdgpu) via LinuxKPI compat layer - ext4 filesystem support (ext4d scheme daemon) - ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG) - Custom branding (hostname, os-release, boot identity) Build system is full upstream Redox with RBOS overlay in local/. Patches for kernel, base, and relibc are symlinked from local/patches/ and protected from make clean/distclean. Custom recipes live in local/recipes/ with symlinks into the recipes/ search path. Build: make all CONFIG_NAME=redbear-full Sync: ./local/scripts/sync-upstream.sh
53 lines
1.3 KiB
TOML
53 lines
1.3 KiB
TOML
# Version date: 02-August-2024
|
|
#
|
|
# Notes:
|
|
# As Tyrian is an ancient, sprite based game, the code isn't updated
|
|
# super frequently. So instead of just pinning the version to the last
|
|
# official release in 2022, I'm pulling from main because it's unlikely
|
|
# anything will break. The last two commits were small fixes, one in 2023
|
|
# and one in 2024.
|
|
|
|
[source]
|
|
git = "https://github.com/opentyrian/opentyrian"
|
|
patches = [ "redox.patch" ]
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"liborbital",
|
|
"mesa",
|
|
"sdl2",
|
|
"zlib",
|
|
# "sdl2-net"
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
# Build system is only a standalone Makefile
|
|
COOKBOOK_CONFIGURE="true"
|
|
COOKBOOK_CONFIGURE_FLAGS=""
|
|
|
|
# See Makefile for variables to override
|
|
export PKG_CONFIG="${TARGET}-pkg-config"
|
|
ASSETSDIR="${COOKBOOK_STAGE}/usr/share/games/tyrian"
|
|
export WITH_NETWORK=false
|
|
export REDOX_OVERRIDE=true
|
|
export prefix="/usr"
|
|
export bindir="${prefix}/games"
|
|
export icondir="/usr/share/icons/apps"
|
|
export gamesdir="${prefix}/share/games"
|
|
|
|
if [ "${COOKBOOK_DYNAMIC}" == "1" ]; then
|
|
LDFLAGS+=" -lstdc++"
|
|
fi
|
|
|
|
# Prepare the sources and download Tyrian (freeware)
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" "${COOKBOOK_RECIPE}/tyrian21.zip.sha" ./
|
|
mkdir -p "${ASSETSDIR}"
|
|
curl -OL https://camanis.net/tyrian/tyrian21.zip
|
|
sha256sum -c tyrian21.zip.sha
|
|
unzip -jd "${ASSETSDIR}" tyrian21.zip
|
|
|
|
cookbook_configure
|
|
"""
|