2 # Copyright (C) 2007-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput/
16 PKG_MD5SUM:=458fc483f7227d3c4c330f4abd6dfa77
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
25 include $(INCLUDE_DIR)/package.mk
27 TARGET_CFLAGS+= -std=gnu99
29 CONFIGURE_ARGS += --disable-libwacom --disable-tests --disable-documentation
31 define Package/libinput
34 TITLE:=a library to handle input devices
35 URL:=http://freedesktop.org/wiki/Software/libinput/
36 DEPENDS:=+libevdev +mtdev +libudev
39 define Package/libinput/description
40 libinput is a library to handle input devices in Wayland compositors
41 and to provide a generic X.Org input driver. It provides device
42 detection, device handling, input device event processing and
43 abstraction so minimize the amount of custom input code compositors
44 need to provide the common set of functionality that users expect.
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} $(1)/usr/lib/
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
56 define Package/libinput/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,*.so*} $(1)/usr/lib
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
63 $(eval $(call BuildPackage,libinput))