mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
ann: - https://www.spinics.net/lists/dri-devel/msg349550.html log: - https://cgit.freedesktop.org/mesa/drm/log/
61 lines
2.5 KiB
Makefile
61 lines
2.5 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.111"
|
|
PKG_SHA256="1ad7164f77424de6f4ecba7c262bde196a214c6e19a6fbf497f0815f4d7ab2a9"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://dri.freedesktop.org"
|
|
PKG_URL="http://dri.freedesktop.org/libdrm/libdrm-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain libpciaccess"
|
|
PKG_LONGDESC="The userspace interface library to kernel DRM services."
|
|
PKG_TOOLCHAIN="meson"
|
|
|
|
get_graphicdrivers
|
|
|
|
PKG_MESON_OPTS_TARGET="-Dnouveau=false \
|
|
-Domap=false \
|
|
-Dexynos=false \
|
|
-Dtegra=false \
|
|
-Dcairo-tests=false \
|
|
-Dman-pages=false \
|
|
-Dvalgrind=false \
|
|
-Dfreedreno-kgsl=false \
|
|
-Dinstall-test-programs=true \
|
|
-Dudev=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(crocus|i915|iris)" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dintel=true" || PKG_MESON_OPTS_TARGET+=" -Dintel=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(r300|r600|radeonsi)" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dradeon=true" || PKG_MESON_OPTS_TARGET+=" -Dradeon=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "radeonsi" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Damdgpu=true" || PKG_MESON_OPTS_TARGET+=" -Damdgpu=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "vmware" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dvmwgfx=true" || PKG_MESON_OPTS_TARGET+=" -Dvmwgfx=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "vc4" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dvc4=true" || PKG_MESON_OPTS_TARGET+=" -Dvc4=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "freedreno" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dfreedreno=true" || PKG_MESON_OPTS_TARGET+=" -Dfreedreno=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "etnaviv" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Detnaviv=true" || PKG_MESON_OPTS_TARGET+=" -Detnaviv=false"
|
|
|
|
post_makeinstall_target() {
|
|
# Remove all test programs installed by install-test-programs=true except modetest
|
|
# Do not "not use" the ninja install and replace this with a simple "cp modetest"
|
|
# as ninja strips the unnecessary build rpath during the install.
|
|
safe_remove ${INSTALL}/usr/bin/amdgpu_stress
|
|
safe_remove ${INSTALL}/usr/bin/drmdevice
|
|
safe_remove ${INSTALL}/usr/bin/kms-steal-crtc
|
|
safe_remove ${INSTALL}/usr/bin/kms-universal-planes
|
|
safe_remove ${INSTALL}/usr/bin/modeprint
|
|
safe_remove ${INSTALL}/usr/bin/proptest
|
|
safe_remove ${INSTALL}/usr/bin/vbltest
|
|
}
|