1*4882a593SmuzhiyunSUMMARY = "libusb-0.1 compatibility layer for libusb1" 2*4882a593SmuzhiyunDESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ 3*4882a593Smuzhiyunthat aims to look, feel and behave exactly like libusb-0.1" 4*4882a593SmuzhiyunHOMEPAGE = "http://www.libusb.org/" 5*4882a593SmuzhiyunBUGTRACKER = "http://www.libusb.org/report" 6*4882a593SmuzhiyunSECTION = "libs" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later" 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" 10*4882a593SmuzhiyunDEPENDS = "libusb1" 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun# Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), 13*4882a593Smuzhiyun# so here libusb-0.1 is removed completely instead of adding virtual/libusb0. 14*4882a593Smuzhiyun# Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power 15*4882a593Smuzhiyun# consumption. 16*4882a593SmuzhiyunPROVIDES = "libusb virtual/libusb0" 17*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunPE = "1" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunSRC_URI = " \ 22*4882a593Smuzhiyun git://github.com/libusb/libusb-compat-0.1.git;protocol=https;branch=master \ 23*4882a593Smuzhiyun file://0001-usb.h-Include-sys-types.h.patch \ 24*4882a593Smuzhiyun" 25*4882a593SmuzhiyunSRCREV = "4a27760ec5954ec8605e052a3207afbe0979eeef" 26*4882a593SmuzhiyunS = "${WORKDIR}/git" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/libusb/libusb-compat-0.1/releases" 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunBINCONFIG = "${bindir}/libusb-config" 31*4882a593Smuzhiyun 32*4882a593Smuzhiyuninherit autotools pkgconfig binconfig-disabled lib_package 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunEXTRA_OECONF = "--libdir=${base_libdir}" 35*4882a593Smuzhiyun 36*4882a593Smuzhiyundo_install:append() { 37*4882a593Smuzhiyun install -d ${D}${libdir} 38*4882a593Smuzhiyun if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then 39*4882a593Smuzhiyun mv ${D}${base_libdir}/pkgconfig ${D}${libdir} 40*4882a593Smuzhiyun fi 41*4882a593Smuzhiyun} 42