0
0
mirror of https://github.com/openwrt/packages.git synced 2025-09-26 18:45:19 +00:00
Files
packages/libs/libinput/Makefile
Daniel Golle 93a466adb0 libinput: update to 1.28.1
Collected release notes since version 1.26.2:

libinput 1.28.1 is now available.

This release fixes two regressions:

    After unplugging and re-plugging a tablet device, proximity events
    toggled the tip on/off due to an uninitialized (== zero) pressure
    range. Repeatedly unplugging also eventually triggered an bug
    notification.

    libinput debug-events failed to print pinch angle and rotation

And because the commits were already sitting on the branch, also
included is fixed handling of the tablet pad mode toggle buttons.
Instead of the previous heuristics we now let this be handled by
libwacom 2.15 (if available). Only three tablet devices have those
buttons and they're all getting old, so this is unlikely to affect a lot
of users.

libinput 1.28.0 is now available.

The big new feature in this release is three-finger drag for touchpads.
When enabled three fingers down on the touchpad will logically hold the
left mouse button down, any movement of the fingers then moves the
pointer for a drag. For some users this is a more precise and
easier-to-trigger interaction than e.g. tap-and-drag.

On tablets the pressure range is now correctly tracked per tablet.
Previously moving the same physical stylus between two tablets with
different pressure ranges caused the stylus to send incorrect pressure
data.

And then we have of course the usual collection of bug fixes and
device-specific quirks.

libinput 1.27.1 is now available.

This release fixes two regressions in the gesture state handling
introduced in 1.27.

It also removes an assert triggered by a finger count mismatch. That can
be triggered by a still-unclear-but-niche race condition. The assert
wasn't required for functionality so we simply skip over the issue now.

libinput replay has a slightly new output format and now supports Ctrl+C
to stop the currently replaying event sequence.

And then we have of course the usual collection of bug fixes and
device-specific quirks.

libinput debug-events --help and libinput debug-gui --help now print all
available configuration options too.

libinput 1.27 is now available.

In terms of new features we have a "sticky" mode for drag-locking.
Previously a tap-and-drag lock would always expire after a timeout, now
the button is held logically down until a completing tap. Desktop
environments are encouraged to use this as the default as it provides a
better experience for anyone with less-than-perfect dexterity. For
backwards-compatibility reasons libinput cannot easily change its
defaults without risking bugs in the callers.

For tablet pads we now support tablet pad mode groups for devices
without status LEDs as well, the previous implementation was tied to
LEDs which some devices like the XP Pen ACK05 remote don't have. Since
the mode is a software feature anyway tying it to LEDs is not necessary.

If a tablet is unknown to libwacom we now assume that it is a built-in
tablet. This matches the behavior of libwacom 2.11 but in our case the
only visible result is that the device now has the calibration
configuration available. Better to have it and not use it, as they say.

The available area on external tablets can be reduced via the new tablet
"area" configuration. Users can set a rectangle smaller than the
width/height of the tablet and input outside this rectangle will be
ignored.

For packagers: the check dependency is now optional, almost all tests
can now run without it.

And then we have of course the usual collection of bug fixes and
device-specific quirks.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-04-26 16:55:11 +01:00

67 lines
2.1 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libinput
PKG_VERSION:=1.28.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/$(PKG_NAME)/$(PKG_NAME)/-/archive/$(PKG_VERSION)
PKG_HASH:=a13f8c9a7d93df3c85c66afd135f0296701d8d32f911991b7aa4273fdd6a42a3
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:freedesktop:libinput
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/meson.mk
define Package/libinput
SECTION:=libs
CATEGORY:=Libraries
TITLE:=a library to handle input devices
URL:=https://freedesktop.org/wiki/Software/libinput/
DEPENDS:=+libevdev +mtdev +libudev +libwacom
endef
define Package/libinput/description
libinput is a library to handle input devices in Wayland compositors
and to provide a generic X.Org input driver. It provides device
detection, device handling, input device event processing and
abstraction so minimize the amount of custom input code compositors
need to provide the common set of functionality that users expect.
endef
MESON_ARGS += \
-Depoll-dir=no \
-Dlibwacom=true \
-Ddebug-gui=false \
-Dtests=false \
-Dzshcompletiondir=no
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libinput.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libinput.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libinput.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libinput/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,libinput.so.*} $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/libexec/libinput
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/libexec/libinput/* $(1)/usr/libexec/libinput
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libinput $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/share/libinput
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/libinput/* $(1)/usr/share/libinput
endef
$(eval $(call BuildPackage,libinput))