libinput: add explicit event-gui handling
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 21 Apr 2016 21:20:51 +0000 (18:20 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 22 Apr 2016 20:06:30 +0000 (22:06 +0200)
Otherwise since it's automatic it was left to random depending on the
libgtk3/libinput build order.

Also collapse all that whitespace.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libinput/libinput.mk

index 6d8b7b61b9dfd94b7b07c7edd0fdd2dfd4fff6f2..295476099661453bd8f8ac5ab68060b1bb49c7d9 100644 (file)
@@ -7,13 +7,18 @@
 LIBINPUT_VERSION = 1.1.5
 LIBINPUT_SOURCE = libinput-$(LIBINPUT_VERSION).tar.xz
 LIBINPUT_SITE = http://www.freedesktop.org/software/libinput
-LIBINPUT_LICENSE = MIT
-LIBINPUT_LICENSE_FILES = COPYING
-
 LIBINPUT_DEPENDENCIES = host-pkgconf libevdev mtdev udev
 LIBINPUT_INSTALL_STAGING = YES
-
+LIBINPUT_LICENSE = MIT
+LIBINPUT_LICENSE_FILES = COPYING
 # Tests need fork, so just disable them everywhere.
 LIBINPUT_CONF_OPTS = --disable-tests
 
+ifeq ($(BR2_PACKAGE_LIBGTK3),y)
+LIBINPUT_CONF_OPTS += --enable-event-gui
+LIBINPUT_DEPENDENCIES += libgtk3
+else
+LIBINOUT_CONF_OPTS += --disable-event-gui
+endif
+
 $(eval $(autotools-package))