libusb: add libtool patch from poky, safe for general consumption
authorKoen Kooi <koen@openembedded.org>
Mon, 2 Jun 2008 11:33:23 +0000 (11:33 +0000)
committerKoen Kooi <koen@openembedded.org>
Mon, 2 Jun 2008 11:33:23 +0000 (11:33 +0000)
packages/libusb/libusb/.mtn2git_empty [new file with mode: 0644]
packages/libusb/libusb/configure_fix.patch [new file with mode: 0644]
packages/libusb/libusb_0.1.12.bb

diff --git a/packages/libusb/libusb/.mtn2git_empty b/packages/libusb/libusb/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/libusb/libusb/configure_fix.patch b/packages/libusb/libusb/configure_fix.patch
new file mode 100644 (file)
index 0000000..f01f014
--- /dev/null
@@ -0,0 +1,17 @@
+For some reason libtool 2.2.2 can't cope with this, LT_LANG(C++) works though.
+
+RP - 14/4/08
+
+Index: libusb-0.1.12/configure.in
+===================================================================
+--- libusb-0.1.12.orig/configure.in    2008-04-14 22:08:26.000000000 +0100
++++ libusb-0.1.12/configure.in 2008-04-14 22:09:43.000000000 +0100
+@@ -149,7 +149,7 @@
+ fi
+ # Checks for programs.
+-AC_LANG_CPLUSPLUS
++AC_PROG_CXX
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_INSTALL
index 43c6ea9..3d6a213 100644 (file)
@@ -3,9 +3,10 @@ access to USB devices."
 HOMEPAGE = "http://libusb.sf.net"
 SECTION = "libs"
 LICENSE = "LGPL"
-PR = "r1"
+PR = "r3"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz \
+          file://configure_fix.patch;patch=1"
 
 S = "${WORKDIR}/libusb-${PV}"
 
@@ -14,7 +15,7 @@ inherit autotools pkgconfig binconfig lib_package
 PARALLEL_MAKE = ""
 EXTRA_OECONF = "--disable-build-docs"
 
-export CXXFLAGS += "-lstdc++"
+export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}"
 
 do_stage() {