blob: d90dd4304256508acb8c451071017571123683e4 [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/"
Andrew Geissler595f6302022-01-24 19:11:47 +00003LICENSE = "BSD-3-Clause & GPLv3+"
4LICENSE:${PN} = "BSD-3-Clause"
5LICENSE:${PN}-lib = "BSD-3-Clause"
6LICENSE:${PN}-doc = "BSD-3-Clause"
7LICENSE:${PN}-dev = "BSD-3-Clause"
8LICENSE:${PN}-dbg = "BSD-3-Clause & GPLv3+"
Patrick Williams213cb262021-08-07 19:21:33 -05009LICENSE:${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"
Patrick Williams213cb262021-08-07 19:21:33 -050030PACKAGECONFIG: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
Patrick Williams213cb262021-08-07 19:21:33 -050037RRECOMMENDS:${PN} = "ccid"
38RRECOMMENDS:${PN}:class-native = ""
39RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050040
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:${PN} = "${sbindir}/pcscd"
42FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
43FILES:${PN}-dev = "${includedir} \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050044 ${libdir}/pkgconfig \
45 ${libdir}/libpcsclite.la \
46 ${libdir}/libpcsclite.so"
Brad Bishopdec060e2019-09-23 08:01:31 -040047
Patrick Williams213cb262021-08-07 19:21:33 -050048FILES:${PN}-spy = "${bindir}/pcsc-spy \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050049 ${libdir}/libpcscspy*${SOLIBS}"
Patrick Williams213cb262021-08-07 19:21:33 -050050FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050051 ${libdir}/libpcscspy.so "
52
Patrick Williams213cb262021-08-07 19:21:33 -050053RPROVIDES:${PN} += "${PN}-systemd"
54RREPLACES:${PN} += "${PN}-systemd"
55RCONFLICTS:${PN} += "${PN}-systemd"
56SYSTEMD_SERVICE:${PN} = "pcscd.socket"
57RDEPENDS:${PN}-spy +="python3"
Brad Bishop8410d612019-11-25 09:40:59 -050058
59BBCLASSEXTEND = "native"