distribution/packages/graphics/libdrm/package.mk

53 lines
2 KiB
Makefile
Raw Normal View History

2022-07-03 15:10:57 +00:00
2022-02-05 14:23:32 +00:00
# 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"
2022-07-05 21:04:55 +00:00
PKG_VERSION="2.4.111"
2022-02-05 14:23:32 +00:00
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
2022-07-05 21:04:55 +00:00
PKG_MESON_OPTS_TARGET="-Dnouveau=false \
2022-02-05 14:23:32 +00:00
-Domap=false \
-Dexynos=false \
-Dtegra=false \
-Dcairo-tests=false \
-Dman-pages=false \
-Dvalgrind=false \
-Dfreedreno-kgsl=false \
2022-07-03 15:10:57 +00:00
-Dinstall-test-programs=false \
2022-02-05 14:23:32 +00:00
-Dudev=false"
2022-07-03 15:10:57 +00:00
listcontains "${GRAPHIC_DRIVERS}" "(iris|i915|i965)" &&
2022-02-05 14:23:32 +00:00
PKG_MESON_OPTS_TARGET+=" -Dintel=true" || PKG_MESON_OPTS_TARGET+=" -Dintel=false"
2022-07-03 15:10:57 +00:00
listcontains "${GRAPHIC_DRIVERS}" "(r200|r300|r600|radeonsi)" &&
2022-02-05 14:23:32 +00: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"
post_makeinstall_target() {
2022-07-03 15:10:57 +00:00
mkdir -p ${INSTALL}/usr/bin
cp -a ${PKG_BUILD}/.${TARGET_NAME}/tests/modetest/modetest ${INSTALL}/usr/bin/
2022-02-05 14:23:32 +00:00
}