Patchwork [054/131] libusb1: Add version 1.0.9

login
register
mail settings
Submitter christian.braunersorensen@prevas.dk
Date Jan. 14, 2014, 12:33 p.m.
Message ID <7c66fe0e5088e5fa1909d53729370c7731fe181a.1389702652.git.christian.braunersorensen@prevas.dk>
Download mbox | patch
Permalink /patch/310637/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

christian.braunersorensen@prevas.dk - Jan. 14, 2014, 12:33 p.m.
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 .../libusb/libusb1-1.0.9/fix_missing_librt.patch   | 11 ++++++++++
 recipes/libusb/libusb1_1.0.9.oe                    | 25 ++++++++++++++++++++++
 recipes/libusb/libusb1_1.0.9.oe.sig                |  1 +
 3 files changed, 37 insertions(+)
 create mode 100644 recipes/libusb/libusb1-1.0.9/fix_missing_librt.patch
 create mode 100644 recipes/libusb/libusb1_1.0.9.oe
 create mode 100644 recipes/libusb/libusb1_1.0.9.oe.sig

Patch

diff --git a/recipes/libusb/libusb1-1.0.9/fix_missing_librt.patch b/recipes/libusb/libusb1-1.0.9/fix_missing_librt.patch
new file mode 100644
index 0000000..193c36f
--- /dev/null
+++ b/recipes/libusb/libusb1-1.0.9/fix_missing_librt.patch
@@ -0,0 +1,11 @@ 
+--- libusb-1.0.9/libusb-1.0.pc.in.orig	2014-01-08 09:58:53.347028290 +0100
++++ libusb-1.0.9/libusb-1.0.pc.in	2014-01-08 09:59:02.667028155 +0100
+@@ -6,7 +6,7 @@
+ Name: libusb-1.0
+ Description: C API for USB device access from Linux, Mac OS X, OpenBSD, NetBSD and Windows userspace
+ Version: @VERSION@
+-Libs: -L${libdir} -lusb-1.0
++Libs: -L${libdir} -lusb-1.0 -lrt
+ Libs.private: @PC_LIBS_PRIVATE@
+ Cflags: -I${includedir}/libusb-1.0
+ 
diff --git a/recipes/libusb/libusb1_1.0.9.oe b/recipes/libusb/libusb1_1.0.9.oe
new file mode 100644
index 0000000..4722030
--- /dev/null
+++ b/recipes/libusb/libusb1_1.0.9.oe
@@ -0,0 +1,25 @@ 
+DESCRIPTION = "library to provide userspace access to USB devices"
+HOMEPAGE = "http://libusb.sf.net"
+LICENSE = "LGPLv2.1"
+
+COMPATIBLE_HOST_ARCHS = ".*linux"
+
+inherit autotools library
+
+require conf/fetch/sourceforge.conf
+SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2;name=tar"
+SRC_URI += "file://fix_missing_librt.patch"
+
+S = "${SRCDIR}/libusb-${PV}"
+
+DEPENDS = "libpthread"
+
+EXTRA_OECONF = "--disable-build-docs"
+
+DEPENDS_${PN} += "libpthread libc librt"
+RDEPENDS_${PN} += "libpthread libc librt"
+
+#MAJOR_VERSION = "${@'${PV}'.split('.')[0]}"
+#PROVIDES_${PN} += "libusb-${MAJOR_VERSION}.0 libusb-${MAJOR_VERSION}.0-0"
+LIBRARY_NAME = "libusb-1.0"
+LIBRARY_VERSION = "0"
diff --git a/recipes/libusb/libusb1_1.0.9.oe.sig b/recipes/libusb/libusb1_1.0.9.oe.sig
new file mode 100644
index 0000000..8bdd08e
--- /dev/null
+++ b/recipes/libusb/libusb1_1.0.9.oe.sig
@@ -0,0 +1 @@ 
+025582ff2f6216e2dbc2610ae16b2e073e1b3346  libusb-1.0.9.tar.bz2