blob: b3fc1f0458cfd56906c0fae28f12b974fa24ca7f [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "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
Andrew Geisslerc5535c92023-01-27 16:10:19 -06009HOMEPAGE = "https://github.com/OpenSC/OpenSC/wiki"
Andrew Geissler517393d2023-01-13 08:55:19 -060010SECTION = "System Environment/Libraries"
11LICENSE = "LGPL-2.0-or-later"
12LIC_FILES_CHKSUM = "file://COPYING;md5=cb8aedd3bced19bd8026d96a8b6876d7"
13
14#v0.21.0
15SRCREV = "5497519ea6b4af596628f8f8f2f904bacaa3148f"
16SRC_URI = "git://github.com/OpenSC/OpenSC;branch=master;protocol=https \
Patrick Williams864cc432023-02-09 14:54:44 -060017 file://0001-pkcs11-tool-Fix-private-key-import.patch \
18 file://0002-pkcs11-tool-Log-more-information-on-OpenSSL-errors.patch \
Andrew Geissler220dafd2023-10-04 10:18:08 -050019 file://CVE-2023-2977.patch \
Andrew Geissler517393d2023-01-13 08:55:19 -060020 "
21DEPENDS = "virtual/libiconv openssl"
22
23S = "${WORKDIR}/git"
24inherit autotools pkgconfig bash-completion
25
26EXTRA_OECONF = " \
27 --disable-static \
28 --disable-ctapi \
29 --disable-doc \
30 --disable-strict \
31"
32EXTRA_OEMAKE = "DESTDIR=${D}"
33
34PACKAGECONFIG ??= "pcsc"
35
36PACKAGECONFIG[openct] = "--enable-openct,--disable-openct,openct"
37PACKAGECONFIG[pcsc] = "--enable-pcsc,--disable-pcsc,pcsc-lite,pcsc-lite pcsc-lite-lib"
38
39RDEPENDS:${PN} = "readline"
40
41FILES:${PN} += "\
42 ${libdir}/opensc-pkcs11.so \
43 ${libdir}/onepin-opensc-pkcs11.so \
44 ${libdir}/pkcs11-spy.so \
45"
46FILES:${PN}-dev += "\
47 ${libdir}/pkcs11/opensc-pkcs11.so \
48 ${libdir}/pkcs11/onepin-opensc-pkcs11.so \
49 ${libdir}/pkcs11/pkcs11-spy.so \
50"
51
52BBCLASSEXTEND = "native"