mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
libusb: bump version, convert to autotools, add -compat lib
Upgrade libusb to v1.0.3 and add new libusb-compat package for compatibility with old packages that expect the pre-1.0 API. Also update usb_modeswitch to depend on libusb-compat rather than libusb. Minor fixes by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>. Fixes bug #1093. Signed-off-by: Mike Crowe <mac@mcrowe.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
6cdcc4d7d8
commit
e237c99357
7
package/libusb-compat/Config.in
Normal file
7
package/libusb-compat/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_LIBUSB_COMPAT
|
||||
bool "libusb-compat"
|
||||
depends on BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
libusb-0.1 compatibility layer for libusb-1.0.
|
||||
|
||||
http://libusb.sourceforge.net/
|
||||
10
package/libusb-compat/libusb-compat-0.1.3-pkgconfig.patch
Normal file
10
package/libusb-compat/libusb-compat-0.1.3-pkgconfig.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- libusb-compat-0.1.3.orig/libusb.pc.in 2008-06-18 00:13:02.000000000 +0100
|
||||
+++ libusb-compat-0.1.3/libusb.pc.in 2009-09-16 12:06:50.000000000 +0100
|
||||
@@ -9,6 +9,7 @@ emulated_by=libusb-1.0
|
||||
Name: libusb
|
||||
Description: USB access library (libusb-1.0 compat wrapper)
|
||||
Version: @LIBUSB01_VERSION@
|
||||
+Requires: libusb-1.0
|
||||
Libs: -L${libdir} -lusb
|
||||
Cflags: -I${includedir}
|
||||
|
||||
14
package/libusb-compat/libusb-compat.mk
Normal file
14
package/libusb-compat/libusb-compat.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
#############################################################
|
||||
#
|
||||
# libusb-compat
|
||||
#
|
||||
#############################################################
|
||||
LIBUSB_COMPAT_VERSION = 0.1.3
|
||||
LIBUSB_COMPAT_SOURCE = libusb-compat-$(LIBUSB_COMPAT_VERSION).tar.bz2
|
||||
LIBUSB_COMPAT_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-$(LIBUSB_COMPAT_VERSION)
|
||||
LIBUSB_COMPAT_LIBTOOL_PATCH = NO
|
||||
LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb
|
||||
LIBUSB_COMPAT_INSTALL_STAGING = YES
|
||||
LIBUSB_COMPAT_INSTALL_TARGET = YES
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libusb-compat))
|
||||
Reference in New Issue
Block a user