diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-01 12:24:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-03 11:06:19 +0100 |
commit | 0031d329c07fad64f47af7408f545886ede36abc (patch) | |
tree | e7a4f6a7c2b2411bb959a65c67e0e8495ffb07d6 /meta/recipes-support/libusb/libusb1_1.0.28.bb | |
parent | a6bf2569e5f2d02b7dade908dfa9b09413205907 (diff) | |
download | poky-0031d329c07fad64f47af7408f545886ede36abc.tar.gz |
libusb1: upgrade 1.0.27 -> 1.0.28
(From OE-Core rev: 808c9bba04e589e635deae43fe543c820b8d24be)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libusb/libusb1_1.0.28.bb')
-rw-r--r-- | meta/recipes-support/libusb/libusb1_1.0.28.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-support/libusb/libusb1_1.0.28.bb b/meta/recipes-support/libusb/libusb1_1.0.28.bb new file mode 100644 index 0000000000..51287499b7 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1_1.0.28.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Userspace library to access USB (version 1.0)" | ||
2 | DESCRIPTION = "A cross-platform library to access USB devices from Linux, \ | ||
3 | macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace." | ||
4 | HOMEPAGE = "https://libusb.info" | ||
5 | BUGTRACKER = "http://www.libusb.org/report" | ||
6 | SECTION = "libs" | ||
7 | |||
8 | LICENSE = "LGPL-2.1-or-later" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | ||
10 | |||
11 | CVE_PRODUCT = "libusb" | ||
12 | |||
13 | BBCLASSEXTEND = "native nativesdk" | ||
14 | |||
15 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libusb-${PV}.tar.bz2 \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | |||
19 | GITHUB_BASE_URI = "https://github.com/libusb/libusb/releases" | ||
20 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" | ||
21 | |||
22 | SRC_URI[sha256sum] = "966bb0d231f94a474eaae2e67da5ec844d3527a1f386456394ff432580634b29" | ||
23 | |||
24 | S = "${WORKDIR}/libusb-${PV}" | ||
25 | |||
26 | inherit autotools pkgconfig ptest github-releases | ||
27 | |||
28 | PACKAGECONFIG:class-target ??= "udev" | ||
29 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" | ||
30 | |||
31 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
32 | |||
33 | do_install:append() { | ||
34 | install -d ${D}${libdir} | ||
35 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
36 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
37 | fi | ||
38 | } | ||
39 | |||
40 | do_compile_ptest() { | ||
41 | oe_runmake -C tests stress | ||
42 | } | ||
43 | |||
44 | do_install_ptest() { | ||
45 | install -m 755 ${B}/tests/stress ${D}${PTEST_PATH} | ||
46 | } | ||
47 | |||
48 | FILES:${PN} += "${base_libdir}/*.so.*" | ||
49 | |||
50 | FILES:${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" | ||