2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-08-10 21:07:51 +02:00
|
|
|
#
|
|
|
|
# libdrm
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-09 07:51:05 +02:00
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
LIBDRM_VERSION = 2.4.46
|
2010-02-28 10:33:46 +01:00
|
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
|
|
|
|
LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
|
2013-05-09 07:51:05 +02:00
|
|
|
LIBDRM_LICENSE = MIT
|
|
|
|
|
2010-02-28 10:33:46 +01:00
|
|
|
LIBDRM_INSTALL_STAGING = YES
|
|
|
|
|
2011-07-25 14:16:35 +02:00
|
|
|
LIBDRM_DEPENDENCIES = \
|
2013-01-02 02:26:38 +01:00
|
|
|
xlib_libpthread-stubs \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf
|
2010-03-31 12:15:02 +02:00
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
LIBDRM_CONF_OPT = \
|
|
|
|
--disable-cairo-tests \
|
|
|
|
--disable-manpages
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
2010-04-14 14:31:02 +02:00
|
|
|
LIBDRM_CONF_OPT += --enable-intel
|
2013-09-06 06:25:15 +02:00
|
|
|
LIBDRM_DEPENDENCIES += libatomic_ops xlib_libpciaccess
|
2010-04-14 14:31:02 +02:00
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPT += --disable-intel
|
|
|
|
endif
|
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
|
|
|
LIBDRM_CONF_OPT += --enable-radeon
|
|
|
|
LIBDRM_DEPENDENCIES += xlib_libpciaccess
|
|
|
|
else
|
2010-04-14 14:31:02 +02:00
|
|
|
LIBDRM_CONF_OPT += --disable-radeon
|
|
|
|
endif
|
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
|
|
|
LIBDRM_CONF_OPT += --enable-nouveau
|
|
|
|
LIBDRM_DEPENDENCIES += xlib_libpciaccess
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPT += --disable-nouveau
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
|
|
|
LIBDRM_CONF_OPT += --enable-vmwgfx
|
|
|
|
LIBDRM_DEPENDENCIES += xlib_libpciaccess
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPT += --enable-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
|
|
|
|
|
2012-09-22 15:10:17 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_UDEV),y)
|
|
|
|
LIBDRM_CONF_OPT += --enable-udev
|
|
|
|
LIBDRM_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPT += --disable-udev
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|