blob: 0862f955b61af6fc62a1044a192a6b50b6a9be6f [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "PC/SC Lite smart card framework and applications"
Andrew Geisslerc5535c92023-01-27 16:10:19 -06002HOMEPAGE = "https://pcsclite.apdu.fr/"
Andrew Geissler517393d2023-01-13 08:55:19 -06003LICENSE = "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"
Andrew Geisslerc5535c92023-01-27 16:10:19 -060012DEPENDS = "autoconf-archive-native flex-native"
Andrew Geissler517393d2023-01-13 08:55:19 -060013
14SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2"
Patrick Williams705982a2024-01-12 09:51:57 -060015SRC_URI[sha256sum] = "5edcaf5d4544403bdab6ee2b5d6c02c6f97ea64eebf0825b8d0fa61ba417dada"
Andrew Geissler517393d2023-01-13 08:55:19 -060016
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
Patrick Williams705982a2024-01-12 09:51:57 -060026PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} udev"
Andrew Geissler517393d2023-01-13 08:55:19 -060027PACKAGECONFIG:class-native ??= ""
28
29PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
30PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
Patrick Williams705982a2024-01-12 09:51:57 -060031PACKAGECONFIG[polkit] = ",--disable-polkit,polkit"
Andrew Geissler517393d2023-01-13 08:55:19 -060032
33PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev"
34
35RRECOMMENDS:${PN} = "ccid"
36RRECOMMENDS:${PN}:class-native = ""
37RPROVIDES:${PN}:class-native += "pcsc-lite-lib-native"
38
Patrick Williams705982a2024-01-12 09:51:57 -060039FILES:${PN} = "${sbindir}/pcscd \
40 ${datadir}/polkit-1"
Andrew Geissler517393d2023-01-13 08:55:19 -060041FILES:${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
42FILES:${PN}-dev = "${includedir} \
43 ${libdir}/pkgconfig \
44 ${libdir}/libpcsclite.la \
45 ${libdir}/libpcsclite.so"
46
47FILES:${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"
56RDEPENDS:${PN}-spy += "python3-core"
57
58BBCLASSEXTEND = "native"