Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | SUMMARY = "PC/SC Lite smart card framework and applications" |
| 2 | HOMEPAGE = "http://pcsclite.alioth.debian.org/" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "BSD-3-Clause & GPL-3.0-or-later" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 4 | LICENSE:${PN} = "BSD-3-Clause" |
| 5 | LICENSE:${PN}-lib = "BSD-3-Clause" |
| 6 | LICENSE:${PN}-doc = "BSD-3-Clause" |
| 7 | LICENSE:${PN}-dev = "BSD-3-Clause" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 8 | LICENSE:${PN}-dbg = "BSD-3-Clause & GPL-3.0-or-later" |
| 9 | LICENSE:${PN}-spy = "GPL-3.0-or-later" |
| 10 | LICENSE:${PN}-spy-dev = "GPL-3.0-or-later" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | SRC_URI = "\ |
| 14 | https://pcsclite.apdu.fr/files/${BP}.tar.bz2 \ |
| 15 | file://0001-pcsc-spy-use-python3-only.patch \ |
| 16 | " |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 17 | SRC_URI[md5sum] = "eb595f2d398ff229207a6ec09fbc4e98" |
| 18 | SRC_URI[sha256sum] = "0148d403137124552c5d0f10f8cdab2cbb8dfc7c6ce75e018faf667be34f2ef9" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | inherit autotools systemd pkgconfig perlnative |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | |
| 22 | EXTRA_OECONF = " \ |
| 23 | --disable-libusb \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | --enable-usbdropdir=${libdir}/pcsc/drivers \ |
| 25 | " |
| 26 | |
| 27 | S = "${WORKDIR}/pcsc-lite-${PV}" |
| 28 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 29 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | PACKAGECONFIG:class-native ??= "" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 31 | |
| 32 | PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 33 | PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | RRECOMMENDS:${PN} = "ccid" |
| 38 | RRECOMMENDS:${PN}:class-native = "" |
| 39 | RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:${PN} = "${sbindir}/pcscd" |
| 42 | FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 43 | FILES:${PN}-dev = "${includedir} \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 44 | ${libdir}/pkgconfig \ |
| 45 | ${libdir}/libpcsclite.la \ |
| 46 | ${libdir}/libpcsclite.so" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | FILES:${PN}-spy = "${bindir}/pcsc-spy \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 49 | ${libdir}/libpcscspy*${SOLIBS}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 51 | ${libdir}/libpcscspy.so " |
| 52 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 53 | RPROVIDES:${PN} += "${PN}-systemd" |
| 54 | RREPLACES:${PN} += "${PN}-systemd" |
| 55 | RCONFLICTS:${PN} += "${PN}-systemd" |
| 56 | SYSTEMD_SERVICE:${PN} = "pcscd.socket" |
| 57 | RDEPENDS:${PN}-spy +="python3" |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 58 | |
| 59 | BBCLASSEXTEND = "native" |