diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/libinput_1.15.5.bb')
| -rw-r--r-- | meta/recipes-graphics/wayland/libinput_1.15.5.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/libinput_1.15.5.bb b/meta/recipes-graphics/wayland/libinput_1.15.5.bb new file mode 100644 index 0000000000..e56f181bf5 --- /dev/null +++ b/meta/recipes-graphics/wayland/libinput_1.15.5.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | SUMMARY = "Library to handle input devices in Wayland compositors" | ||
| 2 | DESCRIPTION = "libinput is a library to handle input devices in Wayland \ | ||
| 3 | compositors and to provide a generic X.Org input driver. It provides \ | ||
| 4 | device detection, device handling, input device event processing and \ | ||
| 5 | abstraction so minimize the amount of custom input code compositors need to \ | ||
| 6 | provide the common set of functionality that users expect." | ||
| 7 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/" | ||
| 8 | SECTION = "libs" | ||
| 9 | |||
| 10 | LICENSE = "MIT" | ||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63" | ||
| 12 | |||
| 13 | DEPENDS = "libevdev udev mtdev libcheck" | ||
| 14 | |||
| 15 | SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \ | ||
| 16 | file://run-ptest \ | ||
| 17 | file://determinism.patch \ | ||
| 18 | " | ||
| 19 | SRC_URI[md5sum] = "c9a1b15bb932eaf22f840efe4c3f84eb" | ||
| 20 | SRC_URI[sha256sum] = "a90efc8f423c3094f2f9f372fb92381b2f3aad62e8b5882a8abe333aa8249c97" | ||
| 21 | |||
| 22 | UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | ||
| 23 | |||
| 24 | inherit meson pkgconfig lib_package ptest | ||
| 25 | |||
| 26 | # Patch out build directory, otherwise it leaks into ptest binary | ||
| 27 | do_configure_append() { | ||
| 28 | sed -i -e "s,${WORKDIR},,g" config.h | ||
| 29 | if [ -e "litest-config.h" ]; then | ||
| 30 | sed -i -e "s,${WORKDIR},,g" litest-config.h | ||
| 31 | fi | ||
| 32 | } | ||
| 33 | |||
| 34 | PACKAGECONFIG ??= "" | ||
| 35 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom" | ||
| 36 | PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3" | ||
| 37 | |||
| 38 | UDEVDIR = "`pkg-config --variable=udevdir udev`" | ||
| 39 | |||
| 40 | EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \ | ||
| 41 | -Ddocumentation=false \ | ||
| 42 | ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \ | ||
| 43 | -Dzshcompletiondir=no" | ||
| 44 | |||
| 45 | # package name changed in 1.8.1 upgrade: make sure package upgrades work | ||
| 46 | RPROVIDES_${PN} = "libinput" | ||
| 47 | RREPLACES_${PN} = "libinput" | ||
| 48 | RCONFLICTS_${PN} = "libinput" | ||
| 49 | |||
| 50 | FILES_${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite" | ||
