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.

54 lines
1.3 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:=acsccid
  9. PKG_VERSION:=1.1.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=v$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/acshk/acsccid/archive/
  13. PKG_HASH:=68d15eb20e7f52153509f1dc300cf0c68b388c59d7d124ba494fd96c61a6e7c6
  14. PKG_MAINTAINER:=Vincent JARDIN <vjardin@free.fr>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=libtool
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/acsccid
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=$(ICONV_DEPENDS) +libusb-1.0 +libpcsclite
  25. TITLE:=PCSC driver for ACS USB CCID smart card readers
  26. URL:=https://github.com/acshk/acsccid
  27. endef
  28. define Package/acsccid/description
  29. PCSC driver for ACS USB CCID (Chip/Smart Card Interface Devices)
  30. smart card readers and ICCD (Integrated Circuit(s)
  31. Card Devices).
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. TARGET_LDFLAGS += "-lpthread"
  35. CONFIGURE_ARGS += \
  36. --enable-embedded \
  37. --enable-usbdropdir=/usr/lib/pcsc/drivers
  38. define Package/acsccid/install
  39. $(INSTALL_DIR) $(1)/usr/lib/pcsc
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
  41. endef
  42. $(eval $(call BuildPackage,acsccid))