Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "libusb-0.1 compatibility layer for libusb1" |
| 2 | DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ |
| 3 | that aims to look, feel and behave exactly like libusb-0.1" |
| 4 | HOMEPAGE = "http://www.libusb.org/" |
| 5 | BUGTRACKER = "http://www.libusb.org/report" |
| 6 | SECTION = "libs" |
| 7 | |
| 8 | LICENSE = "LGPLv2.1+" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" |
| 10 | DEPENDS = "libusb1" |
| 11 | |
| 12 | # Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), |
| 13 | # so here libusb-0.1 is removed completely instead of adding virtual/libusb0. |
| 14 | # Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power |
| 15 | # consumption. |
| 16 | PROVIDES = "libusb virtual/libusb0" |
| 17 | BBCLASSEXTEND = "native nativesdk" |
| 18 | |
| 19 | PE = "1" |
| 20 | |
Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 21 | SRC_URI = " \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 22 | git://github.com/libusb/libusb-compat-0.1.git;protocol=https;branch=master \ |
Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 23 | file://0001-usb.h-Include-sys-types.h.patch \ |
| 24 | " |
| 25 | SRCREV = "4a27760ec5954ec8605e052a3207afbe0979eeef" |
| 26 | S = "${WORKDIR}/git" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 28 | UPSTREAM_CHECK_URI = "https://github.com/libusb/libusb-compat-0.1/releases" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 29 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | BINCONFIG = "${bindir}/libusb-config" |
| 31 | |
| 32 | inherit autotools pkgconfig binconfig-disabled lib_package |
| 33 | |
| 34 | EXTRA_OECONF = "--libdir=${base_libdir}" |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | do_install:append() { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | install -d ${D}${libdir} |
| 38 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then |
| 39 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} |
| 40 | fi |
| 41 | } |