fb135e8902fb862502eeaa43eac920e7e9130be9
[openwrt/svn-archive/archive.git] / Xorg / driver / xf86-input-tslib / Makefile
1 #
2 # Copyright (C) 2009 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:=xf86-input-tslib
11 PKG_RELEASE:=1
12 PKG_VERSION:=0.0.5
13
14 PKG_SOURCE_URL:=http://www.pengutronix.de/software/xf86-input-tslib/download/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_MD5SUM:=4231b517d216e9f80ba66f13a0f30afd
18 PKG_BUILD_DEPENDS:=randrproto inputproto xproto
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 ifeq ($(CONFIG_TARGET_s3c24xx),y)
24 TS_POINTERCAL=om_gta02
25 endif
26
27 define Package/xf86-input-tslib
28 SECTION:=xorg-driver
29 CATEGORY:=Xorg
30 SUBMENU:=driver
31 DEPENDS:=+xserver-xorg +tslib
32 TITLE:=xf86-input-tslib
33 URL:=http://www.pengutronix.de/software/xf86-input-tslib/
34 endef
35
36 define Package/xf86-input-tslib/install
37 $(INSTALL_DIR) $(1)/usr/lib/xorg/modules/input $(1)/etc
38 $(INSTALL_DATA) \
39 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/input/tslib_drv.so \
40 $(1)/usr/lib/xorg/modules/input/
41 $(if $(TS_POINTERCAL), \
42 $(INSTALL_DATA) \
43 ./files/pointercal.$(TS_POINTERCAL) \
44 $(1)/etc/pointercal \
45 )
46 endef
47
48 $(eval $(call BuildPackage,xf86-input-tslib))