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
|
|
|
|
2014-10-03 10:40:21 +02:00
|
|
|
LIBDRM_VERSION = 2.4.58
|
2010-02-28 10:33:46 +01:00
|
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
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 = \
|
2014-03-01 16:41:10 +01:00
|
|
|
libpthread-stubs \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf
|
2010-03-31 12:15:02 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS = \
|
2013-09-06 06:25:15 +02:00
|
|
|
--disable-cairo-tests \
|
|
|
|
--disable-manpages
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --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
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-intel
|
2010-04-14 14:31:02 +02:00
|
|
|
endif
|
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-radeon
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-radeon
|
2010-04-14 14:31:02 +02:00
|
|
|
endif
|
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-nouveau
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-nouveau
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-vmwgfx
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-vmwgfx
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-omap-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-omap-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-freedreno-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-freedreno-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-udev
|
2012-09-22 15:10:17 +02:00
|
|
|
LIBDRM_DEPENDENCIES += udev
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-udev
|
2012-09-22 15:10:17 +02:00
|
|
|
endif
|
|
|
|
|
2014-05-23 17:13:19 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-install-test-programs
|
2014-05-23 17:13:19 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|