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