summaryrefslogtreecommitdiff
path: root/utils/ccid
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2014-06-16 13:05:31 +0200
committerDaniel Golle <daniel@makrotopia.org>2014-06-16 14:23:51 +0200
commit919bc161e61326dec8f109158904eeed6139664f (patch)
treea16d200a9a1cd17635944366a8dfd2c42a1ccdfd /utils/ccid
parent2e20daf7a8818eb8d8a88caf0f95f825167d92bf (diff)
Import ccid
bump version to 1.4.17 and add myself as maintainer. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'utils/ccid')
-rw-r--r--utils/ccid/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/utils/ccid/Makefile b/utils/ccid/Makefile
new file mode 100644
index 000000000..dc3e16dc2
--- /dev/null
+++ b/utils/ccid/Makefile
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2009-2012 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ccid
+PKG_VERSION:=1.4.17
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=https://alioth.debian.org/frs/download.php/file/4091
+PKG_MD5SUM:=a227a20a0dd034cd4bb7400806a0a2d0
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
+
+PKG_FIXUP:=libtool
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ccid
+ SECTION:=libs
+ CATEGORY:=Libraries
+ DEPENDS:=+libusb-1.0 +libpcsclite
+ TITLE:=Generic USB CCID smart card reader driver
+ URL:=http://pcsclite.alioth.debian.org/ccid.html
+endef
+
+define Package/ccid/description
+ Generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD
+ (Integrated Circuit(s) Card Devices).
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+TARGET_LDFLAGS += "-lpthread"
+
+CONFIGURE_ARGS += \
+ --enable-embedded \
+ --enable-usbdropdir=/usr/lib/pcsc/drivers
+
+define Package/ccid/install
+ $(INSTALL_DIR) $(1)/usr/lib/pcsc
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
+endef
+
+$(eval $(call BuildPackage,ccid))