mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 01:27:31 +04:00
/dev/input/* is 0600 root:root unless input-support is installed to allocate the input group and ship the hotplug rule, so a program reading evdev has to run as root without it. libinput depends on libevdev and inherits this, so both sides of the evdev stack are covered by saying it once here. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
59 lines
1.7 KiB
Makefile
59 lines
1.7 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:=libevdev
|
|
PKG_VERSION:=1.13.6
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://www.freedesktop.org/software/libevdev/
|
|
PKG_HASH:=73f215eccbd8233f414737ac06bca2687e67c44b97d2d7576091aa9718551110
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/libevdev
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=a wrapper library for evdev devices
|
|
URL:=https://www.freedesktop.org/wiki/Software/libevdev/
|
|
DEPENDS:=input-support
|
|
endef
|
|
|
|
define Package/libevdev/description
|
|
libevdev is a wrapper library for evdev devices. it moves the common
|
|
tasks when dealing with evdev devices into a library and provides a
|
|
library interface to the callers, thus avoiding erroneous ioctls, etc.
|
|
|
|
The eventual goal is that libevdev wraps all ioctls available to
|
|
evdev devices, thus making direct access unnecessary.
|
|
endef
|
|
|
|
MESON_ARGS += \
|
|
-Dtests=disabled \
|
|
-Ddocumentation=disabled \
|
|
-Dcoverity=false
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/libevdev-1.0/libevdev
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libevdev-1.0/libevdev/*.h $(1)/usr/include/libevdev-1.0/libevdev
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevdev.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libevdev/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libevdev))
|