blob: 6f38d65e05d49ad97c34cf1602a352aa7c5c7772 [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"
Andrew Geisslera2681d92020-10-16 10:17:07 -050017SRC_URI[md5sum] = "eb595f2d398ff229207a6ec09fbc4e98"
18SRC_URI[sha256sum] = "0148d403137124552c5d0f10f8cdab2cbb8dfc7c6ce75e018faf667be34f2ef9"
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"