summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2014-07-17 07:42:54 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-17 10:02:39 +0200
commit1fcc621f0344c11ebaf7903545cd99d2f5b8ec9b (patch)
treeb08e952f16ff258e0c901e57a751ed91f9969759
parent2b1bbc16bc4596f869d4259bd6e4848f7fef845b (diff)
downloadbuildroot-1fcc621f0344c11ebaf7903545cd99d2f5b8ec9b.tar.gz
buildroot-1fcc621f0344c11ebaf7903545cd99d2f5b8ec9b.zip
package/mesa3d: Fix optional DRI3 support
DRI3 support is optional in mesa3d, but mesa3d expects it by default, so add configure options to disable it when necessary and add the needed dependencies for DRI3 support. Fixes: =============================== checking for DRI3PROTO... no configure: error: Package requirements (dri3proto >= 1.0) were not met: checking for PRESENTPROTO... no configure: error: Package requirements (presentproto >= 1.0) were not met: configure: error: Package requirements (x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >= 1.1) were not met: Package xshmfence was not found in the pkg-config search path. =============================== This defconfig was broken and fixed by this patch: BR2_TOOLCHAIN_EXTERNAL=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_DRI_DRIVER_I965=y BR2_PACKAGE_XORG7=y BR2_PACKAGE_XSERVER_XORG_SERVER=y BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR=y BR2_PACKAGE_XPROTO_DRI3PROTO=y Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/mesa3d/mesa3d.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 1a61af8489..667e744124 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -77,6 +77,12 @@ ifeq ($(MESA3D_DRI_DRIVERS-y),)
MESA3D_CONF_OPT += \
--without-dri-drivers
else
+ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y)
+MESA3D_DEPENDENCIES += xlib_libxshmfence xproto_dri3proto xproto_presentproto
+MESA3D_CONF_OPT += --enable-dri3
+else
+MESA3D_CONF_OPT += --disable-dri3
+endif
MESA3D_PROVIDES += libgl
MESA3D_CONF_OPT += \
--enable-dri \
OpenPOWER on IntegriCloud