1 DESCRIPTION
= "libusb is a library to provide userspace access to USB devices."
2 HOMEPAGE
= "http://libusb.sf.net"
5 PROVIDES
= "virtual/libusb0"
8 SRC_URI
= "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz \
9 file://configure_fix.patch;patch=1"
11 S
= "${WORKDIR}/libusb-${PV}"
13 inherit autotools pkgconfig binconfig lib_package
16 EXTRA_OECONF
= "--disable-build-docs"
18 export CXXFLAGS
+= "-lstdc++ -I${STAGING_INCDIR}"
23 install
-m
755 $
{S
}/libusb
-config $
{STAGING_BINDIR
}
24 # can we get rid of that? wouldn't a sed statement do as well?
25 sed
-i 's
:\
-L$
{libdir
} :-L$
{STAGING_LIBDIR
} :' $
{STAGING_BINDIR
}/libusb
-config
27 if [ "${STAGING_BINDIR}" != "${STAGING_BINDIR_CROSS}" ]; then
28 install
-d $
{STAGING_BINDIR_CROSS
}/
29 mv $
{STAGING_BINDIR
}/libusb
-config $
{STAGING_BINDIR_CROSS
}/libusb
-config
34 PACKAGES
=+ "libusbpp"
36 FILES_libusbpp
= "${libdir}/libusbpp*.so.*"