added my Recipes
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
From 4e8eab047a43e48bd541f2887104299fcfb99b0d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Tue, 27 Nov 2018 12:03:20 +0100
|
||||
Subject: [PATCH] Use native mtp-hotplug
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
Makefile.am | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 7b7e06b..083e1c6 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -16,16 +16,16 @@ hwdb_DATA=69-libmtp.hwdb
|
||||
noinst_DATA=libmtp.usermap libmtp.fdi
|
||||
|
||||
libmtp.usermap: util/mtp-hotplug
|
||||
- util/mtp-hotplug > libmtp.usermap
|
||||
+ mtp-hotplug > libmtp.usermap
|
||||
|
||||
@UDEV_RULES@: util/mtp-hotplug
|
||||
- util/mtp-hotplug -u -p"@UDEV@" @UDEV_GROUP@ @UDEV_MODE@ > @UDEV_RULES@
|
||||
+ mtp-hotplug -u -p"@UDEV@" @UDEV_GROUP@ @UDEV_MODE@ > @UDEV_RULES@
|
||||
|
||||
libmtp.fdi: util/mtp-hotplug
|
||||
- util/mtp-hotplug -H > libmtp.fdi
|
||||
+ mtp-hotplug -H > libmtp.fdi
|
||||
|
||||
$(hwdb_DATA): util/mtp-hotplug
|
||||
- util/mtp-hotplug -w > $(hwdb_DATA)
|
||||
+ mtp-hotplug -w > $(hwdb_DATA)
|
||||
|
||||
CLEANFILES = libmtp.usermap @UDEV_RULES@ libmtp.fdi libmtp.hwdb
|
||||
endif
|
||||
--
|
||||
2.14.5
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
# TODO: include debian's mtp-tools man page (needs xsltproc-native and
|
||||
# docbook-xsl-native, or we pregenerate it), add support for doxygen
|
||||
# generation fully with -natives
|
||||
DESCRIPTION = "libmtp is an Initiator implementation of the Media Transfer \
|
||||
Protocol (MTP) in the form of a library suitable primarily for POSIX \
|
||||
compliant operating systems"
|
||||
SUMMARY = "libmtp is an Initiator implementation of the Media Transfer Protocol (MTP)"
|
||||
HOMEPAGE = "http://libmtp.sourceforge.net/"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1 \
|
||||
file://src/ptp.c;beginline=3;endline=22;md5=80fd2d5904c4c1f5455d8f4bf515292f \
|
||||
file://examples/albums.c;beginline=5;endline=21;md5=84f4e55dfec49e898b7f68a828c15620 \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
DEPENDS = "libusb1 gettext-native"
|
||||
DEPENDS:append:class-target = " ${BPN}-native"
|
||||
|
||||
SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz"
|
||||
SRC_URI:append:class-target = " file://0001-Use-native-mtp-hotplug.patch"
|
||||
SRC_URI[sha256sum] = "c9191dac2f5744cf402e08641610b271f73ac21a3c802734ec2cedb2c6bc56d0"
|
||||
|
||||
inherit autotools pkgconfig lib_package
|
||||
|
||||
EXTRA_OECONF += " \
|
||||
--disable-rpath \
|
||||
--enable-largefile \
|
||||
--with-udev=${nonarch_base_libdir}/udev \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ?= ""
|
||||
PACKAGECONFIG[doxygen] = "--enable-doxygen,--disable-doxygen,doxygen-native"
|
||||
PACKAGECONFIG[mtpz] = "--enable-mtpz,--disable-mtpz,libgcrypt"
|
||||
|
||||
PACKAGES =+ "${BPN}-common ${BPN}-runtime"
|
||||
|
||||
RDEPENDS:${BPN} += "libmtp-common"
|
||||
RRECOMMENDS:${BPN} += "libmtp-runtime ${PN}-bin"
|
||||
|
||||
FILES:${BPN}-common = "${nonarch_base_libdir}/udev/rules.d/*"
|
||||
SUMMARY:${BPN}-common = "The udev rules file for MTP devices"
|
||||
|
||||
FILES:${BPN}-runtime = "${nonarch_base_libdir}/udev/mtp-probe"
|
||||
RDEPENDS:${BPN}-runtime = "libmtp-common"
|
||||
SUMMARY:${BPN}-runtime = "mtp-probe, used for the MTP udev rules"
|
||||
DESCRIPTION:${BPN}-runtime = "This package provides mtp-probe, a program to probe newly connected device interfaces from userspace to determine if they are MTP devices, used for udev rules."
|
||||
Reference in New Issue
Block a user