package/mesa3d: Add optional dependency xlib_libXxf86vm
authorBernd Kuhls <bernd.kuhls@t-online.de>
Wed, 3 Sep 2014 19:48:09 +0000 (21:48 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 4 Sep 2014 15:24:58 +0000 (17:24 +0200)
xlib_libXxf86vm is an optional dependency for the DRI drivers,
quote from mesa3d/configure.ac:

    # add xf86vidmode if available
    PKG_CHECK_MODULES([XF86VIDMODE], [xxf86vm], HAVE_XF86VIDMODE=yes, HAVE_XF86VIDMODE=no)
    if test "$HAVE_XF86VIDMODE" = yes ; then
        dri_modules="$dri_modules xxf86vm"
    fi

Add the package as an optional dependency to have reproducable builds.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mesa3d/mesa3d.mk

index aea78c3fb3732be3713875fe57cec44133d46b4a..c2f2b9b8b697aa98c6e183009bb570dba5c5a83d 100644 (file)
@@ -82,6 +82,9 @@ MESA3D_CONF_OPT += --enable-dri3
 else
 MESA3D_CONF_OPT += --disable-dri3
 endif
+ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
+MESA3D_DEPENDENCIES += xlib_libXxf86vm
+endif
 MESA3D_PROVIDES += libgl
 MESA3D_CONF_OPT += \
        --enable-dri \