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 | " |
Brad Bishop | 0e2770c | 2020-01-21 07:31:46 -0500 | [diff] [blame] | 17 | SRC_URI[md5sum] = "9d36882998449daceec267c68a21ff0d" |
| 18 | SRC_URI[sha256sum] = "3eb7be7d6ef618c0a444316cf5c1f2f9d7227aedba7a192f389fe3e7c0dfbbd9" |
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" |