diff options
Diffstat (limited to 'meta/recipes-support/libusb/libusb-compat_0.1.5.bb')
| -rw-r--r-- | meta/recipes-support/libusb/libusb-compat_0.1.5.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-support/libusb/libusb-compat_0.1.5.bb b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb new file mode 100644 index 0000000000..de93a36073 --- /dev/null +++ b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ | ||
| 2 | that aims to look, feel and behave exactly like libusb-0.1" | ||
| 3 | HOMEPAGE = "http://www.libusb.org/" | ||
| 4 | BUGTRACKER = "http://www.libusb.org/report" | ||
| 5 | SECTION = "libs" | ||
| 6 | |||
| 7 | LICENSE = "LGPLv2.1+" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" | ||
| 9 | DEPENDS = "libusb1" | ||
| 10 | |||
| 11 | # Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), | ||
| 12 | # so here libusb-0.1 is removed completely instead of adding virtual/libusb0. | ||
| 13 | # Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power | ||
| 14 | # consumption. | ||
| 15 | PROVIDES = "libusb virtual/libusb0" | ||
| 16 | BBCLASSEXTEND = "native nativesdk" | ||
| 17 | |||
| 18 | PE = "1" | ||
| 19 | |||
| 20 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" | ||
| 21 | |||
| 22 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" | ||
| 23 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" | ||
| 24 | |||
| 25 | inherit autotools pkgconfig binconfig lib_package | ||
| 26 | |||
| 27 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
| 28 | |||
| 29 | do_install_append() { | ||
| 30 | install -d ${D}${libdir} | ||
| 31 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
| 32 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
| 33 | fi | ||
| 34 | } | ||
