[packages] Add missing libtool fixups
[packages.git] / Xorg / driver / xf86-input-tslib / Makefile
1 #
2 # Copyright (C) 2009-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:=xf86-input-tslib
11 PKG_VERSION:=0.0.5
12 PKG_RELEASE:=3
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
19 PKG_BUILD_DEPENDS:=randrproto inputproto xproto
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 ifeq ($(CONFIG_TARGET_s3c24xx),y)
26   TS_POINTERCAL=om_gta02
27 endif
28
29 define Package/xf86-input-tslib
30   SECTION:=xorg-driver
31   CATEGORY:=Xorg
32   SUBMENU:=driver
33   DEPENDS:=+xserver-xorg +tslib
34   TITLE:=xf86-input-tslib
35   URL:=http://www.pengutronix.de/software/xf86-input-tslib/
36 endef
37
38 define Package/xf86-input-tslib/install
39         $(INSTALL_DIR) $(1)/usr/lib/xorg/modules/input $(1)/etc
40         $(INSTALL_DATA) \
41                 $(PKG_INSTALL_DIR)/usr/lib/xorg/modules/input/tslib_drv.so \
42                 $(1)/usr/lib/xorg/modules/input/
43         $(if $(TS_POINTERCAL), \
44                 $(INSTALL_DATA) \
45                         ./files/pointercal.$(TS_POINTERCAL) \
46                         $(1)/etc/pointercal \
47         )
48 endef
49
50 $(eval $(call BuildPackage,xf86-input-tslib))