Skip to content
Snippets Groups Projects
Verified Commit 80cb620b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

mesa-glu: convert recipe to toml

parent 2b060444
No related branches found
No related tags found
No related merge requests found
VERSION=9.0.1
TAR=https://archive.mesa3d.org/glu/glu-$VERSION.tar.xz
BUILD_DEPENDS=(mesa)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export CFLAGS="-I$sysroot/include"
export CPPFLAGS="-I$sysroot/include"
export LDFLAGS="-L$sysroot/lib"
wget -O config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
./configure --build=${BUILD} --host="${HOST}" --prefix=/ --enable-osmesa
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}
[source]
tar = "https://archive.mesa3d.org/glu/glu-9.0.1.tar.xz"
blake3 = "461543526cd681bc8fa91a1ece9519188c64ce7ad130a71213bdd0867e0884c9"
[build]
dependencies = ["mesa"]
template = "custom"
script = """
COOKBOOK_CONFIGURE_FLAGS+=(--enable-osmesa)
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