2 # Copyright (C) 2006 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/
19 include $(INCLUDE_DIR)/package.mk
25 TITLE:=Tslib is an abstraction layer for touchscreen panel events.
27 URL:=http://tslib.berlios.de/
30 define Package/tslib/description
31 Tslib is an abstraction layer for touchscreen panel events,
32 as well as a filter stack for the manipulation of those events.
33 It was created by Russell King, of arm.linux.org.uk.
34 Examples of implemented filters include jitter smoothing and the calibration transform.
37 ifeq ($(CONFIG_TARGET_om_gta02),y)
38 TS_CALIBRATION:=pointercal_om_gta02
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR); ./autogen.sh );
43 $(call Build/Configure/Default, --enable-malloc0returnsnull)
47 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
56 define Package/tslib/install
57 $(INSTALL_DIR) $(1)/usr/lib/ts $(1)/usr/bin $(1)/etc
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ts/*.so* $(1)/usr/lib/ts/
60 $(INSTALL_DATA) ./files/ts.conf $(1)/etc/
61 $(if $(TS_CALIBRATION),$(CP) ./files/$(TS_CALIBRATION) $(1)/etc/pointercal )
64 $(eval $(call BuildPackage,tslib))