blob: 5e608465610ef22a5375408b77580896259c9ef5 [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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2"
Brad Bishop0e2770c2020-01-21 07:31:46 -050014SRC_URI[md5sum] = "9d36882998449daceec267c68a21ff0d"
15SRC_URI[sha256sum] = "3eb7be7d6ef618c0a444316cf5c1f2f9d7227aedba7a192f389fe3e7c0dfbbd9"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016
17inherit autotools systemd pkgconfig
18
19EXTRA_OECONF = " \
20 --disable-libusb \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 --enable-usbdropdir=${libdir}/pcsc/drivers \
22"
23
24S = "${WORKDIR}/pcsc-lite-${PV}"
25
Brad Bishop8410d612019-11-25 09:40:59 -050026PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev"
27PACKAGECONFIG_class-native ??= ""
Brad Bishopdec060e2019-09-23 08:01:31 -040028
29PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd,"
Brad Bishop8410d612019-11-25 09:40:59 -050030PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev"
Brad Bishopdec060e2019-09-23 08:01:31 -040031
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"
Brad Bishop8410d612019-11-25 09:40:59 -050035RRECOMMENDS_${PN}_class-native = ""
Brad Bishopd7bf8c12018-02-25 22:55:05 -050036
37FILES_${PN} = "${sbindir}/pcscd"
38FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
39FILES_${PN}-dev = "${includedir} \
40 ${libdir}/pkgconfig \
41 ${libdir}/libpcsclite.la \
42 ${libdir}/libpcsclite.so"
Brad Bishopdec060e2019-09-23 08:01:31 -040043
Brad Bishopd7bf8c12018-02-25 22:55:05 -050044FILES_${PN}-spy = "${bindir}/pcsc-spy \
45 ${libdir}/libpcscspy*${SOLIBS}"
46FILES_${PN}-spy-dev = "${libdir}/libpcscspy.la \
47 ${libdir}/libpcscspy.so "
48
49RPROVIDES_${PN} += "${PN}-systemd"
50RREPLACES_${PN} += "${PN}-systemd"
51RCONFLICTS_${PN} += "${PN}-systemd"
52SYSTEMD_SERVICE_${PN} = "pcscd.socket"
53RDEPENDS_${PN}-spy +="python"
Brad Bishop8410d612019-11-25 09:40:59 -050054
55BBCLASSEXTEND = "native"