mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
v4l-utils: RPROVIDE media-ctl
media-ctl recipe was subsumed into v4l-utils but there are apps which still have rdeps on media-ctl Change-Id: I7c24fec3752e80f67730150504b7192ad4fea0c4 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
|||||||
|
From 4ee15a8a69b84526ece1180a288a37db077bcd9b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Fri, 27 Feb 2015 21:55:36 +0000
|
||||||
|
Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and
|
||||||
|
libv4l2subdev"
|
||||||
|
|
||||||
|
This reverts commit 0911dce53b08b0df3066be2c75f67e8a314d8729.
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
|
||||||
|
Conflicts:
|
||||||
|
utils/media-ctl/Makefile.am
|
||||||
|
---
|
||||||
|
utils/media-ctl/Makefile.am | 11 +++--------
|
||||||
|
1 file changed, 3 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
|
||||||
|
index a3931fb..fe1fea5 100644
|
||||||
|
--- a/utils/media-ctl/Makefile.am
|
||||||
|
+++ b/utils/media-ctl/Makefile.am
|
||||||
|
@@ -1,14 +1,9 @@
|
||||||
|
-noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la
|
||||||
|
-
|
||||||
|
+lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la
|
||||||
|
libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h
|
||||||
|
-libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS)
|
||||||
|
-libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS)
|
||||||
|
-
|
||||||
|
+libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS)
|
||||||
|
+libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS)
|
||||||
|
libv4l2subdev_la_SOURCES = libv4l2subdev.c
|
||||||
|
libv4l2subdev_la_LIBADD = libmediactl.la
|
||||||
|
-libv4l2subdev_la_CFLAGS = -static
|
||||||
|
-libv4l2subdev_la_LDFLAGS = -static
|
||||||
|
-
|
||||||
|
mediactl_includedir=$(includedir)/mediactl
|
||||||
|
noinst_HEADERS = mediactl.h v4l2subdev.h
|
||||||
|
|
||||||
|
--
|
||||||
|
2.1.4
|
||||||
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am
|
||||||
|
+++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am
|
||||||
|
@@ -4,8 +4,8 @@ libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS
|
||||||
|
libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS)
|
||||||
|
libv4l2subdev_la_SOURCES = libv4l2subdev.c
|
||||||
|
libv4l2subdev_la_LIBADD = libmediactl.la
|
||||||
|
-mediactl_includedir=$(includedir)/mediactl
|
||||||
|
-noinst_HEADERS = mediactl.h v4l2subdev.h
|
||||||
|
+otherincludedir = $(includedir)/mediactl
|
||||||
|
+otherinclude_HEADERS = mediactl.h v4l2subdev.h
|
||||||
|
|
||||||
|
pkgconfig_DATA = libmediactl.pc
|
||||||
|
bin_PROGRAMS = media-ctl
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am
|
||||||
|
+++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am
|
||||||
|
@@ -7,6 +7,7 @@ libv4l2subdev_la_LIBADD = libmediactl.la
|
||||||
|
mediactl_includedir=$(includedir)/mediactl
|
||||||
|
noinst_HEADERS = mediactl.h v4l2subdev.h
|
||||||
|
|
||||||
|
+pkgconfig_DATA = libmediactl.pc
|
||||||
|
bin_PROGRAMS = media-ctl
|
||||||
|
media_ctl_SOURCES = media-ctl.c options.c options.h tools.h
|
||||||
|
media_ctl_LDADD = libmediactl.la libv4l2subdev.la
|
||||||
@@ -8,21 +8,31 @@ DEPENDS = "jpeg \
|
|||||||
|
|
||||||
inherit autotools gettext pkgconfig
|
inherit autotools gettext pkgconfig
|
||||||
|
|
||||||
|
PACKAGECONFIG ??= ""
|
||||||
|
PACKAGECONFIG[mediactl] = "--enable-v4l-utils,--disable-v4l-utils,,"
|
||||||
# libv4l was absorbed into this, let OE know that
|
# libv4l was absorbed into this, let OE know that
|
||||||
PROVIDES = "libv4l"
|
PROVIDES = "libv4l media-ctl"
|
||||||
|
PROVIDES += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}"
|
||||||
|
RPROVIDES_${PN} += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}"
|
||||||
|
|
||||||
SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2"
|
SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \
|
||||||
|
file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \
|
||||||
|
file://mediactl-pkgconfig.patch \
|
||||||
|
file://export-mediactl-headers.patch \
|
||||||
|
"
|
||||||
SRC_URI[md5sum] = "9cb3c178f937954e65bf30920af433ef"
|
SRC_URI[md5sum] = "9cb3c178f937954e65bf30920af433ef"
|
||||||
SRC_URI[sha256sum] = "d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d"
|
SRC_URI[sha256sum] = "d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d"
|
||||||
|
|
||||||
EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev"
|
EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev"
|
||||||
|
|
||||||
PACKAGES =+ "rc-keymaps libv4l libv4l-dbg libv4l-dev"
|
PACKAGES =+ "media-ctl rc-keymaps libv4l libv4l-dbg libv4l-dev"
|
||||||
|
|
||||||
|
FILES_media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*"
|
||||||
FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
|
FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
|
||||||
FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules"
|
FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules"
|
||||||
FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
|
FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
|
||||||
${libdir}/libdvbv5*${SOLIBS} \
|
${libdir}/libdvbv5*${SOLIBS} \
|
||||||
${libdir}/libv4l/*-decomp"
|
${libdir}/libv4l/*-decomp"
|
||||||
|
|
||||||
FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug"
|
FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug"
|
||||||
FILES_libv4l-dev += "${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
|
FILES_libv4l-dev += "${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
|
||||||
|
|||||||
Reference in New Issue
Block a user