From e86a3b94d021f6e7c55741e239e86c4d225aa9e5 Mon Sep 17 00:00:00 2001 From: oepen Date: Sat, 29 May 2010 20:58:28 +0000 Subject: [PATCH] Added bitbake recipes for the latest versions of pcsc-lite and ccid git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@114 96b47cad-a561-4643-ad3b-153ac7d7599c --- bitbake/ccid_1.3.12.bb | 24 ++++++++++++++++++++++++ bitbake/pcsc-lite_1.6.0.bb | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 bitbake/ccid_1.3.12.bb create mode 100644 bitbake/pcsc-lite_1.6.0.bb diff --git a/bitbake/ccid_1.3.12.bb b/bitbake/ccid_1.3.12.bb new file mode 100644 index 0000000..b318304 --- /dev/null +++ b/bitbake/ccid_1.3.12.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "Generic USB CCID smart card reader driver" +HOMEPAGE = "http://pcsclite.alioth.debian.org/ccid.html" +LICENSE = "GPL" +PR = "r0" + +DEPENDS = "virtual/libusb0 pcsc-lite" +RDEPENDS = "pcsc-lite" + +SRC_URI = "http://alioth.debian.org/download.php/3281/ccid-${PV}.tar.bz2" + +inherit autotools + +EXTRA_OECONF = "--enable-udev" + +do_install_append () { + install -d "${D}/etc/udev/rules.d" + install -m 644 "${S}/src/pcscd_ccid.rules" "${D}/etc/udev/rules.d/85-pcscd_ccid.rules" +} + +FILES_${PN} += "${libdir}/pcsc/" +FILES_${PN}-dbg += "${libdir}/pcsc/drivers/*/*/*/.debug" + +SRC_URI[md5sum] = "7fcdbacacd955659286f988fa9b6e0be" +SRC_URI[sha256sum] = "caa1badbb530e109aa767c51d304659a510d427aaa26bd329bed693751b1e38b" diff --git a/bitbake/pcsc-lite_1.6.0.bb b/bitbake/pcsc-lite_1.6.0.bb new file mode 100644 index 0000000..e12599b --- /dev/null +++ b/bitbake/pcsc-lite_1.6.0.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "PC/SC Lite smart card framework and applications" +HOMEPAGE = "http://pcsclite.alioth.debian.org/" +LICENSE = "BSD" + +DEPENDS = "hal" +RDEPENDS_${PN} = "hal" + +SRC_URI = "https://alioth.debian.org/frs/download.php/3279/pcsc-lite-${PV}.tar.bz2 \ + file://pcscd.init " + +inherit autotools_stage update-rc.d + +INITSCRIPT_NAME = "pcscd" +INITSCRIPT_PARAMS = "defaults" + +EXTRA_OECONF = " \ + --enable-libusb \ + --disable-libhal \ + --enable-usbdropdir=${libdir}/pcsc/drivers \ + " + +do_install() { + oe_runmake DESTDIR="${D}" install + install -d "${D}/etc/init.d" + install -m 755 "${WORKDIR}/pcscd.init" "${D}/etc/init.d/pcscd" +} + +PACKAGES =+ "libpcsclite" + +FILES_libpcsclite = "${libdir}/libpcsclite.so.*" + +SRC_URI[md5sum] = "fc3fd0e83090ecc81e5b32700fa246c2" +SRC_URI[sha256sum] = "4d3f308e8a678315592628ec121061073fa2164c2710d964c14d9e9aa8fe8968"