fe0d122cd41148c2e2dab367b229977f4906b5ec
[openwrt/svn-archive/archive.git] / Xorg / lib / tslib / Makefile
1 #
2 # Copyright (C) 2006 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
17 PKG_FIXUP = libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/tslib
22 SECTION:=xorg-lib
23 CATEGORY:=Xorg
24 SUBMENU:=libraries
25 TITLE:=Tslib is an abstraction layer for touchscreen panel events.
26 DEPENDS:=@!LINUX_2_4
27 URL:=http://tslib.berlios.de/
28 endef
29
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.
35 endef
36
37 ifeq ($(CONFIG_TARGET_om_gta02),y)
38 TS_CALIBRATION:=pointercal_om_gta02
39 endif
40
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR); ./autogen.sh );
43 $(call Build/Configure/Default, --enable-malloc0returnsnull)
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
48 endef
49
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/
54 endef
55
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 )
62 endef
63
64 $(eval $(call BuildPackage,tslib))