blob: fd232c1b632847576c291155589fe9cb1aebc1ea [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "PC/SC Lite smart card framework and applications"
2HOMEPAGE = "http://pcsclite.alioth.debian.org/"
3LICENSE = "BSD-3-Clause & GPL-3.0-or-later"
4LICENSE:${PN} = "BSD-3-Clause"
5LICENSE:${PN}-lib = "BSD-3-Clause"
6LICENSE:${PN}-doc = "BSD-3-Clause"
7LICENSE:${PN}-dev = "BSD-3-Clause"
8LICENSE:${PN}-dbg = "BSD-3-Clause & GPL-3.0-or-later"
9LICENSE:${PN}-spy = "GPL-3.0-or-later"
10LICENSE:${PN}-spy-dev = "GPL-3.0-or-later"
11LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6"
12DEPENDS = "autoconf-archive-native"
13
14SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2"
15SRC_URI[sha256sum] = "cbcc3b34c61f53291cecc0d831423c94d437b188eb2b97b7febc08de1c914e8a"
16
17inherit autotools systemd pkgconfig perlnative
18
19EXTRA_OECONF = " \
20 --disable-libusb \
21 --enable-usbdropdir=${libdir}/pcsc/drivers \
22"
23
24S = "${WORKDIR}/pcsc-lite-${PV}"
25
26PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev"
27PACKAGECONFIG:class-native ??= ""
28
29PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
30PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
31
32PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev"
33
34RRECOMMENDS:${PN} = "ccid"
35RRECOMMENDS:${PN}:class-native = ""
36RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native"
37
38FILES:${PN} = "${sbindir}/pcscd"
39FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
40FILES:${PN}-dev = "${includedir} \
41 ${libdir}/pkgconfig \
42 ${libdir}/libpcsclite.la \
43 ${libdir}/libpcsclite.so"
44
45FILES:${PN}-spy = "${bindir}/pcsc-spy \
46 ${libdir}/libpcscspy*${SOLIBS}"
47FILES:${PN}-spy-dev = "${libdir}/libpcscspy.la \
48 ${libdir}/libpcscspy.so "
49
50RPROVIDES:${PN} += "${PN}-systemd"
51RREPLACES:${PN} += "${PN}-systemd"
52RCONFLICTS:${PN} += "${PN}-systemd"
53SYSTEMD_SERVICE:${PN} = "pcscd.socket"
54RDEPENDS:${PN}-spy += "python3-core"
55
56BBCLASSEXTEND = "native"