The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libdrm / libdrm.mk
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/libdrm/libdrm.mk b/cirros-testvm/src-cirros/buildroot-2015.05/package/libdrm/libdrm.mk
new file mode 100644 (file)
index 0000000..a804ee8
--- /dev/null
@@ -0,0 +1,76 @@
+################################################################################
+#
+# libdrm
+#
+################################################################################
+
+LIBDRM_VERSION = 2.4.60
+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_OPTS = \
+       --disable-cairo-tests \
+       --disable-manpages
+
+ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
+LIBDRM_CONF_OPTS += --enable-intel
+LIBDRM_DEPENDENCIES += libatomic_ops libpciaccess
+else
+LIBDRM_CONF_OPTS += --disable-intel
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
+LIBDRM_CONF_OPTS += --enable-radeon
+else
+LIBDRM_CONF_OPTS += --disable-radeon
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
+LIBDRM_CONF_OPTS += --enable-nouveau
+else
+LIBDRM_CONF_OPTS += --disable-nouveau
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
+LIBDRM_CONF_OPTS += --enable-vmwgfx
+else
+LIBDRM_CONF_OPTS += --disable-vmwgfx
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
+LIBDRM_CONF_OPTS += --enable-omap-experimental-api
+else
+LIBDRM_CONF_OPTS += --disable-omap-experimental-api
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
+LIBDRM_CONF_OPTS += --enable-exynos-experimental-api
+else
+LIBDRM_CONF_OPTS += --disable-exynos-experimental-api
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
+LIBDRM_CONF_OPTS += --enable-freedreno-experimental-api
+else
+LIBDRM_CONF_OPTS += --disable-freedreno-experimental-api
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+LIBDRM_CONF_OPTS += --enable-udev
+LIBDRM_DEPENDENCIES += udev
+else
+LIBDRM_CONF_OPTS += --disable-udev
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
+LIBDRM_CONF_OPTS += --enable-install-test-programs
+endif
+
+$(eval $(autotools-package))