net/snort3: Include default configs and snort2lua
[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.17.1
9 PKG_RELEASE:=$(AUTORELEASE)
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
12 PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput
13 PKG_HASH:=e51c50f3ce253961bed452d9f93102cc26128406975ab88ff9ec9e6c3b875137
14
15 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
16 PKG_LICENSE:=MIT
17 PKG_LICENSE_FILES:=COPYING
18
19 PKG_INSTALL:=1
20 PKG_BUILD_DEPENDS:=meson/host
21
22 include $(INCLUDE_DIR)/package.mk
23 include ../../devel/meson/meson.mk
24
25 define Package/libinput
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=a library to handle input devices
29 URL:=http://freedesktop.org/wiki/Software/libinput/
30 DEPENDS:=+libevdev +mtdev +libudev
31 endef
32
33 define Package/libinput/description
34 libinput is a library to handle input devices in Wayland compositors
35 and to provide a generic X.Org input driver. It provides device
36 detection, device handling, input device event processing and
37 abstraction so minimize the amount of custom input code compositors
38 need to provide the common set of functionality that users expect.
39 endef
40
41 MESON_ARGS += \
42 -Depoll-dir=no \
43 -Dlibwacom=false \
44 -Ddebug-gui=false \
45 -Dtests=false \
46 -Dinstall-tests=false \
47 -Ddocumentation=false \
48 -Dcoverity=false \
49 -Dzshcompletiondir=no
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/libinput.h $(1)/usr/include/
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libinput.so* $(1)/usr/lib/
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libinput.pc $(1)/usr/lib/pkgconfig/
58 endef
59
60 define Package/libinput/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,libinput.so.*} $(1)/usr/lib
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libinput $(1)/usr/bin
65 endef
66
67 $(eval $(call BuildPackage,libinput))