summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-07 11:13:20 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-07 11:13:20 +0000
commit5be917f9d14d67a5ea8d363a9986859c546128f5 (patch)
tree50579fe84855771b26b5fc58fca36628e48f825d /meta/packages
parente7e2009277b26913c9ac666fccef35bbd9e24f81 (diff)
downloadpoky-5be917f9d14d67a5ea8d363a9986859c546128f5.tar.gz
libusb: Add versions required for recent bluez
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/libusb/libusb-compat-0.0.9+0.1.0-beta2/0.1.0-beta1-gcc3.4-fix.patch13
-rw-r--r--meta/packages/libusb/libusb-compat_0.0.9+0.1.0-beta2.bb39
-rw-r--r--meta/packages/libusb/libusb1-0.9.2/0.9.0-gcc3.4-compat-fix.patch13
-rw-r--r--meta/packages/libusb/libusb1_0.9.2.bb30
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 @@
1Index: 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 @@
1DESCRIPTION = "libusb is a library to provide userspace \
2access to USB devices."
3HOMEPAGE = "http://libusb.sf.net"
4SECTION = "libs"
5LICENSE = "LGPL"
6
7PE = "1"
8PR = "r0"
9
10DEPENDS = "libusb1"
11
12SRC_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
16S = "${WORKDIR}/libusb-compat-0.1.0-beta2"
17
18inherit autotools pkgconfig binconfig lib_package
19
20PARALLEL_MAKE = ""
21EXTRA_OECONF = "--disable-build-docs"
22
23export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}"
24
25do_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
37PACKAGES =+ "libusbpp"
38
39FILES_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 @@
1Index: 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 @@
1DESCRIPTION = "libusb is a library to provide userspace \
2access to USB devices."
3HOMEPAGE = "http://libusb.sf.net"
4SECTION = "libs"
5LICENSE = "LGPL"
6
7PR = "r0"
8
9SRC_URI = "\
10 ${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \
11 file://0.9.0-gcc3.4-compat-fix.patch;patch=1 \
12"
13S = "${WORKDIR}/libusb-${PV}"
14
15inherit autotools pkgconfig binconfig lib_package
16
17PARALLEL_MAKE = ""
18EXTRA_OECONF = "--disable-build-docs"
19
20export CXXFLAGS += "-lstdc++ -I${STAGING_INCDIR}"
21
22LIBTOOL = "${HOST_SYS}-libtool"
23EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
24
25do_stage() {
26 autotools_stage_all
27}
28
29PACKAGES =+ "libusbpp"
30FILES_libusbpp = "${libdir}/libusbpp*.so.*"