First Commit
[librecmc/package-feed.git] / libs / libinput / Makefile
1 #
2 # Copyright (C) 2007-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libinput
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput/
16 PKG_MD5SUM:=458fc483f7227d3c4c330f4abd6dfa77
17
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 TARGET_CFLAGS+= -std=gnu99
28
29 CONFIGURE_ARGS += --disable-libwacom --disable-tests --disable-documentation
30
31 define Package/libinput
32   SECTION:=libs
33   CATEGORY:=Libraries
34   TITLE:=a library to handle input devices
35   URL:=http://freedesktop.org/wiki/Software/libinput/
36   DEPENDS:=+libevdev +mtdev +libudev
37 endef
38
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.
45 endef
46
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/
54 endef
55
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
61 endef
62
63 $(eval $(call BuildPackage,libinput))