FFmpeg-Builds/scripts.d/45-x11/60-libglvnd.sh
2022-02-27 00:37:15 +01:00

42 lines
843 B
Bash
Executable file

#!/bin/bash
GLVND_REPO="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
GLVND_COMMIT="c8ee0055dfad919e92e92631c5a4a0af68dca9eb"
ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$GLVND_REPO" "$GLVND_COMMIT" glvnd
cd glvnd
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
-Dasm=enabled
-Dx11=enabled
-Degl=true
-Dglx=enabled
-Dgles1=true
-Dgles2=true
-Dheaders=true
)
if [[ $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}