blob: 17b73e3827d68daad636e33c6d8be3f40d3fee8f [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Library to handle input devices in Wayland compositors"
2DESCRIPTION = "libinput is a library to handle input devices in Wayland \
3compositors and to provide a generic X.Org input driver. It provides \
4device detection, device handling, input device event processing and \
5abstraction so minimize the amount of custom input code compositors need to \
6provide the common set of functionality that users expect."
7HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/"
8SECTION = "libs"
9
10LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63"
12
Andrew Geisslerc182c622020-05-15 14:13:32 -050013DEPENDS = "libevdev udev mtdev libcheck"
Andrew Geissler82c905d2020-04-13 13:39:40 -050014
15SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \
Andrew Geisslerc182c622020-05-15 14:13:32 -050016 file://run-ptest \
Andrew Geissler82c905d2020-04-13 13:39:40 -050017 file://determinism.patch \
18 "
Andrew Geissler09209ee2020-12-13 08:44:15 -060019SRC_URI[sha256sum] = "65923a06d5a8970e4a999c4668797b9b689614b62b1d44432ab1c87b65e39e29"
Andrew Geissler82c905d2020-04-13 13:39:40 -050020
21UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
22
Andrew Geisslerc182c622020-05-15 14:13:32 -050023inherit meson pkgconfig lib_package ptest
24
25# Patch out build directory, otherwise it leaks into ptest binary
26do_configure_append() {
27 sed -i -e "s,${WORKDIR},,g" config.h
28 if [ -e "litest-config.h" ]; then
29 sed -i -e "s,${WORKDIR},,g" litest-config.h
30 fi
31}
Andrew Geissler82c905d2020-04-13 13:39:40 -050032
33PACKAGECONFIG ??= ""
34PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom"
35PACKAGECONFIG[gui] = "-Ddebug-gui=true,-Ddebug-gui=false,cairo gtk+3"
36
37UDEVDIR = "`pkg-config --variable=udevdir udev`"
38
39EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \
40 -Ddocumentation=false \
Andrew Geisslerc182c622020-05-15 14:13:32 -050041 ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050042 -Dzshcompletiondir=no"
43
44# package name changed in 1.8.1 upgrade: make sure package upgrades work
45RPROVIDES_${PN} = "libinput"
46RREPLACES_${PN} = "libinput"
47RCONFLICTS_${PN} = "libinput"
48
Andrew Geisslerc182c622020-05-15 14:13:32 -050049FILES_${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite"