diff mbox series

libinput: expand PACKAGECONFIG

Message ID 20260114130939.3263867-1-ross.burton@arm.com
State New
Headers show
Series libinput: expand PACKAGECONFIG | expand

Commit Message

Ross Burton Jan. 14, 2026, 1:09 p.m. UTC
The 1.30 release added support for Lua plugins, so add a
disabled-by-default PACKAGECONFIG for the Lua plugin support.

Move mtdev from being always on to an enabled-by-default PACKAGECONFIG.

Merge the udevdir evaluation directly into EXTRA_OEMESON, there's no
need for it to be a separate variable.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-graphics/wayland/libinput_1.30.1.bb | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/wayland/libinput_1.30.1.bb b/meta/recipes-graphics/wayland/libinput_1.30.1.bb
index 8309d33304..8d80e1ac62 100644
--- a/meta/recipes-graphics/wayland/libinput_1.30.1.bb
+++ b/meta/recipes-graphics/wayland/libinput_1.30.1.bb
@@ -10,7 +10,7 @@  SECTION = "libs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=bab4ac7dc1c10bc0fb037dc76c46ef8a"
 
-DEPENDS = "libevdev udev mtdev"
+DEPENDS = "libevdev udev"
 
 SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=1.30-branch;tag=${PV} \
            file://run-ptest \
@@ -22,6 +22,7 @@  UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
 inherit meson pkgconfig lib_package ptest
 
 # Patch out build directory, otherwise it leaks into ptest binary
+# https://gitlab.freedesktop.org/libinput/libinput/-/issues/1230
 do_configure:append() {
     sed -i -e "s,${WORKDIR},,g" config.h
     if [ -e "litest-config.h" ]; then
@@ -29,14 +30,14 @@  do_configure:append() {
     fi
 }
 
-PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
-PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
+PACKAGECONFIG ??= "mtdev ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3 wayland-native"
+PACKAGECONFIG[lua] = "-Dlua-plugins=enabled,-Dlua-plugins=disabled,lua"
+PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
+PACKAGECONFIG[mtdev] = "-Dmtdev=true,-Dmtdev=false,mtdev"
 PACKAGECONFIG[tests] = "-Dtests=true -Dinstall-tests=true,-Dtests=false -Dinstall-tests=false"
 
-UDEVDIR = "`pkg-config --variable=udevdir udev`"
-
-EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \
+EXTRA_OEMESON += "-Dudev-dir=$(pkg-config --variable=udevdir udev) \
                   -Ddocumentation=false \
                   -Dzshcompletiondir=no"