mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
d14b27b7fe
Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31281>
18 lines
647 B
Bash
18 lines
647 B
Bash
#!/usr/bin/env bash
|
|
# Script used for Android and Fedora builds (Debian builds get their libdrm version
|
|
# from https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo - see PKG_REPO_REV)
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
set -uex
|
|
|
|
export LIBDRM_VERSION=libdrm-2.4.122
|
|
|
|
curl -L -O --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
https://dri.freedesktop.org/libdrm/"$LIBDRM_VERSION".tar.xz
|
|
tar -xvf "$LIBDRM_VERSION".tar.xz && rm "$LIBDRM_VERSION".tar.xz
|
|
cd "$LIBDRM_VERSION"
|
|
meson setup build -D vc4=disabled -D freedreno=disabled -D etnaviv=disabled ${EXTRA_MESON_ARGS:-}
|
|
meson install -C build
|
|
cd ..
|
|
rm -rf "$LIBDRM_VERSION"
|