e6e14a71b7
The libdrm has a bunch of useful test programs. Add an option to pass the configure option to install them. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
77 lines
1.7 KiB
Makefile
77 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# libdrm
|
|
#
|
|
################################################################################
|
|
|
|
LIBDRM_VERSION = 2.4.54
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
|
|
LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
|
|
LIBDRM_LICENSE = MIT
|
|
|
|
LIBDRM_INSTALL_STAGING = YES
|
|
|
|
LIBDRM_DEPENDENCIES = \
|
|
libpthread-stubs \
|
|
host-pkgconf
|
|
|
|
LIBDRM_CONF_OPT = \
|
|
--disable-cairo-tests \
|
|
--disable-manpages
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
|
LIBDRM_CONF_OPT += --enable-intel
|
|
LIBDRM_DEPENDENCIES += libatomic_ops xlib_libpciaccess
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-intel
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
|
LIBDRM_CONF_OPT += --enable-radeon
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-radeon
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
|
LIBDRM_CONF_OPT += --enable-nouveau
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-nouveau
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
|
LIBDRM_CONF_OPT += --enable-vmwgfx
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-vmwgfx
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
|
|
LIBDRM_CONF_OPT += --enable-omap-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-omap-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
|
|
LIBDRM_CONF_OPT += --enable-exynos-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-exynos-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
|
|
LIBDRM_CONF_OPT += --enable-freedreno-experimental-api
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-freedreno-experimental-api
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBDRM_CONF_OPT += --enable-udev
|
|
LIBDRM_DEPENDENCIES += udev
|
|
else
|
|
LIBDRM_CONF_OPT += --disable-udev
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
|
|
LIBDRM_CONF_OPT += --enable-install-test-programs
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|