+inherit pkgconfig binconfig lib_package
+
+EXTRA_OECONF = "--libdir=${base_libdir}"
+
+SRC_URI += "file://obsolete_automake_macros.patch \
+ "
+
+do_patch () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/obsolete_automake_macros.patch| patch -s -p1 --fuzz=2
+ echo RLM end of do_patch
+}
\ No newline at end of file
--- /dev/null
+Upstream-status: Submitted [https://libusb.org/ticket/161]
+
+Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
+diff -Nurd libusb-compat-0.1.4/configure.ac libusb-compat-0.1.4/configure.ac
+--- libusb-compat-0.1.4/configure.ac 2012-04-24 08:45:46.000000000 +0300
++++ libusb-compat-0.1.4/configure.ac 2013-01-02 16:41:30.440115202 +0200
+@@ -1,7 +1,7 @@
+ AC_INIT([libusb-compat], [0.1.4])
+ AM_INIT_AUTOMAKE
+ AC_CONFIG_SRCDIR([libusb/core.c])
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+ AC_CONFIG_MACRO_DIR([m4])
+
+ AC_PREREQ([2.50])
+SRC_URI += "file://libusb.spec.patch \
+ "
+
+do_patch () {
+ echo RLM begining of do_patch
+ cat ${WORKDIR}/libusb.spec.patch | patch -s -p1 --fuzz=2
+ echo RLM end of do_patch
+}
\ No newline at end of file
--- /dev/null
+diff --git a/packaging/libusb.spec b/packaging/libusb.spec
+index f006611..39ce96a 100644
+--- a/packaging/libusb.spec
++++ b/packaging/libusb.spec
+@@ -43,8 +43,8 @@ rm -rf %{buildroot}
+
+ mkdir -p %{buildroot}/lib/
+ mv %{buildroot}/usr/lib/libusb-1.0.so.* %{buildroot}/lib/
+-ln -sf /lib/libusb-1.0.so.0 %{buildroot}/usr/lib/libusb-1.0.so.0
+-ln -sf /lib/libusb-1.0.so.0.1.0 %{buildroot}/usr/lib/libusb-1.0.so
++ln -sf ../../lib/libusb-1.0.so.0 %{buildroot}/usr/lib/libusb-1.0.so.0
++ln -sf ../../lib/libusb-1.0.so.0.1.0 %{buildroot}/usr/lib/libusb-1.0.so
+
+
+ %post -p /sbin/ldconfig