Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / libs / mtdev / 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:=mtdev
11 PKG_VERSION:=1.1.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://bitmath.org/code/mtdev/
16 PKG_HASH:=6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f
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 define Package/mtdev
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Multitouch Protocol Translation Library
31 URL:=http://bitmath.org/code/mtdev/
32 endef
33
34 define Package/mtdev/description
35 The mtdev is a stand-alone library which transforms all variants of
36 kernel MT events to the slotted type B protocol. The events put into
37 mtdev may be from any MT device, specifically type A without contact
38 tracking, type A with contact tracking, or type B with contact
39 tracking. See the kernel documentation for further details.
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include
44 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
49 endef
50
51 define Package/mtdev/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,mtdev))