1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
8 PKG_SOURCE_URL
:=http
://alioth.debian.org
/frs
/download.php
/3082
9 PKG_MD5SUM
:=6707e967fc8bb398a5d1b1089d4dff63
13 include $(INCLUDE_DIR
)/package.mk
15 define Package
/pcsc-lite
/Default
18 TITLE
:=Middleware to access a smart card using SCard API
(PC
/SC
).
19 URL
:=http
://pcsclite.alioth.debian.org
/
22 define Package
/pcsc-lite
/Default
/description
23 The purpose of PC
/SC Lite is to provide a Windows
(R
) SCard
24 interface in a very small form factor for communicating to
25 smart cards and smart cards readers.
28 define Package
/libpcsclite
29 $(call Package
/pcsc-lite
/Default
)
33 DEPENDS
:=+libusb
+libpthread
36 define Package
/libpcsclite
/description
37 $(call Package
/pcsc-lite
/Default
/description
)
39 This package contains the PC
/SC shared library.
43 $(call Package
/pcsc-lite
/Default
)
50 define Package
/pcscd
/description
51 $(call Package
/pcsc-lite
/Default
/description
)
53 This package contains the PC
/SC daemon.
56 TARGET_CFLAGS
+= $(FPIC
)
57 TARGET_LDFLAGS
+= -lpthread
59 define Build
/Configure
60 $(call Build
/Configure
/Default
, \
63 --enable-usbdropdir
=/usr
/lib
/pcsc
/drivers \
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 define Build
/InstallDev
74 $(INSTALL_DIR
) $(1)/usr
/include/PCSC
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/PCSC
/* $(1)/usr
/include/PCSC
/
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcsclite.
{a
,so
*} $(1)/usr
/lib
/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libpcsclite.
pc $(1)/usr
/lib
/pkgconfig
/
82 define Package
/libpcsclite
/install
83 $(INSTALL_DIR
) $(1)/usr
/lib
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcsclite.so.
* $(1)/usr
/lib
/
87 define Package
/pcscd
/conffiles
88 /etc
/reader.conf.d
/reader.conf
91 define Package
/pcscd
/install
92 $(INSTALL_DIR
) $(1)/usr
/sbin
93 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pcscd
$(1)/usr
/sbin
/
94 $(INSTALL_DIR
) $(1)/etc
/init.d
95 $(INSTALL_BIN
) .
/files
/pcscd.init
$(1)/etc
/init.d
/pcscd
96 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/update-reader.conf
$(1)/usr
/sbin
/
97 $(INSTALL_DIR
) $(1)/etc
/reader.conf.d
98 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/etc
/reader.conf.d
/reader.conf
$(1)/etc
/reader.conf.d
/
101 $(eval
$(call BuildPackage
,libpcsclite
))
102 $(eval
$(call BuildPackage
,pcscd
))