mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
angstrom-layers: add libusb1 and libusb-compat to meta-openembedded
libusb0 was not merged Signed-off-by: Koen Kooi <k-kooi@ti.com>
This commit is contained in:
parent
70d5fa3baa
commit
61f857489d
|
|
@ -0,0 +1,26 @@
|
|||
Index: libusb-compat-0.1.2/configure.ac
|
||||
===================================================================
|
||||
--- libusb-compat-0.1.2.orig/configure.ac 2009-06-11 22:49:08.000000000 +0000
|
||||
+++ libusb-compat-0.1.2/configure.ac 2009-06-26 21:44:08.000000000 +0000
|
||||
@@ -56,7 +56,7 @@
|
||||
CFLAGS="$saved_cflags"
|
||||
|
||||
AC_DEFINE([API_EXPORTED], [__attribute__((visibility("default")))], [Default visibility])
|
||||
-AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
|
||||
+AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow"
|
||||
AC_SUBST(AM_CFLAGS)
|
||||
|
||||
AC_CONFIG_FILES([libusb.pc] [libusb-config] [Makefile] [libusb/Makefile] [examples/Makefile])
|
||||
Index: libusb-compat-0.1.2/libusb/Makefile.am
|
||||
===================================================================
|
||||
--- libusb-compat-0.1.2.orig/libusb/Makefile.am 2008-06-17 23:13:02.000000000 +0000
|
||||
+++ libusb-compat-0.1.2/libusb/Makefile.am 2009-06-26 21:44:08.000000000 +0000
|
||||
@@ -2,7 +2,7 @@
|
||||
lib_LTLIBRARIES = libusb.la
|
||||
|
||||
libusb_la_SOURCES = core.c usbi.h
|
||||
-libusb_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS)
|
||||
+libusb_la_CFLAGS = $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS)
|
||||
libusb_la_LIBADD = $(LIBUSB_1_0_LIBS)
|
||||
libusb_la_LDFLAGS = -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE) \
|
||||
-release 0.1
|
||||
20
recipes-support/libusb/libusb-compat_0.1.3.bb
Normal file
20
recipes-support/libusb/libusb-compat_0.1.3.bb
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
DESCRIPTION = "libusb-0 compatibility library using libusb-1"
|
||||
HOMEPAGE = "http://libusb.sf.net"
|
||||
SECTION = "libs"
|
||||
LICENSE = "LGPLv2.1"
|
||||
PROVIDES = "virtual/libusb0"
|
||||
PE = "1"
|
||||
PR = "r0"
|
||||
|
||||
DEPENDS = "libusb1"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/${P}.tar.bz2;name=libusbcompat013tarbz2"
|
||||
SRC_URI[libusbcompat013tarbz2.md5sum] = "570ac2ea085b80d1f74ddc7c6a93c0eb"
|
||||
SRC_URI[libusbcompat013tarbz2.sha256sum] = "a590a03b6188030ee1ca1a0af55685fcde005ca807b963970f839be776031d94"
|
||||
|
||||
SRC_URI_append_nylon = " file://gcc-3-compatibility.patch"
|
||||
|
||||
inherit autotools binconfig lib_package
|
||||
|
||||
AUTOTOOLS_STAGE_PKGCONFIG = "1"
|
||||
EXTRA_OECONF = "--disable-build-docs"
|
||||
18
recipes-support/libusb/libusb1_1.0.8.bb
Normal file
18
recipes-support/libusb/libusb1_1.0.8.bb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
DESCRIPTION = "library to provide userspace access to USB devices"
|
||||
HOMEPAGE = "http://libusb.sf.net"
|
||||
SECTION = "libs"
|
||||
LICENSE = "LGPLv2.1"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2;name=tar \
|
||||
"
|
||||
S = "${WORKDIR}/libusb-${PV}"
|
||||
|
||||
inherit autotools
|
||||
|
||||
EXTRA_OECONF = "--disable-build-docs"
|
||||
|
||||
SRC_URI[tar.md5sum] = "37d34e6eaa69a4b645a19ff4ca63ceef"
|
||||
SRC_URI[tar.sha256sum] = "21d0d3a5710f7f4211c595102c6b9eccb42435a17a4f5bd2c3f4166ab1badba9"
|
||||
Loading…
Reference in New Issue
Block a user