gnome-screensaver 2.28.3: fix up configure as well now
[openembedded.git] / recipes / libusb / libusb_0.1.12.bb
blobae62cc2b02d983481f8d66b7014579d6a0287dcb
1 DESCRIPTION = "libusb is a library to provide userspace access to USB devices."
2 HOMEPAGE = "http://libusb.sf.net"
3 SECTION = "libs"
4 LICENSE = "LGPL"
5 PROVIDES = "virtual/libusb0"
6 PR = "r4"
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
15 PARALLEL_MAKE = ""
16 EXTRA_OECONF = "--disable-build-docs"
18 export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}"
20 do_stage() {
22 autotools_stage_all
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.*"