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
|
|
|
|
2016-10-04 04:19:15 +02:00
|
|
|
LIBDRM_VERSION = 2.4.71
|
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
|
|
|
|
|
2015-07-02 20:05:02 +02:00
|
|
|
LIBDRM_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
|
2016-05-26 12:53:16 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
|
|
|
|
LIBDRM_DEPENDENCIES += libatomic_ops
|
|
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
|
|
|
LIBDRM_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-09-06 06:25:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-intel
|
2016-05-26 12:53:16 +02:00
|
|
|
LIBDRM_DEPENDENCIES += 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
|
|
|
|
|
2015-10-06 21:35:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
|
|
|
|
LIBDRM_CONF_OPTS += --enable-amdgpu
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPTS += --disable-amdgpu
|
|
|
|
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)
|
2015-10-06 21:35:30 +02:00
|
|
|
LIBDRM_CONF_OPTS += --enable-freedreno
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPTS += --disable-freedreno
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
|
|
|
|
LIBDRM_CONF_OPTS += --enable-tegra-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
else
|
2015-10-06 21:35:30 +02:00
|
|
|
LIBDRM_CONF_OPTS += --disable-tegra-experimental-api
|
2013-09-06 06:25:15 +02:00
|
|
|
endif
|
|
|
|
|
2016-02-25 23:48:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
|
|
|
|
LIBDRM_CONF_OPTS += --enable-vc4
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPTS += --disable-vc4
|
|
|
|
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
|
|
|
|
|
2015-07-01 21:54:56 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
|
|
|
LIBDRM_CONF_OPTS += --enable-valgrind
|
|
|
|
LIBDRM_DEPENDENCIES += valgrind
|
|
|
|
else
|
|
|
|
LIBDRM_CONF_OPTS += --disable-valgrind
|
|
|
|
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))
|