blob: 45c931e7bde6ae9c9268c05b3c14a01d1fb788a1 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "Smart card library and applications"
2DESCRIPTION = "OpenSC is a tool for accessing smart card devices. Basic\
3functionality (e.g. SELECT FILE, READ BINARY) should work on any ISO\
47816-4 compatible smart card. Encryption and decryption using private\
5keys on the smart card is possible with PKCS\
6such as the FINEID (Finnish Electronic IDentity) card. Swedish Posten\
7eID cards have also been confirmed to work."
8
9HOMEPAGE = "http://www.opensc-project.org/opensc/"
10SECTION = "System Environment/Libraries"
11
12SRC_URI = "https://snapshot.debian.org/archive/debian/20180521T101428Z/pool/main/o/opensc/opensc_0.18.0.orig.tar.gz \
13 file://0001-Fixed-gcc-8-compilation-errors-1353.patch \
14 "
15
16SRC_URI[md5sum] = "bce516f752e0db5327aa06cc0136fe27"
17SRC_URI[sha256sum] = "6ef62b00e8fdbe3e386c3ee25c2cadb56c1931ea42f1a11dce8c947f51b45033"
18
19DEPENDS = "openct pcsc-lite virtual/libiconv openssl"
20
21LICENSE = "LGPLv2+"
22LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
23
24inherit autotools pkgconfig
25
26S = "${WORKDIR}/OpenSC-${PV}"
27EXTRA_OECONF = " \
28 --disable-static \
29 --enable-openct \
30 --disable-pcsc \
31 --disable-ctapi \
32 --disable-doc \
33"
34EXTRA_OEMAKE = "DESTDIR=${D}"
35
36RDEPENDS_${PN} = "readline"
37
38FILES_${PN} += "\
39 ${libdir}/opensc-pkcs11.so \
40 ${libdir}/onepin-opensc-pkcs11.so \
41 ${libdir}/pkcs11-spy.so \
42"
43FILES_${PN}-dev += "\
44 ${libdir}/pkcs11/opensc-pkcs11.so \
45 ${libdir}/pkcs11/onepin-opensc-pkcs11.so \
46 ${libdir}/pkcs11/pkcs11-spy.so \
47"