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.bz2
15 PKG_SOURCE_URL:=http://bitmath.org/code/mtdev/
16 PKG_MD5SUM:=52c9610b6002f71d1642dc1a1cca5ec1
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
25 include $(INCLUDE_DIR)/package.mk
30 TITLE:=Multitouch Protocol Translation Library
31 URL:=http://bitmath.org/code/mtdev/
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.
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/
51 define Package/mtdev/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
56 $(eval $(call BuildPackage,mtdev))