mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
mesa-glu: convert recipe to toml
This commit is contained in:
parent
2b06044477
commit
80cb620b93
@ -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
|
||||
}
|
||||
11
recipes/libs/mesa-glu/recipe.toml
Normal file
11
recipes/libs/mesa-glu/recipe.toml
Normal 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
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user