diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-01 15:23:06 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2010-11-01 20:07:13 +0100 |
commit | 61f857489d2324aaafc4d0d5a5c72f8cf2bab542 (patch) | |
tree | 09cfce4c6ea253f26b3d5fb39758d05341dbb57c | |
parent | 70d5fa3baa9d48adf45a2135f3d2f6adc0356b0b (diff) | |
download | meta-openembedded-61f857489d2324aaafc4d0d5a5c72f8cf2bab542.tar.gz |
angstrom-layers: add libusb1 and libusb-compat to meta-openembedded
libusb0 was not merged
Signed-off-by: Koen Kooi <k-kooi@ti.com>
-rw-r--r-- | recipes-support/libusb/libusb-compat-0.1.3/gcc-3-compatibility.patch | 26 | ||||
-rw-r--r-- | recipes-support/libusb/libusb-compat_0.1.3.bb | 20 | ||||
-rw-r--r-- | recipes-support/libusb/libusb1_1.0.8.bb | 18 |
3 files changed, 64 insertions, 0 deletions
diff --git a/recipes-support/libusb/libusb-compat-0.1.3/gcc-3-compatibility.patch b/recipes-support/libusb/libusb-compat-0.1.3/gcc-3-compatibility.patch new file mode 100644 index 0000000000..e6142f735c --- /dev/null +++ b/recipes-support/libusb/libusb-compat-0.1.3/gcc-3-compatibility.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Index: libusb-compat-0.1.2/configure.ac | ||
2 | =================================================================== | ||
3 | --- libusb-compat-0.1.2.orig/configure.ac 2009-06-11 22:49:08.000000000 +0000 | ||
4 | +++ libusb-compat-0.1.2/configure.ac 2009-06-26 21:44:08.000000000 +0000 | ||
5 | @@ -56,7 +56,7 @@ | ||
6 | CFLAGS="$saved_cflags" | ||
7 | |||
8 | AC_DEFINE([API_EXPORTED], [__attribute__((visibility("default")))], [Default visibility]) | ||
9 | -AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow" | ||
10 | +AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow" | ||
11 | AC_SUBST(AM_CFLAGS) | ||
12 | |||
13 | AC_CONFIG_FILES([libusb.pc] [libusb-config] [Makefile] [libusb/Makefile] [examples/Makefile]) | ||
14 | Index: libusb-compat-0.1.2/libusb/Makefile.am | ||
15 | =================================================================== | ||
16 | --- libusb-compat-0.1.2.orig/libusb/Makefile.am 2008-06-17 23:13:02.000000000 +0000 | ||
17 | +++ libusb-compat-0.1.2/libusb/Makefile.am 2009-06-26 21:44:08.000000000 +0000 | ||
18 | @@ -2,7 +2,7 @@ | ||
19 | lib_LTLIBRARIES = libusb.la | ||
20 | |||
21 | libusb_la_SOURCES = core.c usbi.h | ||
22 | -libusb_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS) | ||
23 | +libusb_la_CFLAGS = $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS) | ||
24 | libusb_la_LIBADD = $(LIBUSB_1_0_LIBS) | ||
25 | libusb_la_LDFLAGS = -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE) \ | ||
26 | -release 0.1 | ||
diff --git a/recipes-support/libusb/libusb-compat_0.1.3.bb b/recipes-support/libusb/libusb-compat_0.1.3.bb new file mode 100644 index 0000000000..0237ff46d2 --- /dev/null +++ b/recipes-support/libusb/libusb-compat_0.1.3.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "libusb-0 compatibility library using libusb-1" | ||
2 | HOMEPAGE = "http://libusb.sf.net" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | PROVIDES = "virtual/libusb0" | ||
6 | PE = "1" | ||
7 | PR = "r0" | ||
8 | |||
9 | DEPENDS = "libusb1" | ||
10 | |||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/${P}.tar.bz2;name=libusbcompat013tarbz2" | ||
12 | SRC_URI[libusbcompat013tarbz2.md5sum] = "570ac2ea085b80d1f74ddc7c6a93c0eb" | ||
13 | SRC_URI[libusbcompat013tarbz2.sha256sum] = "a590a03b6188030ee1ca1a0af55685fcde005ca807b963970f839be776031d94" | ||
14 | |||
15 | SRC_URI_append_nylon = " file://gcc-3-compatibility.patch" | ||
16 | |||
17 | inherit autotools binconfig lib_package | ||
18 | |||
19 | AUTOTOOLS_STAGE_PKGCONFIG = "1" | ||
20 | EXTRA_OECONF = "--disable-build-docs" | ||
diff --git a/recipes-support/libusb/libusb1_1.0.8.bb b/recipes-support/libusb/libusb1_1.0.8.bb new file mode 100644 index 0000000000..360dce5b7b --- /dev/null +++ b/recipes-support/libusb/libusb1_1.0.8.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "library to provide userspace access to USB devices" | ||
2 | HOMEPAGE = "http://libusb.sf.net" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | |||
6 | PR = "r0" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | ${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2;name=tar \ | ||
10 | " | ||
11 | S = "${WORKDIR}/libusb-${PV}" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | EXTRA_OECONF = "--disable-build-docs" | ||
16 | |||
17 | SRC_URI[tar.md5sum] = "37d34e6eaa69a4b645a19ff4ca63ceef" | ||
18 | SRC_URI[tar.sha256sum] = "21d0d3a5710f7f4211c595102c6b9eccb42435a17a4f5bd2c3f4166ab1badba9" | ||