mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-05 12:07:46 +08:00
Convert vice recipe to TOML
This commit is contained in:
parent
e3a3001a12
commit
a70aca7d9a
@ -1,42 +0,0 @@
|
||||
VERSION=3.3
|
||||
TAR=https://sourceforge.net/projects/vice-emu/files/releases/vice-$VERSION.tar.gz/download
|
||||
TAR_SHA256=1a55b38cc988165b077808c07c52a779d181270b28c14b5c9abf4e569137431d
|
||||
BUILD_DEPENDS=(sdl1 liborbital)
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
|
||||
export sdl_config="$sysroot/bin/sdl-config"
|
||||
export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-L$sysroot/lib -static"
|
||||
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix='' \
|
||||
--enable-sdlui \
|
||||
--disable-sdlui2 \
|
||||
--disable-rs232 \
|
||||
--disable-realdevice \
|
||||
--disable-midi
|
||||
"$REDOX_MAKE" -j"$COOKBOOK_MAKE_JOBS"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install
|
||||
skip=1
|
||||
}
|
||||
25
recipes/wip/emu/pc/vice/recipe.toml
Normal file
25
recipes/wip/emu/pc/vice/recipe.toml
Normal file
@ -0,0 +1,25 @@
|
||||
#TODO compile and test
|
||||
[source]
|
||||
tar = "https://sourceforge.net/projects/vice-emu/files/releases/vice-3.3.tar.gz/download"
|
||||
patches = ["01_redox.patch"]
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"sdl1",
|
||||
"liborbital",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
|
||||
#export sdl_config="{COOKBOOK_SYSROOT}/bin/sdl-config"
|
||||
export CFLAGS="-I{COOKBOOK_SYSROOT}/include -I{COOKBOOK_SYSROOT}/include/SDL"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--enable-sdlui
|
||||
--disable-sdlui2
|
||||
--disable-rs232
|
||||
--disable-realdevice
|
||||
--disable-midi
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user