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.

52 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.28
  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/4230
  13. PKG_HASH:=875836ac5d9d952b40dc1a253a726e74361671864d81337285a3260268f8ade0
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_LICENSE:=LGPL-2.1+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=libtool
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ccid
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libusb-1.0 +libpcsclite
  24. TITLE:=Generic USB CCID smart card reader driver
  25. URL:=http://pcsclite.alioth.debian.org/ccid.html
  26. endef
  27. define Package/ccid/description
  28. Generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD
  29. (Integrated Circuit(s) Card Devices).
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. TARGET_LDFLAGS += "-lpthread"
  33. CONFIGURE_ARGS += \
  34. --enable-embedded \
  35. --enable-usbdropdir=/usr/lib/pcsc/drivers
  36. define Package/ccid/install
  37. $(INSTALL_DIR) $(1)/usr/lib/pcsc
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
  39. endef
  40. $(eval $(call BuildPackage,ccid))