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/" |
| 3 | LICENSE = "BSD & GPLv3+" |
| 4 | LICENSE_${PN} = "BSD" |
| 5 | LICENSE_${PN}-lib = "BSD" |
| 6 | LICENSE_${PN}-doc = "BSD" |
| 7 | LICENSE_${PN}-dev = "BSD" |
| 8 | LICENSE_${PN}-dbg = "BSD & GPLv3+" |
| 9 | LICENSE_${PN}-spy = "GPLv3+" |
| 10 | LICENSE_${PN}-spy-dev = "GPLv3+" |
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" |
| 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 | |
| 37 | RRECOMMENDS_${PN} = "ccid" |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 38 | RRECOMMENDS_${PN}_class-native = "" |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 39 | RPROVIDES_${PN}_class-native += "pcsc-lite-lib-native" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | |
| 41 | FILES_${PN} = "${sbindir}/pcscd" |
| 42 | FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 43 | FILES_${PN}-dev = "${includedir} \ |
| 44 | ${libdir}/pkgconfig \ |
| 45 | ${libdir}/libpcsclite.la \ |
| 46 | ${libdir}/libpcsclite.so" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 47 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | FILES_${PN}-spy = "${bindir}/pcsc-spy \ |
| 49 | ${libdir}/libpcscspy*${SOLIBS}" |
| 50 | FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \ |
| 51 | ${libdir}/libpcscspy.so " |
| 52 | |
| 53 | RPROVIDES_${PN} += "${PN}-systemd" |
| 54 | RREPLACES_${PN} += "${PN}-systemd" |
| 55 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 56 | SYSTEMD_SERVICE_${PN} = "pcscd.socket" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 57 | RDEPENDS_${PN}-spy +="python3" |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 58 | |
| 59 | BBCLASSEXTEND = "native" |