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 | DEPENDS = "udev" |
| 13 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 15 | SRC_URI[md5sum] = "c20650a36062ab1689f37f3302c988f2" |
| 16 | SRC_URI[sha256sum] = "d76d79edc31cf76e782b9f697420d3defbcc91778c3c650658086a1b748e8792" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | |
| 18 | inherit autotools systemd pkgconfig |
| 19 | |
| 20 | EXTRA_OECONF = " \ |
| 21 | --disable-libusb \ |
| 22 | --enable-libudev \ |
| 23 | --enable-usbdropdir=${libdir}/pcsc/drivers \ |
| 24 | " |
| 25 | |
| 26 | S = "${WORKDIR}/pcsc-lite-${PV}" |
| 27 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 28 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 29 | |
| 30 | PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," |
| 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 32 | PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" |
| 33 | |
| 34 | RRECOMMENDS_${PN} = "ccid" |
| 35 | |
| 36 | FILES_${PN} = "${sbindir}/pcscd" |
| 37 | FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}" |
| 38 | FILES_${PN}-dev = "${includedir} \ |
| 39 | ${libdir}/pkgconfig \ |
| 40 | ${libdir}/libpcsclite.la \ |
| 41 | ${libdir}/libpcsclite.so" |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 42 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | FILES_${PN}-spy = "${bindir}/pcsc-spy \ |
| 44 | ${libdir}/libpcscspy*${SOLIBS}" |
| 45 | FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \ |
| 46 | ${libdir}/libpcscspy.so " |
| 47 | |
| 48 | RPROVIDES_${PN} += "${PN}-systemd" |
| 49 | RREPLACES_${PN} += "${PN}-systemd" |
| 50 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 51 | SYSTEMD_SERVICE_${PN} = "pcscd.socket" |
| 52 | RDEPENDS_${PN}-spy +="python" |