summaryrefslogtreecommitdiff
path: root/package/opensc/Makefile
blob: 863074beed38414ddf2d162e95244ee15c8f6c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		opensc
PKG_VERSION:=		0.15.0
PKG_RELEASE:=		1
PKG_HASH:=		7c8600a37d11f82410699ee5c60bfebc46f6714d0d87b4125dd99215c87d4db8
PKG_DESCR:=		utilities to access smart cards
PKG_SECTION:=		app/crypto
PKG_BUILDDEP:=		openct pcsc-lite readline libressl
PKG_DEPENDS:=		libopensc libopenct pcsc-lite libreadline libressl
PKG_URL:=		https://github.com/OpenSC/OpenSC/wiki
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=opensc/}
PKG_LIBNAME:=		libopensc
PKG_OPTS:=		dev

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_SUBPKGS:=		OPENSC LIBOPENSC
PKGSD_LIBOPENSC:=	opensc library
PKGSC_LIBOPENSC:=	libs/crypto
PKGSS_LIBOPENSC:=	libltdl
PKGSB_LIBOPENSC:=	libtool

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC},${PKG_OPTS}))

AUTOTOOL_STYLE:=	autoreconf
CONFIGURE_ARGS+=	--disable-man \
			--disable-iconv \
			--disable-pcsc \
			--enable-openct

opensc-install:
	${INSTALL_DIR} ${IDIR_OPENSC}/usr/bin
	${INSTALL_DIR} ${IDIR_OPENSC}/usr/share/opensc
	${INSTALL_DATA} ${WRKINST}/usr/share/opensc/* \
		${IDIR_OPENSC}/usr/share/opensc
	${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-explorer \
		 ${IDIR_OPENSC}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-tool \
		 ${IDIR_OPENSC}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-init \
		 ${IDIR_OPENSC}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-tool \
		 ${IDIR_OPENSC}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-crypt \
		 ${IDIR_OPENSC}/usr/bin

libopensc-install:
	${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib
	${CP} ${WRKINST}/usr/lib/libopensc.so* \
		${IDIR_LIBOPENSC}/usr/lib
	${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \
		${IDIR_LIBOPENSC}/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk