snort: Update init script
[feed/packages.git] / libs / libinput / 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:=libinput
8 PKG_VERSION:=1.7.3
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
12 PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput/
13 PKG_HASH:=096d612d2711f0caa2de544976ff3729e6233511ab373808644cc2dd5affcb1d
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 TARGET_CFLAGS+= -std=gnu99
25
26 CONFIGURE_ARGS += --disable-libwacom --disable-tests --disable-documentation
27
28 define Package/libinput
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=a library to handle input devices
32 URL:=http://freedesktop.org/wiki/Software/libinput/
33 DEPENDS:=+libevdev +mtdev +libudev-fbsd
34 endef
35
36 define Package/libinput/description
37 libinput is a library to handle input devices in Wayland compositors
38 and to provide a generic X.Org input driver. It provides device
39 detection, device handling, input device event processing and
40 abstraction so minimize the amount of custom input code compositors
41 need to provide the common set of functionality that users expect.
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} $(1)/usr/lib/
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Package/libinput/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,*.so*} $(1)/usr/lib
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
58 endef
59
60 $(eval $(call BuildPackage,libinput))