Skip to content
Snippets Groups Projects
Verified Commit 99d8c6a9 authored by Josh Megnauth's avatar Josh Megnauth
Browse files

Update OpenJazz

* Switch to TOML
* Bump version to latest
parent eaeefc06
No related branches found
No related tags found
1 merge request!420Update OpenJazz
#TODO: support cmake version 20231028
VERSION=20190106
TAR="https://github.com/AlisterT/openjazz/releases/download/${VERSION}/openjazz-${VERSION}.tar.xz"
TAR_SHA256="91341adcc4908db12aad6b82d2fb0125429a26585f65d7eb32d403656313eaab"
BUILD_DEPENDS=(sdl1 liborbital zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include -UUSE_SOCKETS -UUSE_SDL_NET"
export CPPFLAGS="$CFLAGS"
export LDFLAGS="-L$sysroot/lib -static"
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
autoreconf -fvi
autoconf
wget -O build-aux/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
./configure --build=${BUILD} --host=${HOST} --prefix=''
"$REDOX_MAKE" -j"$($NPROC)" V=1
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
skip=1
}
[source]
tar = "https://github.com/AlisterT/openjazz/archive/refs/tags/20240919.tar.gz"
blake3 = "c419066dd7bf50510c5ef0746fc47450ab8f5a17a0010a1bc0ad67d0e63538da"
[build]
template = "custom"
dependencies = [
"liborbital",
"libiconv",
"sdl1",
"zlib",
]
script = """
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include"
export CXXFLAGS="${CXXFLAGS} -I${COOKBOOK_SYSROOT}/include"
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=ON
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
-DCMAKE_C_COMPILER="${TARGET}-gcc"
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_VERBOSE_MAKEFILE=ON
-DLEGACY_SDL=ON
-DSDL_LIBRARY="-lSDL -lorbital"
-DNETWORK=ON
"${COOKBOOK_SOURCE}"
)
cookbook_configure
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment