[package] update faifa to r55, patch from Raphael Huck.
[openwrt/svn-archive/archive.git] / Xorg / lib / tslib / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=tslib
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.berlios.de/tslib/
16 PKG_MD5SUM:=92b2eb55b1e4ef7e2c0347069389390e
17
18 PKG_INSTALL:=1
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tslib
24 SECTION:=xorg-lib
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 TITLE:=Tslib is an abstraction layer for touchscreen panel events.
28 DEPENDS:=@!LINUX_2_4
29 URL:=http://tslib.berlios.de/
30 endef
31
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.
37 endef
38
39 ifeq ($(CONFIG_TARGET_om_gta02),y)
40 TS_CALIBRATION:=pointercal_om_gta02
41 endif
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); ./autogen.sh );
45 $(call Build/Configure/Default, --enable-malloc0returnsnull)
46 endef
47
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/
52 endef
53
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 )
60 endef
61
62 $(eval $(call BuildPackage,tslib))