2010-07-16 04:48:08 +00:00
|
|
|
DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \
|
|
|
|
that aims to look, feel and behave exactly like libusb-0.1"
|
|
|
|
HOMEPAGE = "http://www.libusb.org/"
|
|
|
|
BUGTRACKER = "http://www.libusb.org/report"
|
|
|
|
SECTION = "libs"
|
|
|
|
|
|
|
|
LICENSE = "LGPLv2.1+"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423"
|
|
|
|
DEPENDS = "libusb1"
|
|
|
|
|
|
|
|
# Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0),
|
|
|
|
# so here libusb-0.1 is removed completely instead of adding virtual/libusb0.
|
|
|
|
# Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power
|
|
|
|
# consumption.
|
2012-03-26 12:27:54 +00:00
|
|
|
PROVIDES = "libusb virtual/libusb0"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2010-07-16 04:48:08 +00:00
|
|
|
|
|
|
|
PE = "1"
|
|
|
|
|
2013-06-12 06:00:49 +00:00
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2"
|
2010-07-16 04:48:08 +00:00
|
|
|
|
2013-06-12 06:00:49 +00:00
|
|
|
SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4"
|
|
|
|
SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2012-03-26 12:27:54 +00:00
|
|
|
inherit autotools pkgconfig binconfig lib_package
|
2012-01-05 06:30:34 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF = "--libdir=${base_libdir}"
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${libdir}
|
2012-02-06 13:42:36 +00:00
|
|
|
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
|
|
|
mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
|
|
|
|
fi
|
2012-01-05 06:30:34 +00:00
|
|
|
}
|