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.

56 lines
1.4 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:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/acshk/acsccid/tar.gz/v$(PKG_VERSION)?
  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. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/acsccid
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:=$(ICONV_DEPENDS) +libusb-1.0 +libpcsclite
  26. TITLE:=PCSC driver for ACS USB CCID smart card readers
  27. URL:=https://github.com/acshk/acsccid
  28. endef
  29. define Package/acsccid/description
  30. PCSC driver for ACS USB CCID (Chip/Smart Card Interface Devices)
  31. smart card readers and ICCD (Integrated Circuit(s)
  32. Card Devices).
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. TARGET_LDFLAGS += "-lpthread"
  36. CONFIGURE_ARGS += \
  37. --enable-embedded \
  38. --enable-usbdropdir=/usr/lib/pcsc/drivers
  39. define Package/acsccid/install
  40. $(INSTALL_DIR) $(1)/usr/lib/pcsc
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/
  42. endef
  43. $(eval $(call BuildPackage,acsccid))