Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "PC/SC Lite smart card framework and applications" |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 2 | HOMEPAGE = "https://pcsclite.apdu.fr/" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 3 | LICENSE = "BSD-3-Clause & GPL-3.0-or-later" |
| 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" |
| 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" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6" |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 12 | DEPENDS = "autoconf-archive-native flex-native" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 13 | |
| 14 | SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "5edcaf5d4544403bdab6ee2b5d6c02c6f97ea64eebf0825b8d0fa61ba417dada" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | |
| 17 | inherit autotools systemd pkgconfig perlnative |
| 18 | |
| 19 | EXTRA_OECONF = " \ |
| 20 | --disable-libusb \ |
| 21 | --enable-usbdropdir=${libdir}/pcsc/drivers \ |
| 22 | " |
| 23 | |
| 24 | S = "${WORKDIR}/pcsc-lite-${PV}" |
| 25 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} udev" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 27 | PACKAGECONFIG:class-native ??= "" |
| 28 | |
| 29 | PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," |
| 30 | PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 31 | PACKAGECONFIG[polkit] = ",--disable-polkit,polkit" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 32 | |
| 33 | PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" |
| 34 | |
| 35 | RRECOMMENDS:${PN} = "ccid" |
| 36 | RRECOMMENDS:${PN}:class-native = "" |
| 37 | RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native" |
| 38 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 39 | FILES:${PN} = "${sbindir}/pcscd \ |
| 40 | ${datadir}/polkit-1" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 41 | FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 42 | FILES:${PN}-dev = "${includedir} \ |
| 43 | ${libdir}/pkgconfig \ |
| 44 | ${libdir}/libpcsclite.la \ |
| 45 | ${libdir}/libpcsclite.so" |
| 46 | |
| 47 | FILES:${PN}-spy = "${bindir}/pcsc-spy \ |
| 48 | ${libdir}/libpcscspy*${SOLIBS}" |
| 49 | FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \ |
| 50 | ${libdir}/libpcscspy.so " |
| 51 | |
| 52 | RPROVIDES:${PN} += "${PN}-systemd" |
| 53 | RREPLACES:${PN} += "${PN}-systemd" |
| 54 | RCONFLICTS:${PN} += "${PN}-systemd" |
| 55 | SYSTEMD_SERVICE:${PN} = "pcscd.socket" |
| 56 | RDEPENDS:${PN}-spy += "python3-core" |
| 57 | |
| 58 | BBCLASSEXTEND = "native" |