blob: 91d77ac93801a7eec31bf9005f2ca8248d928bb4 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "PC/SC Lite smart card framework and applications"
2HOMEPAGE = "http://pcsclite.alioth.debian.org/"
3LICENSE = "BSD & GPLv3+"
4LICENSE_${PN} = "BSD"
5LICENSE_${PN}-lib = "BSD"
6LICENSE_${PN}-doc = "BSD"
7LICENSE_${PN}-dev = "BSD"
8LICENSE_${PN}-dbg = "BSD & GPLv3+"
9LICENSE_${PN}-spy = "GPLv3+"
10LICENSE_${PN}-spy-dev = "GPLv3+"
Brad Bishopdec060e2019-09-23 08:01:31 -040011LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013SRC_URI = "\
14 https://pcsclite.apdu.fr/files/${BP}.tar.bz2 \
15 file://0001-pcsc-spy-use-python3-only.patch \
16"
Brad Bishop0e2770c2020-01-21 07:31:46 -050017SRC_URI[md5sum] = "9d36882998449daceec267c68a21ff0d"
18SRC_URI[sha256sum] = "3eb7be7d6ef618c0a444316cf5c1f2f9d7227aedba7a192f389fe3e7c0dfbbd9"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019
Andrew Geissler82c905d2020-04-13 13:39:40 -050020inherit autotools systemd pkgconfig perlnative
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021
22EXTRA_OECONF = " \
23 --disable-libusb \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024 --enable-usbdropdir=${libdir}/pcsc/drivers \
25"
26
27S = "${WORKDIR}/pcsc-lite-${PV}"
28
Brad Bishop8410d612019-11-25 09:40:59 -050029PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev"
30PACKAGECONFIG_class-native ??= ""
Brad Bishopdec060e2019-09-23 08:01:31 -040031
32PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
Brad Bishop8410d612019-11-25 09:40:59 -050033PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
Brad Bishopdec060e2019-09-23 08:01:31 -040034
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev"
36
37RRECOMMENDS_${PN} = "ccid"
Brad Bishop8410d612019-11-25 09:40:59 -050038RRECOMMENDS_${PN}_class-native = ""
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039
40FILES_${PN} = "${sbindir}/pcscd"
41FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
42FILES_${PN}-dev = "${includedir} \
43 ${libdir}/pkgconfig \
44 ${libdir}/libpcsclite.la \
45 ${libdir}/libpcsclite.so"
Brad Bishopdec060e2019-09-23 08:01:31 -040046
Brad Bishopd7bf8c12018-02-25 22:55:05 -050047FILES_${PN}-spy = "${bindir}/pcsc-spy \
48 ${libdir}/libpcscspy*${SOLIBS}"
49FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \
50 ${libdir}/libpcscspy.so "
51
52RPROVIDES_${PN} += "${PN}-systemd"
53RREPLACES_${PN} += "${PN}-systemd"
54RCONFLICTS_${PN} += "${PN}-systemd"
55SYSTEMD_SERVICE_${PN} = "pcscd.socket"
Andrew Geissler82c905d2020-04-13 13:39:40 -050056RDEPENDS_${PN}-spy +="python3"
Brad Bishop8410d612019-11-25 09:40:59 -050057
58BBCLASSEXTEND = "native"