libusb1_1.0.22.bb 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. LICENSE = "LGPLv2.1+"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
  7. BBCLASSEXTEND = "native nativesdk"
  8. SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \
  9. file://no-dll.patch \
  10. file://run-ptest \
  11. "
  12. SRC_URI[md5sum] = "466267889daead47674df933cea9cacb"
  13. SRC_URI[sha256sum] = "75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157"
  14. S = "${WORKDIR}/libusb-${PV}"
  15. inherit autotools pkgconfig ptest
  16. # Don't configure udev by default since it will cause a circular
  17. # dependecy with udev package, which depends on libusb
  18. EXTRA_OECONF = "--libdir=${base_libdir} --disable-udev"
  19. do_install_append() {
  20. install -d ${D}${libdir}
  21. if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
  22. mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
  23. fi
  24. }
  25. do_compile_ptest() {
  26. oe_runmake -C tests stress
  27. }
  28. do_install_ptest() {
  29. install -m 755 ${B}/tests/.libs/stress ${D}${PTEST_PATH}
  30. }
  31. FILES_${PN} += "${base_libdir}/*.so.*"
  32. FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la"