added package brutefir
[openadk.git] / package / opensc / Makefile
blob289f732f824eb73ad4a115b0359c8abd68e8c84c
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
6 PKG_NAME:= opensc
7 PKG_VERSION:= 0.15.0
8 PKG_RELEASE:= 1
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
17 PKG_OPTS:= dev
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 \
34 --disable-iconv \
35 --disable-pcsc \
36 --enable-openct
38 opensc-install:
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
54 libopensc-install:
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