blob: a20e1fcdb83fb65365adf83e35f983407d704913 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Userspace library to access USB (version 1.0)"
2HOMEPAGE = "http://libusb.sf.net"
3BUGTRACKER = "http://www.libusb.org/report"
4SECTION = "libs"
5
6LICENSE = "LGPLv2.1+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
8
9BBCLASSEXTEND = "native nativesdk"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \
12 "
13
14SRC_URI[md5sum] = "f9e2bb5879968467e5ca756cb4e1fa7e"
15SRC_URI[sha256sum] = "6c502c816002f90d4f76050a6429c3a7e0d84204222cbff2dce95dd773ba6840"
16
17S = "${WORKDIR}/libusb-${PV}"
18
19inherit autotools pkgconfig
20
21# Don't configure udev by default since it will cause a circular
22# dependecy with udev package, which depends on libusb
23EXTRA_OECONF = "--libdir=${base_libdir} --disable-udev"
24
25do_install_append() {
26 install -d ${D}${libdir}
27 if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
28 mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
29 fi
30}
31
32FILES_${PN} += "${base_libdir}/*.so.*"
33
34FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la"