blob: a87c228a837454cb212d163d80bac7c07c228cae [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 -050012DEPENDS = "udev"
13
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2"
Brad Bishopdec060e2019-09-23 08:01:31 -040015SRC_URI[md5sum] = "c20650a36062ab1689f37f3302c988f2"
16SRC_URI[sha256sum] = "d76d79edc31cf76e782b9f697420d3defbcc91778c3c650658086a1b748e8792"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017
18inherit autotools systemd pkgconfig
19
20EXTRA_OECONF = " \
21 --disable-libusb \
22 --enable-libudev \
23 --enable-usbdropdir=${libdir}/pcsc/drivers \
24"
25
26S = "${WORKDIR}/pcsc-lite-${PV}"
27
Brad Bishopdec060e2019-09-23 08:01:31 -040028PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
29
30PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
31
Brad Bishopd7bf8c12018-02-25 22:55:05 -050032PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev"
33
34RRECOMMENDS_${PN} = "ccid"
35
36FILES_${PN} = "${sbindir}/pcscd"
37FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
38FILES_${PN}-dev = "${includedir} \
39 ${libdir}/pkgconfig \
40 ${libdir}/libpcsclite.la \
41 ${libdir}/libpcsclite.so"
Brad Bishopdec060e2019-09-23 08:01:31 -040042
Brad Bishopd7bf8c12018-02-25 22:55:05 -050043FILES_${PN}-spy = "${bindir}/pcsc-spy \
44 ${libdir}/libpcscspy*${SOLIBS}"
45FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \
46 ${libdir}/libpcscspy.so "
47
48RPROVIDES_${PN} += "${PN}-systemd"
49RREPLACES_${PN} += "${PN}-systemd"
50RCONFLICTS_${PN} += "${PN}-systemd"
51SYSTEMD_SERVICE_${PN} = "pcscd.socket"
52RDEPENDS_${PN}-spy +="python"