package/x11r7/xdriver_xf86-input-vmmouse: Add optional dependency to udev
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 27 Sep 2015 10:00:16 +0000 (12:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 27 Sep 2015 17:37:12 +0000 (19:37 +0200)
Udev support is enabled by default
http://cgit.freedesktop.org/xorg/driver/xf86-input-vmmouse/tree/configure.ac#n113

and only disabled on demand
http://cgit.freedesktop.org/xorg/driver/xf86-input-vmmouse/tree/configure.ac#n115

Fixes
http://autobuild.buildroot.net/results/201/2011ae075db2cc3c22706f96b190de7a4bda99eb/
http://autobuild.buildroot.net/results/cd3/cd3730ed0272c3f335ee90e0cbc4027b07945db3/
http://autobuild.buildroot.net/results/7f7/7f79ca6a35f405b56aa2d619a649ffb367da7790/
http://autobuild.buildroot.net/results/7c9/7c9ab14b22bb14ce70905d3d1471d96241242827/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/x11r7/xdriver_xf86-input-vmmouse/xdriver_xf86-input-vmmouse.mk

index 53ceec8e8b23868efb32ec35b762fd9716b7d661..6e9cf8b7858c85e94aa54fa08651de1da0b131f4 100644 (file)
@@ -11,4 +11,11 @@ XDRIVER_XF86_INPUT_VMMOUSE_LICENSE = MIT
 XDRIVER_XF86_INPUT_VMMOUSE_LICENSE_FILES = COPYING
 XDRIVER_XF86_INPUT_VMMOUSE_DEPENDENCIES = xserver_xorg-server xproto_inputproto xproto_randrproto xproto_xproto
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+XDRIVER_XF86_INPUT_VMMOUSE_CONF_OPTS += --with-libudev
+XDRIVER_XF86_INPUT_VMMOUSE_DEPENDENCIES += udev
+else
+XDRIVER_XF86_INPUT_VMMOUSE_CONF_OPTS += --without-libudev
+endif
+
 $(eval $(autotools-package))