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