mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 23:04:19 +08:00
Merge branch 'patch3' into 'master'
TOML conversions to fix build See merge request redox-os/cookbook!446
This commit is contained in:
commit
14a5102964
@ -1,42 +0,0 @@
|
||||
#TODO: remove --without-mixer when it no longer crashes on x86_64
|
||||
VERSION=2.5.0
|
||||
TAR=https://downloads.sourceforge.net/project/prboom/prboom%20stable/$VERSION/prboom-$VERSION.tar.gz
|
||||
BUILD_DEPENDS=(sdl1 liborbital sdl1-mixer libogg libvorbis)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export CFLAGS="-static"
|
||||
export MIXER_LIBS="-lSDL_mixer -lvorbisfile -lvorbis -logg"
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
autoreconf -if
|
||||
wget -O autotools/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
./configure \
|
||||
--prefix=/ \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--disable-cpu-opt \
|
||||
--disable-i386-asm \
|
||||
--disable-gl \
|
||||
--disable-sdltest \
|
||||
--without-mixer \
|
||||
--without-net \
|
||||
--with-sdl-prefix="$sysroot" \
|
||||
ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
|
||||
"$REDOX_MAKE" -j"$($NPROC)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest/usr" install
|
||||
skip=1
|
||||
}
|
||||
35
recipes/games/prboom/recipe.toml
Normal file
35
recipes/games/prboom/recipe.toml
Normal file
@ -0,0 +1,35 @@
|
||||
#TODO: remove --without-mixer when it no longer crashes on x86_64
|
||||
[source]
|
||||
tar = "https://downloads.sourceforge.net/project/prboom/prboom%20stable/2.5.0/prboom-2.5.0.tar.gz"
|
||||
blake3 = "24c1b9b5aa15fd73e59162055f2c6d8faa82759b76ddfca9828cd2a5c8dc6b2a"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
autotools_recursive_regenerate
|
||||
wget -O autotools/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"sdl1",
|
||||
"liborbital",
|
||||
"sdl1-mixer",
|
||||
"libogg",
|
||||
"libvorbis"
|
||||
]
|
||||
script = """
|
||||
export CFLAGS="-static"
|
||||
export MIXER_LIBS="-lSDL_mixer -lvorbisfile -lvorbis -logg"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-cpu-opt
|
||||
--disable-i386-asm
|
||||
--disable-gl
|
||||
--disable-sdltest
|
||||
--without-mixer
|
||||
--without-net
|
||||
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
|
||||
ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
GIT=https://github.com/sajattack/terminfo
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
echo "skipping build"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
echo "skipping clean"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
mkdir -p ../stage/share
|
||||
cp -r * ../stage/share/
|
||||
skip=1
|
||||
}
|
||||
11
recipes/other/terminfo/recipe.toml
Normal file
11
recipes/other/terminfo/recipe.toml
Normal file
@ -0,0 +1,11 @@
|
||||
[source]
|
||||
git = "https://github.com/sajattack/terminfo"
|
||||
branch = "master"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
mkdir -p ${COOKBOOK_STAGE}/share
|
||||
cp -r ${COOKBOOK_SOURCE}/. ${COOKBOOK_STAGE}/share/
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user