ee95ae7821
- update license file hash (xf86drm.c, license unrelated source code changes [1], [2], [3], [4], [5]) For details see [6]. [1] https://cgit.freedesktop.org/mesa/drm/commit/?id=67e911977fbe1f444045f59028c149a04ba29566 [2] https://cgit.freedesktop.org/mesa/drm/commit/?id=a04b674887586bf05594abaf7c55fd8d630898db [3] https://cgit.freedesktop.org/mesa/drm/commit/?id=99a0522aef04e08c6e0be7a7a020f12c51d24c47 [4] https://cgit.freedesktop.org/mesa/drm/commit/?id=9ae8f17d563a81212ca2f61a3427ed559c105644 [5] https://cgit.freedesktop.org/mesa/drm/commit/?id=65d89398081b33b7498bccaee6915e977f589ec2 [6] https://lists.freedesktop.org/archives/dri-devel/2021-July/313594.html Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
118 lines
2.4 KiB
Makefile
118 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libdrm
|
|
#
|
|
################################################################################
|
|
|
|
LIBDRM_VERSION = 2.4.107
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.xz
|
|
LIBDRM_SITE = https://dri.freedesktop.org/libdrm
|
|
LIBDRM_LICENSE = MIT
|
|
LIBDRM_LICENSE_FILES = xf86drm.c
|
|
LIBDRM_INSTALL_STAGING = YES
|
|
|
|
LIBDRM_DEPENDENCIES = \
|
|
libpthread-stubs \
|
|
host-pkgconf
|
|
|
|
LIBDRM_CONF_OPTS = \
|
|
-Dcairo-tests=false \
|
|
-Dman-pages=false
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
|
|
LIBDRM_DEPENDENCIES += libatomic_ops
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
|
LIBDRM_CFLAGS = $(TARGET_CFLAGS) -DAO_NO_SPARC_V9
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
|
LIBDRM_CONF_OPTS += -Dintel=true
|
|
LIBDRM_DEPENDENCIES += libpciaccess
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dintel=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
|
LIBDRM_CONF_OPTS += -Dradeon=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dradeon=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
|
|
LIBDRM_CONF_OPTS += -Damdgpu=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Damdgpu=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
|
LIBDRM_CONF_OPTS += -Dnouveau=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dnouveau=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
|
LIBDRM_CONF_OPTS += -Dvmwgfx=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvmwgfx=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
|
|
LIBDRM_CONF_OPTS += -Domap=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Domap=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_ETNAVIV),y)
|
|
LIBDRM_CONF_OPTS += -Detnaviv=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Detnaviv=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
|
|
LIBDRM_CONF_OPTS += -Dexynos=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dexynos=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
|
|
LIBDRM_CONF_OPTS += -Dfreedreno=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dfreedreno=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
|
|
LIBDRM_CONF_OPTS += -Dtegra=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dtegra=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
|
|
LIBDRM_CONF_OPTS += -Dvc4=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvc4=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBDRM_CONF_OPTS += -Dudev=true
|
|
LIBDRM_DEPENDENCIES += udev
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dudev=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
|
LIBDRM_CONF_OPTS += -Dvalgrind=true
|
|
LIBDRM_DEPENDENCIES += valgrind
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvalgrind=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
|
|
LIBDRM_CONF_OPTS += -Dinstall-test-programs=true
|
|
ifeq ($(BR2_PACKAGE_CUNIT),y)
|
|
LIBDRM_DEPENDENCIES += cunit
|
|
endif
|
|
endif
|
|
|
|
$(eval $(meson-package))
|