summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch41
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch15
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch12
-rw-r--r--meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb16
4 files changed, 81 insertions, 3 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch
new file mode 100644
index 000000000..4b3de3ccb
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch
@@ -0,0 +1,41 @@
1From 4ee15a8a69b84526ece1180a288a37db077bcd9b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 27 Feb 2015 21:55:36 +0000
4Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and
5 libv4l2subdev"
6
7This reverts commit 0911dce53b08b0df3066be2c75f67e8a314d8729.
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11Conflicts:
12 utils/media-ctl/Makefile.am
13---
14 utils/media-ctl/Makefile.am | 11 +++--------
15 1 file changed, 3 insertions(+), 8 deletions(-)
16
17diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
18index a3931fb..fe1fea5 100644
19--- a/utils/media-ctl/Makefile.am
20+++ b/utils/media-ctl/Makefile.am
21@@ -1,14 +1,9 @@
22-noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la
23-
24+lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la
25 libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h
26-libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS)
27-libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS)
28-
29+libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS)
30+libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS)
31 libv4l2subdev_la_SOURCES = libv4l2subdev.c
32 libv4l2subdev_la_LIBADD = libmediactl.la
33-libv4l2subdev_la_CFLAGS = -static
34-libv4l2subdev_la_LDFLAGS = -static
35-
36 mediactl_includedir=$(includedir)/mediactl
37 noinst_HEADERS = mediactl.h v4l2subdev.h
38
39--
402.1.4
41
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch
new file mode 100644
index 000000000..c610e7e48
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch
@@ -0,0 +1,15 @@
1Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am
2===================================================================
3--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am
4+++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am
5@@ -4,8 +4,8 @@ libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS
6 libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS)
7 libv4l2subdev_la_SOURCES = libv4l2subdev.c
8 libv4l2subdev_la_LIBADD = libmediactl.la
9-mediactl_includedir=$(includedir)/mediactl
10-noinst_HEADERS = mediactl.h v4l2subdev.h
11+otherincludedir = $(includedir)/mediactl
12+otherinclude_HEADERS = mediactl.h v4l2subdev.h
13
14 pkgconfig_DATA = libmediactl.pc
15 bin_PROGRAMS = media-ctl
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch
new file mode 100644
index 000000000..34fb3cf23
--- /dev/null
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch
@@ -0,0 +1,12 @@
1Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am
2===================================================================
3--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am
4+++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am
5@@ -7,6 +7,7 @@ libv4l2subdev_la_LIBADD = libmediactl.la
6 mediactl_includedir=$(includedir)/mediactl
7 noinst_HEADERS = mediactl.h v4l2subdev.h
8
9+pkgconfig_DATA = libmediactl.pc
10 bin_PROGRAMS = media-ctl
11 media_ctl_SOURCES = media-ctl.c options.c options.h tools.h
12 media_ctl_LDADD = libmediactl.la libv4l2subdev.la
diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb
index 219ed1526..ba6e69274 100644
--- a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb
+++ b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb
@@ -8,21 +8,31 @@ DEPENDS = "jpeg \
8 8
9inherit autotools gettext pkgconfig 9inherit autotools gettext pkgconfig
10 10
11PACKAGECONFIG ??= ""
12PACKAGECONFIG[mediactl] = "--enable-v4l-utils,--disable-v4l-utils,,"
11# libv4l was absorbed into this, let OE know that 13# libv4l was absorbed into this, let OE know that
12PROVIDES = "libv4l" 14PROVIDES = "libv4l media-ctl"
15PROVIDES += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}"
16RPROVIDES_${PN} += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}"
13 17
14SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2" 18SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \
19 file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \
20 file://mediactl-pkgconfig.patch \
21 file://export-mediactl-headers.patch \
22 "
15SRC_URI[md5sum] = "9cb3c178f937954e65bf30920af433ef" 23SRC_URI[md5sum] = "9cb3c178f937954e65bf30920af433ef"
16SRC_URI[sha256sum] = "d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d" 24SRC_URI[sha256sum] = "d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d"
17 25
18EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" 26EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev"
19 27
20PACKAGES =+ "rc-keymaps libv4l libv4l-dbg libv4l-dev" 28PACKAGES =+ "media-ctl rc-keymaps libv4l libv4l-dbg libv4l-dev"
21 29
30FILES_media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*"
22FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*" 31FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
23FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules" 32FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules"
24FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \ 33FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \
25 ${libdir}/libdvbv5*${SOLIBS} \ 34 ${libdir}/libdvbv5*${SOLIBS} \
26 ${libdir}/libv4l/*-decomp" 35 ${libdir}/libv4l/*-decomp"
36
27FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug" 37FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug"
28FILES_libv4l-dev += "${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la" 38FILES_libv4l-dev += "${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"