Merge pull request #5903 from aparcar/prometheus
[feed/packages.git] / libs / libevdev / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=libevdev
8 PKG_VERSION:=1.5.9
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
12 PKG_SOURCE_URL:=https://www.freedesktop.org/software/libevdev/
13 PKG_HASH:=e1663751443bed9d3e76a4fe2caf6fa866a79705d91cacad815c04e706198a75
14
15 PKG_LICENSE:=MIT
16 PKG_LICENSE_FILES:=COPYING
17 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
18
19 PKG_FIXUP:=autoreconf
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libevdev
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=a wrapper library for evdev devices
28 URL:=https://www.freedesktop.org/wiki/Software/libevdev/
29 endef
30
31 define Package/libevdev/description
32 libevdev is a wrapper library for evdev devices. it moves the common
33 tasks when dealing with evdev devices into a library and provides a
34 library interface to the callers, thus avoiding erroneous ioctls, etc.
35
36 The eventual goal is that libevdev wraps all ioctls available to
37 evdev devices, thus making direct access unnecessary.
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
45 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
47 endef
48
49 define Package/libevdev/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libevdev))