c964b6b7c2
Update sway 1.9, and dependencies to fixed releases. Packages from codeberg sha256 sums seems to have changed, odd needs to be followed up on. Remove libxcb-wm duplicate of xcb-util-wm Fix weston vs sway interoperability, it stil needs work though. Changing to weston from sway on existing build dir yields weston not starting. gptokeyb hack to speed detection of gamepad after ES starts, this forces ES to detect the gamepad. detection seems buggy without it. Fix copyright year
51 lines
2 KiB
Makefile
51 lines
2 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.120"
|
|
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 libdisplay-info"
|
|
PKG_LONGDESC="The userspace interface library to kernel DRM services."
|
|
PKG_TOOLCHAIN="meson"
|
|
|
|
get_graphicdrivers
|
|
|
|
PKG_MESON_OPTS_TARGET="-Dnouveau=disabled \
|
|
-Domap=disabled \
|
|
-Dexynos=disabled \
|
|
-Dtegra=disabled \
|
|
-Dcairo-tests=disabled \
|
|
-Dman-pages=disabled \
|
|
-Dvalgrind=disabled \
|
|
-Dfreedreno-kgsl=false \
|
|
-Dinstall-test-programs=false \
|
|
-Dudev=false"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(iris|i915|i965)" &&
|
|
PKG_MESON_OPTS_TARGET+=" -Dintel=enabled" || PKG_MESON_OPTS_TARGET+=" -Dintel=disabled"
|
|
|
|
listcontains "${GRAPHIC_DRIVERS}" "(r200|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}" "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() {
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp -a ${PKG_BUILD}/.${TARGET_NAME}/tests/modetest/modetest ${INSTALL}/usr/bin/
|
|
for header in xf86drm.h xf86drmMode.h
|
|
do
|
|
sed -i "s#<drm.h>#<drm/drm.h>#g" ${SYSROOT_PREFIX}/usr/include/${header}
|
|
sed -i "s#<drm_mode.h#<drm/drm_mode.h>#g" ${SYSROOT_PREFIX}/usr/include/${header}
|
|
done
|
|
}
|