Files
Arch-R/packages/graphics/libdrm/package.mk

61 lines
2.5 KiB
Makefile
Raw Normal View History

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)
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."
2018-05-28 23:31:45 -07:00
PKG_TOOLCHAIN="meson"
2014-10-14 22:49:12 +03:00
get_graphicdrivers
PKG_MESON_OPTS_TARGET="-Dnouveau=false \
-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 \
-Dinstall-test-programs=true \
2018-05-28 23:31:45 -07:00
-Dudev=false"
2018-05-29 00:09:10 -07:00
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"
2018-05-29 00:09:10 -07:00
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
2018-05-29 00:09:10 -07:00
}