input-utils: update to 1.1
[packages.git] / utils / ccid / Makefile
1 #
2 # Copyright (C) 2009-2012 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.4.5
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/3672
16 PKG_MD5SUM:=cb9a77194ac335c39b262ea83a5b7d2e
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ccid
24   SECTION:=libs
25   CATEGORY:=Libraries
26   DEPENDS:=+libusb-1.0 +libpcsclite
27   TITLE:=Generic USB CCID smart card reader driver
28   URL:=http://pcsclite.alioth.debian.org/ccid.html
29 endef
30
31 define Package/ccid/description
32   Generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD
33   (Integrated Circuit(s) Card Devices).
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39         --enable-embedded \
40         --enable-usbdropdir=/usr/lib/pcsc/drivers
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))