summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorCristinel Panfir <cristinel.panfir@nxp.com>2019-12-20 17:52:50 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2019-12-20 16:54:20 -0300
commit72e75774f10f1447ba2fbfc85dde28e792f8dbf4 (patch)
treecf713c2f2efe78dd10fdcba5fe8e356d8baad29e /recipes-multimedia
parent1eb3c0385a8a2c6815492395cea5b280d31c73bd (diff)
downloadmeta-freescale-72e75774f10f1447ba2fbfc85dde28e792f8dbf4.tar.gz
gstreamer1.0-plugins-bad: Upgrade to 1.16
Add FILESEXTRAPATHS to use patches from poky Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch45
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/configure-allow-to-disable-libssh2.patch61
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb)33
3 files changed, 17 insertions, 122 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch
deleted file mode 100644
index 355341e4..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1From c890afb8a542a272acb398e8fc289b790afa08e4 Mon Sep 17 00:00:00 2001
2From: Yuqing Zhu <carol.zhu@nxp.com>
3Date: Sat, 21 Apr 2018 00:51:12 +0800
4Subject: [PATCH] Makefile.am: don't hardcode libtool name when running
5 introspection tools
6
7Do refine base on commit: 7592e793b3906355d76ca9a59f8fea2749ea2a4e
8
9Upstream-Status: Pending [review on oe-core list]
10
11Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
12---
13 gst-libs/gst/insertbin/Makefile.am | 2 +-
14 gst-libs/gst/mpegts/Makefile.am | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/gst-libs/gst/insertbin/Makefile.am b/gst-libs/gst/insertbin/Makefile.am
18index 1f8ea30..4b98ef6 100644
19--- a/gst-libs/gst/insertbin/Makefile.am
20+++ b/gst-libs/gst/insertbin/Makefile.am
21@@ -45,7 +45,7 @@ GstInsertBin-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstinsertbin-@GS
22 --library=libgstinsertbin-@GST_API_VERSION@.la \
23 --include=Gst-@GST_API_VERSION@ \
24 --include=GstBase-@GST_API_VERSION@ \
25- --libtool="$(top_builddir)/libtool" \
26+ --libtool="$(LIBTOOL)" \
27 --pkg gstreamer-@GST_API_VERSION@ \
28 --pkg gstreamer-base-@GST_API_VERSION@ \
29 --pkg-export gstreamer-insertbin-@GST_API_VERSION@ \
30diff --git a/gst-libs/gst/mpegts/Makefile.am b/gst-libs/gst/mpegts/Makefile.am
31index f264e33..9934a4d 100644
32--- a/gst-libs/gst/mpegts/Makefile.am
33+++ b/gst-libs/gst/mpegts/Makefile.am
34@@ -82,7 +82,7 @@ GstMpegts-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstmpegts-@GST_API_
35 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
36 --library=libgstmpegts-@GST_API_VERSION@.la \
37 --include=Gst-@GST_API_VERSION@ \
38- --libtool="$(top_builddir)/libtool" \
39+ --libtool="$(LIBTOOL)" \
40 --pkg gstreamer-@GST_API_VERSION@ \
41 --pkg gstreamer-video-@GST_API_VERSION@ \
42 --pkg-export gstreamer-mpegts-@GST_API_VERSION@ \
43--
442.7.4
45
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/configure-allow-to-disable-libssh2.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/configure-allow-to-disable-libssh2.patch
deleted file mode 100644
index ad863298..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad-1.14.imx/configure-allow-to-disable-libssh2.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From f59c5269f92d59a5296cbfeeb682d42095cd88ad Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Thu, 18 Sep 2014 02:24:07 -0400
4Subject: [PATCH] gstreamer1.0-plugins-bad: allow to disable libssh2
5
6libssh2 is automatically linked to if present, this undetermined
7dependency may cause build errors like:
8
9 .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2
10
11libssh2 isn't an oe-core recipe, so allow to disable it from
12configure.
13
14Upstream-Status: Pending
15
16Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
17---
18 configure.ac | 23 +++++++++++++++++------
19 1 file changed, 17 insertions(+), 6 deletions(-)
20
21Index: gst-plugins-bad-1.12.3/configure.ac
22===================================================================
23--- gst-plugins-bad-1.12.3.orig/configure.ac
24+++ gst-plugins-bad-1.12.3/configure.ac
25@@ -2139,6 +2139,15 @@ AG_GST_CHECK_FEATURE(CHROMAPRINT, [chrom
26 ])
27
28 dnl *** Curl ***
29+AC_ARG_ENABLE([libssh2],
30+ [ --enable-libssh2 enable LIBSSH2 support @<:@default=auto@:>@],
31+ [case "${enableval}" in
32+ yes) NEED_SSH2=yes ;;
33+ no) NEED_SSH2=no ;;
34+ auto) NEED_SSH2=auto ;;
35+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-libssh2]) ;;
36+ esac],[NEED_SSH2=auto])
37+
38 translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
39 AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
40 PKG_CHECK_MODULES(CURL, libcurl >= 7.35.0, [
41@@ -2161,12 +2170,14 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin]
42 ])
43 AC_SUBST(CURL_CFLAGS)
44 AC_SUBST(CURL_LIBS)
45- PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
46- HAVE_SSH2="yes"
47- AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
48- ], [
49- HAVE_SSH2="no"
50- ])
51+ if test "x$NEED_SSH2" != "xno"; then
52+ PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
53+ HAVE_SSH2="yes"
54+ AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
55+ ], [
56+ HAVE_SSH2="no"
57+ ])
58+ fi
59 AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes")
60 AC_SUBST(SSH2_CFLAGS)
61 AC_SUBST(SSH2_LIBS)
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb
index 9cf6bd98..3cf0c7af 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.imx.bb
@@ -10,22 +10,22 @@ PACKAGECONFIG_append_mx6q = " opencv"
10PACKAGECONFIG_append_mx6qp = " opencv" 10PACKAGECONFIG_append_mx6qp = " opencv"
11PACKAGECONFIG_append_mx8 = " opencv kms" 11PACKAGECONFIG_append_mx8 = " opencv kms"
12 12
13PACKAGECONFIG[wayland] = "--enable-wayland --disable-x11,--disable-wayland,wayland-native wayland wayland-protocols libdrm" 13FILESEXTRAPATHS_prepend := "${BSPDIR}/sources/poky/meta/recipes-multimedia/gstreamer/${PN}:"
14 14FILESEXTRAPATHS_prepend := "${BSPDIR}/sources/poky/meta/recipes-multimedia/gstreamer/files:"
15# Disable introspection to fix [GstGL-1.0.gir] Error
16EXTRA_OECONF_append = " --disable-introspection"
17
18 15
19GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" 16GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https"
20SRCBRANCH = "MM_04.04.05_1902_L4.14.98_GA" 17SRCBRANCH = "MM_04.05.01_1909_L4.19.35"
21 18
22SRC_URI = " \ 19SRC_URI = " \
23 ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ 20 ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \
24 file://configure-allow-to-disable-libssh2.patch \ 21 file://configure-allow-to-disable-libssh2.patch \
25 file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \ 22 file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \
23 file://avoid-including-sys-poll.h-directly.patch \
24 file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \
25 file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \
26" 26"
27 27
28SRCREV = "0191521ba226904e4b2f84c38e5f6ae75169a18a" 28SRCREV = "eba3db4034fc17b712808d5e90ed5ff22ef490ca"
29 29
30DEFAULT_PREFERENCE = "-1" 30DEFAULT_PREFERENCE = "-1"
31 31
@@ -99,17 +99,19 @@ PACKAGECONFIG[ttml] = "--enable-ttml,--disable-ttml,libxml2 pango cai
99PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev" 99PACKAGECONFIG[uvch264] = "--enable-uvch264,--disable-uvch264,libusb1 libgudev"
100PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc" 100PACKAGECONFIG[voaacenc] = "--enable-voaacenc,--disable-voaacenc,vo-aacenc"
101PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc" 101PACKAGECONFIG[voamrwbenc] = "--enable-voamrwbenc,--disable-voamrwbenc,vo-amrwbenc"
102PACKAGECONFIG[vulkan] = "--enable-vulkan,--disable-vulkan,vulkan-loader" 102PACKAGECONFIG[vulkan] = "--enable-vulkan,--disable-vulkan,vulkan-headers"
103PACKAGECONFIG[lcms2] = "--enable-lcms2,--disable-lcms2,lcms"
104PACKAGECONFIG[openmpt] = "--enable-openmpt,--disable-openmpt,libopenmpt"
103PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland wayland-protocols libdrm" 105PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland wayland-protocols libdrm"
104PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" 106PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
105PACKAGECONFIG[webrtc] = "--enable-webrtc,--disable-webrtc,libnice" 107PACKAGECONFIG[webrtc] = "--enable-webrtc,--disable-webrtc,libnice"
106PACKAGECONFIG[webrtcdsp] = "--enable-webrtcdsp,--disable-webrtcdsp,webrtc-audio-processing" 108PACKAGECONFIG[webrtcdsp] = "--enable-webrtcdsp,--disable-webrtcdsp,webrtc-audio-processing"
107 109
108# these plugins have no corresponding library in OE-core or meta-openembedded: 110# these plugins have no corresponding library in OE-core or meta-openembedded:
109# openni2 winks direct3d directsound winscreencap acm apple_media iqa 111# openni2 winks direct3d directsound winscreencap apple_media iqa
110# android_media avc bs2b chromaprint daala dts fdkaac gme gsm kate ladspa 112# android_media avc bs2b chromaprint dts fdkaac gme gsm kate ladspa
111# lv2 mpeg2enc mplex msdk musepack nvenc ofa openmpt opensles soundtouch 113# lv2 mpeg2enc mplex msdk musepack nvenc ofa openmpt opensles soundtouch
112# spandsp spc teletextdec vdpau wasapi x265 zbar 114# spandsp teletextdec vdpau wasapi x265 zbar
113 115
114EXTRA_OECONF += " \ 116EXTRA_OECONF += " \
115 --enable-decklink \ 117 --enable-decklink \
@@ -118,15 +120,12 @@ EXTRA_OECONF += " \
118 --enable-ipcpipeline \ 120 --enable-ipcpipeline \
119 --enable-netsim \ 121 --enable-netsim \
120 --enable-shm \ 122 --enable-shm \
121 --enable-vcd \
122 --disable-acm \
123 --disable-android_media \ 123 --disable-android_media \
124 --disable-aom \ 124 --disable-aom \
125 --disable-apple_media \ 125 --disable-apple_media \
126 --disable-avc \ 126 --disable-avc \
127 --disable-bs2b \ 127 --disable-bs2b \
128 --disable-chromaprint \ 128 --disable-chromaprint \
129 --disable-daala \
130 --disable-direct3d \ 129 --disable-direct3d \
131 --disable-directsound \ 130 --disable-directsound \
132 --disable-dts \ 131 --disable-dts \
@@ -149,7 +148,6 @@ EXTRA_OECONF += " \
149 --disable-opensles \ 148 --disable-opensles \
150 --disable-soundtouch \ 149 --disable-soundtouch \
151 --disable-spandsp \ 150 --disable-spandsp \
152 --disable-spc \
153 --disable-srt \ 151 --disable-srt \
154 --disable-teletextdec \ 152 --disable-teletextdec \
155 --disable-vdpau \ 153 --disable-vdpau \
@@ -160,6 +158,7 @@ EXTRA_OECONF += " \
160 --disable-x265 \ 158 --disable-x265 \
161 --disable-zbar \ 159 --disable-zbar \
162 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \ 160 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "--disable-yadif", "", d)} \
161 --disable-introspection \
163" 162"
164export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" 163export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
165 164
@@ -169,5 +168,7 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
169FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs" 168FILES_${PN}-freeverb += "${datadir}/gstreamer-${LIBV}/presets/GstFreeverb.prs"
170FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*" 169FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/${LIBV}/opencv*"
171FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs" 170FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-${LIBV}/presets/GstVoAmrwbEnc.prs"
171# include fragment shaders
172FILES_${PN}-opengl += "/usr/share/*.fs"
172 173
173COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 174COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"