mesa-glu: convert recipe to toml

This commit is contained in:
Jeremy Soller 2023-12-12 19:20:15 -07:00
parent 2b06044477
commit 80cb620b93
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 11 additions and 31 deletions

View File

@ -1,31 +0,0 @@
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
}

View File

@ -0,0 +1,11 @@
[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
"""