987a46db9aa1c87e7b4aeb84ddc5714a998153d8
[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 # $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tslib
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://download.berlios.de/tslib/
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tslib
23 SECTION:=xorg-lib
24 CATEGORY:=Xorg
25 SUBMENU:=libraries
26 TITLE:=Tslib is an abstraction layer for touchscreen panel events.
27 DEPENDS:=@!LINUX_2_4
28 URL:=http://tslib.berlios.de/
29 endef
30
31 define Package/tslib/description
32 Tslib is an abstraction layer for touchscreen panel events,
33 as well as a filter stack for the manipulation of those events.
34 It was created by Russell King, of arm.linux.org.uk.
35 Examples of implemented filters include jitter smoothing and the calibration transform.
36 endef
37
38 ifeq ($(CONFIG_TARGET_om_gta02),y)
39 TS_CALIBRATION:=pointercal_om_gta02
40 endif
41
42 define Build/Configure
43 (cd $(PKG_BUILD_DIR); ./autogen.sh );
44 $(call Build/Configure/Default, --enable-malloc0returnsnull)
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
55 endef
56
57 define Package/tslib/install
58 $(INSTALL_DIR) $(1)/usr/lib/ts $(1)/usr/bin $(1)/etc
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ts/*.so* $(1)/usr/lib/ts/
61 $(INSTALL_DATA) ./files/ts.conf $(1)/etc/
62 $(if $(TS_CALIBRATION),$(CP) ./files/$(TS_CALIBRATION) $(1)/etc/pointercal )
63 endef
64
65 $(eval $(call BuildPackage,tslib))