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.24
  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/4171
  13. PKG_MD5SUM:=62cb73c6c009c9799c526f05a05e25f00f0ad86d50f82a714dedcfbf4a7e4176
  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))