Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Userspace library to access USB (version 1.0)" |
| 2 | HOMEPAGE = "http://libusb.sf.net" |
| 3 | BUGTRACKER = "http://www.libusb.org/report" |
| 4 | SECTION = "libs" |
| 5 | |
| 6 | LICENSE = "LGPLv2.1+" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" |
| 8 | |
| 9 | BBCLASSEXTEND = "native nativesdk" |
| 10 | |
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \ |
| 12 | file://no-dll.patch \ |
| 13 | file://run-ptest \ |
| 14 | " |
| 15 | |
| 16 | SRC_URI[md5sum] = "466267889daead47674df933cea9cacb" |
| 17 | SRC_URI[sha256sum] = "75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157" |
| 18 | |
| 19 | S = "${WORKDIR}/libusb-${PV}" |
| 20 | |
| 21 | inherit autotools pkgconfig ptest |
| 22 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | PACKAGECONFIG_class-target ??= "udev" |
| 24 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" |
| 25 | |
| 26 | EXTRA_OECONF = "--libdir=${base_libdir}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | |
| 28 | do_install_append() { |
| 29 | install -d ${D}${libdir} |
| 30 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then |
| 31 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} |
| 32 | fi |
| 33 | } |
| 34 | |
| 35 | do_compile_ptest() { |
| 36 | oe_runmake -C tests stress |
| 37 | } |
| 38 | |
| 39 | do_install_ptest() { |
| 40 | install -m 755 ${B}/tests/.libs/stress ${D}${PTEST_PATH} |
| 41 | } |
| 42 | |
| 43 | FILES_${PN} += "${base_libdir}/*.so.*" |
| 44 | |
| 45 | FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" |