2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-08-15 05:38:52 +01:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2013-12-23 23:02:18 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="libdrm"
|
2022-06-03 10:25:40 +00:00
|
|
|
PKG_VERSION="2.4.111"
|
|
|
|
|
PKG_SHA256="1ad7164f77424de6f4ecba7c262bde196a214c6e19a6fbf497f0815f4d7ab2a9"
|
2013-12-23 23:02:18 +01:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE="http://dri.freedesktop.org"
|
2020-09-30 09:24:40 +02:00
|
|
|
PKG_URL="http://dri.freedesktop.org/libdrm/libdrm-${PKG_VERSION}.tar.xz"
|
2017-10-29 11:54:10 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libpciaccess"
|
2013-12-23 23:02:18 +01:00
|
|
|
PKG_LONGDESC="The userspace interface library to kernel DRM services."
|
2018-05-28 23:31:45 -07:00
|
|
|
PKG_TOOLCHAIN="meson"
|
2013-12-23 23:02:18 +01:00
|
|
|
|
2014-10-14 22:49:12 +03:00
|
|
|
get_graphicdrivers
|
2013-12-23 23:02:18 +01:00
|
|
|
|
2022-06-03 10:25:40 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="-Dnouveau=false \
|
2019-10-17 13:00:54 +02:00
|
|
|
-Domap=false \
|
|
|
|
|
-Dexynos=false \
|
|
|
|
|
-Dtegra=false \
|
2018-05-28 23:31:45 -07:00
|
|
|
-Dcairo-tests=false \
|
|
|
|
|
-Dman-pages=false \
|
|
|
|
|
-Dvalgrind=false \
|
|
|
|
|
-Dfreedreno-kgsl=false \
|
2022-01-08 12:22:27 +00:00
|
|
|
-Dinstall-test-programs=true \
|
2018-05-28 23:31:45 -07:00
|
|
|
-Dudev=false"
|
2018-05-29 00:09:10 -07:00
|
|
|
|
2021-11-20 19:59:17 +11:00
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(crocus|i915|iris)" &&
|
2019-10-17 13:00:54 +02:00
|
|
|
PKG_MESON_OPTS_TARGET+=" -Dintel=true" || PKG_MESON_OPTS_TARGET+=" -Dintel=false"
|
|
|
|
|
|
2021-11-20 19:59:17 +11:00
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(r300|r600|radeonsi)" &&
|
2019-10-17 13:00:54 +02:00
|
|
|
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"
|
|
|
|
|
|
2018-05-29 00:09:10 -07:00
|
|
|
post_makeinstall_target() {
|
2022-01-08 12:22:27 +00:00
|
|
|
# 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
|
2018-05-29 00:09:10 -07:00
|
|
|
}
|