[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.git] / utils / ccid / 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:=ccid
11 PKG_VERSION:=1.3.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://alioth.debian.org/frs/download.php/3080
16 PKG_MD5SUM:=727dc7eb4d560f81fe70a766a96de970
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ccid
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+libusb +libpcsclite
26 TITLE:=Generic USB CCID smart card reader driver
27 URL:=http://pcsclite.alioth.debian.org/ccid.html
28 endef
29
30 define Package/ccid/description
31 Generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD (Integrated Circuit(s) Card Devices).
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-usbdropdir=/usr/lib/pcsc/drivers \
39 )
40 endef
41
42 define Package/ccid/install
43 $(INSTALL_DIR) $(1)/usr/lib/pcsc/
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
45 endef
46
47 $(eval $(call BuildPackage,ccid))