blob: c1b793960f5e23888268b31f2c2b06c15008bbc5 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "PC/SC Lite smart card framework and applications"
2HOMEPAGE = "http://pcsclite.alioth.debian.org/"
3LICENSE = "BSD & GPLv3+"
4LICENSE_${PN} = "BSD"
5LICENSE_${PN}-lib = "BSD"
6LICENSE_${PN}-doc = "BSD"
7LICENSE_${PN}-dev = "BSD"
8LICENSE_${PN}-dbg = "BSD & GPLv3+"
9LICENSE_${PN}-spy = "GPLv3+"
10LICENSE_${PN}-spy-dev = "GPLv3+"
Brad Bishopdec060e2019-09-23 08:01:31 -040011LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013SRC_URI = "\
14 https://pcsclite.apdu.fr/files/${BP}.tar.bz2 \
15 file://0001-pcsc-spy-use-python3-only.patch \
16"
Andrew Geisslera2681d92020-10-16 10:17:07 -050017SRC_URI[md5sum] = "eb595f2d398ff229207a6ec09fbc4e98"
18SRC_URI[sha256sum] = "0148d403137124552c5d0f10f8cdab2cbb8dfc7c6ce75e018faf667be34f2ef9"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019
Andrew Geissler82c905d2020-04-13 13:39:40 -050020inherit autotools systemd pkgconfig perlnative
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021
22EXTRA_OECONF = " \
23 --disable-libusb \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024 --enable-usbdropdir=${libdir}/pcsc/drivers \
25"
26
27S = "${WORKDIR}/pcsc-lite-${PV}"
28
Brad Bishop8410d612019-11-25 09:40:59 -050029PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev"
30PACKAGECONFIG_class-native ??= ""
Brad Bishopdec060e2019-09-23 08:01:31 -040031
32PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
Brad Bishop8410d612019-11-25 09:40:59 -050033PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
Brad Bishopdec060e2019-09-23 08:01:31 -040034
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev"
36
37RRECOMMENDS_${PN} = "ccid"
Brad Bishop8410d612019-11-25 09:40:59 -050038RRECOMMENDS_${PN}_class-native = ""
Andrew Geissler8fc454f2020-12-11 16:27:59 -060039RPROVIDES_${PN}_class-native += "pcsc-lite-lib-native"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050040
41FILES_${PN} = "${sbindir}/pcscd"
42FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
43FILES_${PN}-dev = "${includedir} \
44 ${libdir}/pkgconfig \
45 ${libdir}/libpcsclite.la \
46 ${libdir}/libpcsclite.so"
Brad Bishopdec060e2019-09-23 08:01:31 -040047
Brad Bishopd7bf8c12018-02-25 22:55:05 -050048FILES_${PN}-spy = "${bindir}/pcsc-spy \
49 ${libdir}/libpcscspy*${SOLIBS}"
50FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \
51 ${libdir}/libpcscspy.so "
52
53RPROVIDES_${PN} += "${PN}-systemd"
54RREPLACES_${PN} += "${PN}-systemd"
55RCONFLICTS_${PN} += "${PN}-systemd"
56SYSTEMD_SERVICE_${PN} = "pcscd.socket"
Andrew Geissler82c905d2020-04-13 13:39:40 -050057RDEPENDS_${PN}-spy +="python3"
Brad Bishop8410d612019-11-25 09:40:59 -050058
59BBCLASSEXTEND = "native"