Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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=bab4ac7dc1c10bc0fb037dc76c46ef8a" |
| 12 | |
| 13 | DEPENDS = "libevdev udev mtdev libcheck" |
| 14 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 15 | SRC_URI = "git://gitlab.freedesktop.org/libinput/libinput.git;protocol=https;branch=main \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 16 | file://run-ptest \ |
| 17 | file://determinism.patch \ |
| 18 | " |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 19 | SRCREV = "bc363328a704b3c5e0ee2f0fcf088de67c708979" |
| 20 | S = "${WORKDIR}/git" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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" |