mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
a495eb10a9
Aligns ArchR with the ROCKNIX 20260601 batch of dependency bumps: - Mesa 26.0.5 / 26.1.1 -> 26.1.3 (latest stable) - libdrm 2.4.125 -> 2.4.134 - vulkan-headers 1.4.321 / 1.4.347 -> 1.4.354 - vulkan-loader 1.4.321 / 1.4.347 -> 1.4.354 - wayland 1.23.1 / 1.24.0 -> 1.25.0 - wayland-protocols 1.44 / 1.45 -> 1.49 - box64 -> v0.4.2 (commit 7eeb5016) Both top-level packages/ and projects/ArchR/packages/ overrides updated where applicable so the ArchR build resolves the new versions consistently. Mesa keeps the upstream freedesktop tarball at packages/ and the gitlab archive at projects/ArchR/ (no change to delivery URL strategy). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
74 lines
2.9 KiB
Makefile
74 lines
2.9 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libdrm"
|
|
PKG_VERSION="2.4.134"
|
|
PKG_SHA256="ac5e74d157830eb8bee44c6a6bf3ad49774ef0dd2a72bdad74a8f20308b52a95"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://dri.freedesktop.org"
|
|
PKG_URL="https://dri.freedesktop.org/libdrm/libdrm-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
|
PKG_DEPENDS_TARGET="toolchain libpciaccess"
|
|
PKG_LONGDESC="The userspace interface library to kernel DRM services."
|
|
|
|
get_graphicdrivers
|
|
|
|
PKG_MESON_OPTS_COMMON="-Dnouveau=disabled \
|
|
-Domap=disabled \
|
|
-Dexynos=disabled \
|
|
-Dtegra=disabled \
|
|
-Dcairo-tests=disabled \
|
|
-Dman-pages=disabled \
|
|
-Dvalgrind=disabled \
|
|
-Dfreedreno-kgsl=false \
|
|
-Dudev=false"
|
|
|
|
PKG_MESON_OPTS_HOST="${PKG_MESON_OPTS_COMMON} \
|
|
-Damdgpu=disabled \
|
|
-Detnaviv=disabled \
|
|
-Dfreedreno=disabled \
|
|
-Dintel=disabled \
|
|
-Dradeon=disabled \
|
|
-Dvc4=disabled \
|
|
-Dvmwgfx=disabled \
|
|
-Dtests=false \
|
|
-Dinstall-test-programs=false"
|
|
|
|
PKG_MESON_OPTS_TARGET="${PKG_MESON_OPTS_COMMON} \
|
|
-Dtests=true \
|
|
-Dinstall-test-programs=true"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(crocus|i915|iris)" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dintel=enabled" || PKG_MESON_OPTS_TARGET+=" -Dintel=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(r300|r600|radeonsi)" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dradeon=enabled" || PKG_MESON_OPTS_TARGET+=" -Dradeon=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "radeonsi" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Damdgpu=enabled" || PKG_MESON_OPTS_TARGET+=" -Damdgpu=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "vmware" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dvmwgfx=enabled" || PKG_MESON_OPTS_TARGET+=" -Dvmwgfx=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "vc4" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dvc4=enabled" || PKG_MESON_OPTS_TARGET+=" -Dvc4=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "freedreno" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dfreedreno=enabled" || PKG_MESON_OPTS_TARGET+=" -Dfreedreno=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "etnaviv" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Detnaviv=enabled" || PKG_MESON_OPTS_TARGET+=" -Detnaviv=disabled"
|
|
|
|
post_makeinstall_target() {
|
|
# Remove all test programs installed by install-test-programs=true except modetest
|
|
PKG_LIBDRM_LIST="drmdevice modeprint proptest vbltest"
|
|
for PKG_LIBDRM_TEST in ${PKG_LIBDRM_LIST}; do
|
|
safe_remove ${INSTALL}/usr/bin/${PKG_LIBDRM_TEST}
|
|
done
|
|
|
|
if listcontains "${GRAPHIC_DRIVERS}" "radeonsi"; then
|
|
safe_remove ${INSTALL}/usr/bin/amdgpu_stress
|
|
fi
|
|
}
|