diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
|---|---|---|
| committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
| commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
| tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-support/libusb | |
| download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz | |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-support/libusb')
3 files changed, 84 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..de93a36073 --- /dev/null +++ b/meta/recipes-support/libusb/libusb-compat_0.1.5.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | DESCRIPTION = "libusb-0.1 compatible layer for libusb1, a drop-in replacement \ | ||
| 2 | that aims to look, feel and behave exactly like libusb-0.1" | ||
| 3 | HOMEPAGE = "http://www.libusb.org/" | ||
| 4 | BUGTRACKER = "http://www.libusb.org/report" | ||
| 5 | SECTION = "libs" | ||
| 6 | |||
| 7 | LICENSE = "LGPLv2.1+" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f2ac5f3ac4835e8f91324a26a590a423" | ||
| 9 | DEPENDS = "libusb1" | ||
| 10 | |||
| 11 | # Few packages are known not to work with libusb-compat (e.g. libmtp-1.0.0), | ||
| 12 | # so here libusb-0.1 is removed completely instead of adding virtual/libusb0. | ||
| 13 | # Besides, libusb-0.1 uses a per 1ms polling that hurts a lot to power | ||
| 14 | # consumption. | ||
| 15 | PROVIDES = "libusb virtual/libusb0" | ||
| 16 | BBCLASSEXTEND = "native nativesdk" | ||
| 17 | |||
| 18 | PE = "1" | ||
| 19 | |||
| 20 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2" | ||
| 21 | |||
| 22 | SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4" | ||
| 23 | SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a" | ||
| 24 | |||
| 25 | inherit autotools pkgconfig binconfig lib_package | ||
| 26 | |||
| 27 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
| 28 | |||
| 29 | do_install_append() { | ||
| 30 | install -d ${D}${libdir} | ||
| 31 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
| 32 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
| 33 | fi | ||
| 34 | } | ||
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..012ac275dd --- /dev/null +++ b/meta/recipes-support/libusb/libusb1_1.0.9.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | DESCRIPTION = "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" | ||
