You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ccid
  9. PKG_VERSION:=1.4.17
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://alioth.debian.org/frs/download.php/file/4091
  13. PKG_MD5SUM:=a227a20a0dd034cd4bb7400806a0a2d0
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_FIXUP:=libtool
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ccid
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. DEPENDS:=+libusb-1.0 +libpcsclite
  22. TITLE:=Generic USB CCID smart card reader driver
  23. URL:=http://pcsclite.alioth.debian.org/ccid.html
  24. endef
  25. define Package/ccid/description
  26. Generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD
  27. (Integrated Circuit(s) Card Devices).
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. TARGET_LDFLAGS += "-lpthread"
  31. CONFIGURE_ARGS += \
  32. --enable-embedded \
  33. --enable-usbdropdir=/usr/lib/pcsc/drivers
  34. define Package/ccid/install
  35. $(INSTALL_DIR) $(1)/usr/lib/pcsc
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
  37. endef
  38. $(eval $(call BuildPackage,ccid))