2015-06-10 18:12:20 +02:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libevdev
|
2021-11-15 01:39:52 +01:00
|
|
|
PKG_VERSION:=1.12.0
|
2021-02-21 04:58:08 +01:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2015-06-10 18:12:20 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2018-07-31 01:32:19 +02:00
|
|
|
PKG_SOURCE_URL:=https://www.freedesktop.org/software/libevdev/
|
2021-11-15 01:39:52 +01:00
|
|
|
PKG_HASH:=2f729e3480695791f9482e8388bd723402b89f0eaf118057bbdea3cecee9b237
|
2015-06-10 18:12:20 +02:00
|
|
|
|
2020-04-18 08:41:51 +02:00
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
2015-06-10 18:12:20 +02:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-08 00:24:45 +02:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2015-06-10 18:12:20 +02:00
|
|
|
|
|
|
|
define Package/libevdev
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=a wrapper library for evdev devices
|
2018-07-31 01:32:19 +02:00
|
|
|
URL:=https://www.freedesktop.org/wiki/Software/libevdev/
|
2015-06-10 18:12:20 +02:00
|
|
|
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
|
|
|
|
|
2020-04-18 08:41:51 +02:00
|
|
|
MESON_ARGS += \
|
|
|
|
-Dtests=disabled \
|
|
|
|
-Ddocumentation=disabled \
|
|
|
|
-Dcoverity=false
|
|
|
|
|
2015-06-10 18:12:20 +02:00
|
|
|
define Build/InstallDev
|
2020-09-03 01:08:11 +02:00
|
|
|
$(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
|
2015-06-10 18:12:20 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-09-03 01:08:11 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so* $(1)/usr/lib/
|
2015-06-10 18:12:20 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2020-09-03 01:08:11 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevdev.pc $(1)/usr/lib/pkgconfig/
|
2015-06-10 18:12:20 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libevdev/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-09-03 01:08:11 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so.* $(1)/usr/lib/
|
2015-06-10 18:12:20 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libevdev))
|