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 = "" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | |
| 40 | FILES_${PN} = "${sbindir}/pcscd" |
| 41 | FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 42 | FILES_${PN}-dev = "${includedir} \ |
| 43 | ${libdir}/pkgconfig \ |
| 44 | ${libdir}/libpcsclite.la \ |
| 45 | ${libdir}/libpcsclite.so" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 46 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 56 | RDEPENDS_${PN}-spy +="python3" |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 57 | |
| 58 | BBCLASSEXTEND = "native" |