diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-support/libusb | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-support/libusb')
3 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-support/libusb/libusb-compat_0.1.5.bb b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb new file mode 100644 index 0000000000..c316511b7f --- /dev/null +++ b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "libusb-0.1 compatibility layer for libusb1" | ||
2 | DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ | ||
3 | that aims to look, feel and behave exactly like libusb-0.1" | ||
4 | HOMEPAGE = "http://www.libusb.org/" | ||
5 | BUGTRACKER = "http://www.libusb.org/report" | ||
6 | SECTION = "libs" | ||
7 | |||
8 | LICENSE = "LGPLv2.1+" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" | ||
10 | DEPENDS = "libusb1" | ||
11 | |||
12 | # Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), | ||
13 | # so here libusb-0.1 is removed completely instead of adding virtual/libusb0. | ||
14 | # Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power | ||
15 | # consumption. | ||
16 | PROVIDES = "libusb virtual/libusb0" | ||
17 | BBCLASSEXTEND = "native nativesdk" | ||
18 | |||
19 | PE = "1" | ||
20 | |||
21 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" | ||
22 | |||
23 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" | ||
24 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" | ||
25 | |||
26 | inherit autotools pkgconfig binconfig lib_package | ||
27 | |||
28 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
29 | |||
30 | do_install_append() { | ||
31 | install -d ${D}${libdir} | ||
32 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
33 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
34 | fi | ||
35 | } | ||
diff --git a/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch b/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch new file mode 100644 index 0000000000..b1dd66c969 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1-1.0.9/obsolete_automake_macros.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Submitted [https://libusb.org/ticket/159] | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd libusb-1.0.9/configure.ac libusb-1.0.9/configure.ac | ||
5 | --- libusb-1.0.9/configure.ac 2012-04-20 09:44:27.000000000 +0300 | ||
6 | +++ libusb-1.0.9/configure.ac 2013-01-02 16:36:44.152121483 +0200 | ||
7 | @@ -31,7 +31,7 @@ | ||
8 | |||
9 | AC_CONFIG_SRCDIR([libusb/core.c]) | ||
10 | AC_CONFIG_MACRO_DIR([m4]) | ||
11 | -AM_CONFIG_HEADER([config.h]) | ||
12 | +AC_CONFIG_HEADERS([config.h]) | ||
13 | m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) | ||
14 | |||
15 | AC_PREREQ([2.50]) | ||
diff --git a/meta/recipes-support/libusb/libusb1_1.0.9.bb b/meta/recipes-support/libusb/libusb1_1.0.9.bb new file mode 100644 index 0000000000..d57425b3c5 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1_1.0.9.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Userspace library to access USB (version 1.0)" | ||
2 | HOMEPAGE = "http://libusb.sf.net" | ||
3 | BUGTRACKER = "http://www.libusb.org/report" | ||
4 | SECTION = "libs" | ||
5 | |||
6 | LICENSE = "LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | ||
8 | |||
9 | BBCLASSEXTEND = "native nativesdk" | ||
10 | |||
11 | PR = "r1" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \ | ||
14 | file://obsolete_automake_macros.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "7f5a02375ad960d4e33a6dae7d63cfcb" | ||
18 | SRC_URI[sha256sum] = "e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b" | ||
19 | |||
20 | S = "${WORKDIR}/libusb-${PV}" | ||
21 | |||
22 | inherit autotools pkgconfig | ||
23 | |||
24 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
25 | |||
26 | do_install_append() { | ||
27 | install -d ${D}${libdir} | ||
28 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
29 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
30 | fi | ||
31 | } | ||
32 | |||
33 | FILES_${PN} += "${base_libdir}/*.so.*" | ||
34 | |||
35 | FILES_${PN}-dev += "${base_libdir}/*.so ${base_libdir}/*.la" | ||