blob: a815980c4f27d068a67cb6ebd745788082fa7173 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "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"
11LICENSE = "LGPLv2+"
12LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
13
14#v0.19.0
Brad Bishop0e2770c2020-01-21 07:31:46 -050015SRCREV = "45e29056ccde422e70ed3585084a7f150c632515"
Brad Bishop19323692019-04-05 15:28:33 -040016SRC_URI = "git://github.com/OpenSC/OpenSC \
Brad Bishop19323692019-04-05 15:28:33 -040017 "
Brad Bishop8410d612019-11-25 09:40:59 -050018DEPENDS = "virtual/libiconv openssl"
Brad Bishop19323692019-04-05 15:28:33 -040019
20S = "${WORKDIR}/git"
21inherit autotools pkgconfig bash-completion
22
23EXTRA_OECONF = " \
24 --disable-static \
Brad Bishop19323692019-04-05 15:28:33 -040025 --disable-ctapi \
26 --disable-doc \
27"
28EXTRA_OEMAKE = "DESTDIR=${D}"
29
Brad Bishop8410d612019-11-25 09:40:59 -050030PACKAGECONFIG ??= "pcsc"
31
32PACKAGECONFIG[openct] = "--enable-openct,--disable-openct,openct"
Brad Bishope42b3e32020-01-15 22:08:42 -050033PACKAGECONFIG[pcsc] = "--enable-pcsc,--disable-pcsc,pcsc-lite,pcsc-lite pcsc-lite-lib"
Brad Bishop8410d612019-11-25 09:40:59 -050034
Brad Bishop19323692019-04-05 15:28:33 -040035RDEPENDS_${PN} = "readline"
36
37FILES_${PN} += "\
38 ${libdir}/opensc-pkcs11.so \
39 ${libdir}/onepin-opensc-pkcs11.so \
40 ${libdir}/pkcs11-spy.so \
41"
42FILES_${PN}-dev += "\
43 ${libdir}/pkcs11/opensc-pkcs11.so \
44 ${libdir}/pkcs11/onepin-opensc-pkcs11.so \
45 ${libdir}/pkcs11/pkcs11-spy.so \
46"
Brad Bishop8410d612019-11-25 09:40:59 -050047
48BBCLASSEXTEND = "native"