diff options
4 files changed, 87 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 3df72769..44361c5c 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -538,12 +538,14 @@ PREFERRED_VERSION_gstreamer1.0-plugins-good:mx9-nxp-bsp ??= "1.24.7.imx" | |||
538 | 538 | ||
539 | # GStreamer copied recipes | 539 | # GStreamer copied recipes |
540 | PREFERRED_VERSION_gst-devtools:mx8-nxp-bsp ??= "1.24.0.imx" | 540 | PREFERRED_VERSION_gst-devtools:mx8-nxp-bsp ??= "1.24.0.imx" |
541 | PREFERRED_VERSION_gst-examples:mx8-nxp-bsp ??= "1.24.7.imx" | ||
541 | PREFERRED_VERSION_gstreamer1.0-libav:mx8-nxp-bsp ??= "1.24.0.imx" | 542 | PREFERRED_VERSION_gstreamer1.0-libav:mx8-nxp-bsp ??= "1.24.0.imx" |
542 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx8-nxp-bsp ??= "1.24.0.imx" | 543 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx8-nxp-bsp ??= "1.24.0.imx" |
543 | PREFERRED_VERSION_gstreamer1.0-python:mx8-nxp-bsp ??= "1.24.0.imx" | 544 | PREFERRED_VERSION_gstreamer1.0-python:mx8-nxp-bsp ??= "1.24.0.imx" |
544 | PREFERRED_VERSION_gstreamer1.0-rtsp-server:mx8-nxp-bsp ??= "1.24.0.imx" | 545 | PREFERRED_VERSION_gstreamer1.0-rtsp-server:mx8-nxp-bsp ??= "1.24.0.imx" |
545 | PREFERRED_VERSION_gstreamer1.0-vaapi:mx8-nxp-bsp ??= "1.24.0.imx" | 546 | PREFERRED_VERSION_gstreamer1.0-vaapi:mx8-nxp-bsp ??= "1.24.0.imx" |
546 | PREFERRED_VERSION_gst-devtools:mx9-nxp-bsp ??= "1.24.0.imx" | 547 | PREFERRED_VERSION_gst-devtools:mx9-nxp-bsp ??= "1.24.0.imx" |
548 | PREFERRED_VERSION_gst-examples:mx9-nxp-bsp ??= "1.24.7.imx" | ||
547 | PREFERRED_VERSION_gstreamer1.0-libav:mx9-nxp-bsp ??= "1.24.0.imx" | 549 | PREFERRED_VERSION_gstreamer1.0-libav:mx9-nxp-bsp ??= "1.24.0.imx" |
548 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx9-nxp-bsp ??= "1.24.0.imx" | 550 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx9-nxp-bsp ??= "1.24.0.imx" |
549 | PREFERRED_VERSION_gstreamer1.0-python:mx9-nxp-bsp ??= "1.24.0.imx" | 551 | PREFERRED_VERSION_gstreamer1.0-python:mx9-nxp-bsp ??= "1.24.0.imx" |
diff --git a/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch b/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch new file mode 100644 index 00000000..828c87dc --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-examples/0001-Make-player-examples-installable.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 7924016fce2d0b435891a335cdae52fc939c7e3b Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Thu, 17 Aug 2017 11:07:02 +0300 | ||
4 | Subject: [PATCH] Make player examples installable | ||
5 | |||
6 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
7 | Upstream-Status: Denied [Upstream considers these code examples, for now a least] | ||
8 | |||
9 | https://bugzilla.gnome.org/show_bug.cgi?id=777827 | ||
10 | |||
11 | --- | ||
12 | playback/player/gst-play/meson.build | 1 + | ||
13 | playback/player/gtk/meson.build | 1 + | ||
14 | 2 files changed, 2 insertions(+) | ||
15 | |||
16 | Index: gst-examples/playback/player/gst-play/meson.build | ||
17 | =================================================================== | ||
18 | --- gst-examples.orig/playback/player/gst-play/meson.build | ||
19 | +++ gst-examples/playback/player/gst-play/meson.build | ||
20 | @@ -2,5 +2,6 @@ executable('gst-play', | ||
21 | ['gst-play.c', | ||
22 | 'gst-play-kb.c', | ||
23 | 'gst-play-kb.h'], | ||
24 | + install: true, | ||
25 | dependencies : [gst_dep, dependency('gstreamer-play-1.0'), m_dep]) | ||
26 | |||
27 | Index: gst-examples/playback/player/gtk/meson.build | ||
28 | =================================================================== | ||
29 | --- gst-examples.orig/playback/player/gtk/meson.build | ||
30 | +++ gst-examples/playback/player/gtk/meson.build | ||
31 | @@ -20,5 +20,6 @@ if gtk_dep.found() | ||
32 | 'gtk-video-renderer.h', | ||
33 | 'gtk-video-renderer.c'], | ||
34 | c_args : extra_c_args, | ||
35 | + install: true, | ||
36 | dependencies : [gst_dep, gsttag_dep, gstplay_dep, gtk_dep, x11_dep]) | ||
37 | endif | ||
diff --git a/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop b/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop new file mode 100644 index 00000000..d165e5d9 --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-examples/gst-player.desktop | |||
@@ -0,0 +1,10 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Media Player | ||
3 | Comment=Basic media player | ||
4 | Icon=video-player | ||
5 | TryExec=gtk-play | ||
6 | Exec=gtk-play | ||
7 | StartupNotify=true | ||
8 | Terminal=false | ||
9 | Type=Application | ||
10 | Categories=GTK;AudioVideo; | ||
diff --git a/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb b/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb new file mode 100644 index 00000000..3830846b --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-examples_1.24.7.imx.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | # This builds an older version which is compatible with the gstreamer NXP fork 1.24.7.imx, | ||
2 | # thus the version is appended with '.imx' | ||
3 | |||
4 | SUMMARY = "GStreamer examples (including gtk-play, gst-play)" | ||
5 | DESCRIPTION = "GStreamer example applications." | ||
6 | HOMEPAGE = "https://gitlab.freedesktop.org/gstreamer/gst-examples" | ||
7 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-examples/-/issues" | ||
8 | LICENSE = "LGPL-2.0-or-later" | ||
9 | LIC_FILES_CHKSUM = "file://playback/player/gtk/gtk-play.c;beginline=1;endline=20;md5=f8c72dae3d36823ec716a9ebcae593b9" | ||
10 | |||
11 | DEPENDS = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gtk+3 json-glib glib-2.0-native" | ||
12 | |||
13 | SRC_URI = "git://gitlab.freedesktop.org/gstreamer/gstreamer.git;protocol=https;branch=1.24 \ | ||
14 | file://0001-Make-player-examples-installable.patch \ | ||
15 | file://gst-player.desktop \ | ||
16 | " | ||
17 | |||
18 | SRCREV = "0f1e984e41ce8d6d0758265d35e8b10d5815fde2" | ||
19 | |||
20 | S = "${WORKDIR}/git/subprojects/gst-examples" | ||
21 | |||
22 | inherit meson pkgconfig features_check | ||
23 | |||
24 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.(\d*[02468])+(\.\d+)+)" | ||
25 | |||
26 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | ||
27 | |||
28 | do_install:append() { | ||
29 | install -m 0644 -D ${UNPACKDIR}/gst-player.desktop ${D}${datadir}/applications/gst-player.desktop | ||
30 | } | ||
31 | |||
32 | RDEPENDS:${PN} = "gstreamer1.0-plugins-base-playback" | ||
33 | RRECOMMENDS:${PN} = "gstreamer1.0-plugins-base-meta \ | ||
34 | gstreamer1.0-plugins-good-meta \ | ||
35 | gstreamer1.0-plugins-bad-meta \ | ||
36 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "gstreamer1.0-libav", "", d)} \ | ||
37 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "gstreamer1.0-plugins-ugly-meta", "", d)}" | ||
38 | RPROVIDES:${PN} += "gst-player gst-player-bin" | ||