2 # Copyright (C) 2006-2010 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://download.berlios.de/tslib/
16 PKG_MD5SUM:=92b2eb55b1e4ef7e2c0347069389390e
21 include $(INCLUDE_DIR)/package.mk
27 TITLE:=Tslib is an abstraction layer for touchscreen panel events.
29 URL:=http://tslib.berlios.de/
32 define Package/tslib/description
33 Tslib is an abstraction layer for touchscreen panel events,
34 as well as a filter stack for the manipulation of those events.
35 It was created by Russell King, of arm.linux.org.uk.
36 Examples of implemented filters include jitter smoothing and the calibration transform.
39 ifeq ($(CONFIG_TARGET_om_gta02),y)
40 TS_CALIBRATION:=pointercal_om_gta02
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); ./autogen.sh );
45 $(call Build/Configure/Default, --enable-malloc0returnsnull)
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
54 define Package/tslib/install
55 $(INSTALL_DIR) $(1)/usr/lib/ts $(1)/usr/bin $(1)/etc
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ts/*.so* $(1)/usr/lib/ts/
58 $(INSTALL_DATA) ./files/ts.conf $(1)/etc/
59 $(if $(TS_CALIBRATION),$(CP) ./files/$(TS_CALIBRATION) $(1)/etc/pointercal )
62 $(eval $(call BuildPackage,tslib))