Files
Mirko Vogt 12723165f0 libinput: disable Lua plugin support explicitly
The lua-plugins option is left at its default, auto, so libinput builds
its Lua plugin support whenever pkg-config finds Lua 5.4 (lua-5.4,
lua5.4 or lua >= 5.4) in the staging directory. lua5.4 installs no
pkg-config file so far, so the package has been built without it. Once
lua5.4 stages lua5.4.pc, libinput links liblua5.4 without depending on
it, and packaging fails with "missing dependencies for the following
libraries: liblua5.4.so.*".

Set -Dlua-plugins=disabled, so the package is built as before.

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
2026-10-06 10:40:22 +03:00

68 lines
2.2 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.31.3
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/$(PKG_NAME)/$(PKG_NAME)/-/archive/$(PKG_VERSION)
PKG_HASH:=b6749bf6f1890f6631c0a70a027c35fec9d2e096a39f720548896e41474a9854
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 \
-Dlua-plugins=disabled \
-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))