Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "PC/SC Lite smart card framework and applications" |
| 2 | HOMEPAGE = "http://pcsclite.alioth.debian.org/" |
| 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" |
| 12 | DEPENDS = "autoconf-archive-native" |
| 13 | |
| 14 | SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" |
| 15 | SRC_URI[sha256sum] = "cbcc3b34c61f53291cecc0d831423c94d437b188eb2b97b7febc08de1c914e8a" |
| 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 | |
| 26 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev" |
| 27 | PACKAGECONFIG:class-native ??= "" |
| 28 | |
| 29 | PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," |
| 30 | PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" |
| 31 | |
| 32 | PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" |
| 33 | |
| 34 | RRECOMMENDS:${PN} = "ccid" |
| 35 | RRECOMMENDS:${PN}:class-native = "" |
| 36 | RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native" |
| 37 | |
| 38 | FILES:${PN} = "${sbindir}/pcscd" |
| 39 | FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 40 | FILES:${PN}-dev = "${includedir} \ |
| 41 | ${libdir}/pkgconfig \ |
| 42 | ${libdir}/libpcsclite.la \ |
| 43 | ${libdir}/libpcsclite.so" |
| 44 | |
| 45 | FILES:${PN}-spy = "${bindir}/pcsc-spy \ |
| 46 | ${libdir}/libpcscspy*${SOLIBS}" |
| 47 | FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \ |
| 48 | ${libdir}/libpcscspy.so " |
| 49 | |
| 50 | RPROVIDES:${PN} += "${PN}-systemd" |
| 51 | RREPLACES:${PN} += "${PN}-systemd" |
| 52 | RCONFLICTS:${PN} += "${PN}-systemd" |
| 53 | SYSTEMD_SERVICE:${PN} = "pcscd.socket" |
| 54 | RDEPENDS:${PN}-spy += "python3-core" |
| 55 | |
| 56 | BBCLASSEXTEND = "native" |