1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 399b2107a69e3f67e4e76dc2dbd951dbced8e534b1e0f919e176aea9b85970d7
10 PKG_DESCR
:= utilities to access smart cards
11 PKG_SECTION
:= app
/crypto
12 PKG_BUILDDEP
:= openct pcsc-lite openssl readline
13 PKG_DEPENDS
:= libopensc libopenct pcsc-lite libopenssl libreadline
14 PKG_URL
:= https
://github.com
/OpenSC
/OpenSC
/wiki
15 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=opensc
/}
16 PKG_LIBNAME
:= libopensc
19 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
21 PKG_SUBPKGS
:= OPENSC LIBOPENSC
22 PKGSD_LIBOPENSC
:= opensc library
23 PKGSC_LIBOPENSC
:= libs
/crypto
24 PKGSS_LIBOPENSC
:= libltdl
25 PKGSB_LIBOPENSC
:= libtool
27 include ${ADK_TOPDIR}/mk
/package.mk
29 $(eval
$(call PKG_template
,OPENSC
,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
30 $(eval
$(call PKG_template
,LIBOPENSC
,libopensc
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC},${PKG_OPTS}))
32 AUTOTOOL_STYLE
:= autoreconf
33 CONFIGURE_ARGS
+= --disable-man \
39 ${INSTALL_DIR} ${IDIR_OPENSC}/usr
/bin
40 ${INSTALL_DIR} ${IDIR_OPENSC}/usr
/share
/opensc
41 ${INSTALL_DATA} ${WRKINST}/usr
/share
/opensc
/* \
42 ${IDIR_OPENSC}/usr
/share
/opensc
43 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/opensc-explorer \
44 ${IDIR_OPENSC}/usr
/bin
45 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/opensc-tool \
46 ${IDIR_OPENSC}/usr
/bin
47 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/pkcs15-init \
48 ${IDIR_OPENSC}/usr
/bin
49 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/pkcs15-tool \
50 ${IDIR_OPENSC}/usr
/bin
51 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/pkcs15-crypt \
52 ${IDIR_OPENSC}/usr
/bin
55 ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr
/lib
56 ${CP} ${WRKINST}/usr
/lib
/libopensc.so
* \
57 ${IDIR_LIBOPENSC}/usr
/lib
58 ${CP} ${WRKINST}/usr
/lib
/opensc-pkcs11.so \
59 ${IDIR_LIBOPENSC}/usr
/lib
61 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk