diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-07 11:13:20 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-07 11:13:20 +0000 |
commit | 5be917f9d14d67a5ea8d363a9986859c546128f5 (patch) | |
tree | 50579fe84855771b26b5fc58fca36628e48f825d /meta/packages | |
parent | e7e2009277b26913c9ac666fccef35bbd9e24f81 (diff) | |
download | poky-5be917f9d14d67a5ea8d363a9986859c546128f5.tar.gz |
libusb: Add versions required for recent bluez
Diffstat (limited to 'meta/packages')
4 files changed, 95 insertions, 0 deletions
diff --git a/meta/packages/libusb/libusb-compat-0.0.9+0.1.0-beta2/0.1.0-beta1-gcc3.4-fix.patch b/meta/packages/libusb/libusb-compat-0.0.9+0.1.0-beta2/0.1.0-beta1-gcc3.4-fix.patch new file mode 100644 index 0000000000..501ba3fb29 --- /dev/null +++ b/meta/packages/libusb/libusb-compat-0.0.9+0.1.0-beta2/0.1.0-beta1-gcc3.4-fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: libusb-compat-0.1.0-beta1/configure.ac | ||
2 | =================================================================== | ||
3 | --- libusb-compat-0.1.0-beta1.orig/configure.ac 2008-07-21 13:14:42.000000000 +0200 | ||
4 | +++ libusb-compat-0.1.0-beta1/configure.ac 2008-07-21 13:15:03.000000000 +0200 | ||
5 | @@ -55,7 +55,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]) | ||
diff --git a/meta/packages/libusb/libusb-compat_0.0.9+0.1.0-beta2.bb b/meta/packages/libusb/libusb-compat_0.0.9+0.1.0-beta2.bb new file mode 100644 index 0000000000..34cc1ac50d --- /dev/null +++ b/meta/packages/libusb/libusb-compat_0.0.9+0.1.0-beta2.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "libusb is a library to provide userspace \ | ||
2 | access to USB devices." | ||
3 | HOMEPAGE = "http://libusb.sf.net" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "LGPL" | ||
6 | |||
7 | PE = "1" | ||
8 | PR = "r0" | ||
9 | |||
10 | DEPENDS = "libusb1" | ||
11 | |||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-0.1.0-beta2.tar.bz2 \ | ||
13 | file://0.1.0-beta1-gcc3.4-fix.patch;patch=1 \ | ||
14 | " | ||
15 | |||
16 | S = "${WORKDIR}/libusb-compat-0.1.0-beta2" | ||
17 | |||
18 | inherit autotools pkgconfig binconfig lib_package | ||
19 | |||
20 | PARALLEL_MAKE = "" | ||
21 | EXTRA_OECONF = "--disable-build-docs" | ||
22 | |||
23 | export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}" | ||
24 | |||
25 | do_stage() { | ||
26 | autotools_stage_all | ||
27 | install -m 755 ${S}/libusb-config ${STAGING_BINDIR} | ||
28 | # can we get rid of that? wouldn't a sed statement do as well? | ||
29 | sed -i 's:\-L${libdir} :-L${STAGING_LIBDIR} :' ${STAGING_BINDIR}/libusb-config | ||
30 | |||
31 | if [ "${STAGING_BINDIR}" != "${STAGING_BINDIR_CROSS}" ]; then | ||
32 | install -d ${STAGING_BINDIR_CROSS}/ | ||
33 | mv ${STAGING_BINDIR}/libusb-config ${STAGING_BINDIR_CROSS}/libusb-config | ||
34 | fi | ||
35 | } | ||
36 | |||
37 | PACKAGES =+ "libusbpp" | ||
38 | |||
39 | FILES_libusbpp = "${libdir}/libusbpp*.so.*" | ||
diff --git a/meta/packages/libusb/libusb1-0.9.2/0.9.0-gcc3.4-compat-fix.patch b/meta/packages/libusb/libusb1-0.9.2/0.9.0-gcc3.4-compat-fix.patch new file mode 100644 index 0000000000..1b06945d1a --- /dev/null +++ b/meta/packages/libusb/libusb1-0.9.2/0.9.0-gcc3.4-compat-fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: libusb-0.9.0/configure.ac | ||
2 | =================================================================== | ||
3 | --- libusb-0.9.0.orig/configure.ac 2008-07-21 08:04:03.000000000 +0200 | ||
4 | +++ libusb-0.9.0/configure.ac 2008-07-21 08:04:16.000000000 +0200 | ||
5 | @@ -62,7 +62,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-1.0.pc] [Makefile] [libusb/Makefile] [examples/Makefile] [doc/Makefile]) | ||
diff --git a/meta/packages/libusb/libusb1_0.9.2.bb b/meta/packages/libusb/libusb1_0.9.2.bb new file mode 100644 index 0000000000..2c144f053d --- /dev/null +++ b/meta/packages/libusb/libusb1_0.9.2.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "libusb is a library to provide userspace \ | ||
2 | access to USB devices." | ||
3 | HOMEPAGE = "http://libusb.sf.net" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "LGPL" | ||
6 | |||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "\ | ||
10 | ${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \ | ||
11 | file://0.9.0-gcc3.4-compat-fix.patch;patch=1 \ | ||
12 | " | ||
13 | S = "${WORKDIR}/libusb-${PV}" | ||
14 | |||
15 | inherit autotools pkgconfig binconfig lib_package | ||
16 | |||
17 | PARALLEL_MAKE = "" | ||
18 | EXTRA_OECONF = "--disable-build-docs" | ||
19 | |||
20 | export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}" | ||
21 | |||
22 | LIBTOOL = "${HOST_SYS}-libtool" | ||
23 | EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'" | ||
24 | |||
25 | do_stage() { | ||
26 | autotools_stage_all | ||
27 | } | ||
28 | |||
29 | PACKAGES =+ "libusbpp" | ||
30 | FILES_libusbpp = "${libdir}/libusbpp*.so.*" | ||