summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb145
1 files changed, 145 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb
new file mode 100644
index 000000000..0cfa8c064
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.26.6.imx.bb
@@ -0,0 +1,145 @@
1# This recipe is for the i.MX fork of gstreamer1.0-plugins-base. For ease of
2# maintenance, the top section is a verbatim copy of an OE-core
3# recipe. The second section customizes the recipe for i.MX.
4
5########### OE-core copy ##################
6# Upstream hash: 937817e5164f8af8452aec03ae3c45cb23d63df9
7
8require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc
9
10SUMMARY = "'Base' GStreamer plugins and helper libraries"
11HOMEPAGE = "https://gstreamer.freedesktop.org/"
12BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues"
13LICENSE = "LGPL-2.1-or-later"
14LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770"
15
16SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${PV}.tar.xz \
17 file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \
18 file://0003-viv-fb-Make-sure-config.h-is-included.patch \
19 file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \
20 "
21SRC_URI[sha256sum] = "edd4338b45c26a9af28c0d35aab964a024c3884ba6f520d8428df04212c8c93a"
22
23DEPENDS += "iso-codes util-linux zlib"
24
25inherit gobject-introspection
26
27# opengl packageconfig factored out to make it easy for distros
28# and BSP layers to choose OpenGL APIs/platforms/window systems
29PACKAGECONFIG_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl glx', '', d)}"
30PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl ${PACKAGECONFIG_X11}', '', d)}"
31
32PACKAGECONFIG ??= " \
33 ${GSTREAMER_ORC} \
34 ${PACKAGECONFIG_GL} \
35 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \
36 jpeg ogg pango png theora vorbis \
37 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \
38"
39
40OPENGL_APIS = 'opengl gles2'
41OPENGL_PLATFORMS = 'egl glx'
42
43X11DEPENDS = "virtual/libx11 libsm libxrender libxv"
44X11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled"
45X11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled"
46
47PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib"
48PACKAGECONFIG[cdparanoia] = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia"
49PACKAGECONFIG[graphene] = "-Dgl-graphene=enabled,-Dgl-graphene=disabled,graphene"
50PACKAGECONFIG[jpeg] = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg"
51PACKAGECONFIG[ogg] = "-Dogg=enabled,-Dogg=disabled,libogg"
52PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus"
53PACKAGECONFIG[pango] = "-Dpango=enabled,-Dpango=disabled,pango"
54PACKAGECONFIG[png] = "-Dgl-png=enabled,-Dgl-png=disabled,libpng"
55# This enables Qt5 QML examples in -base. The Qt5 GStreamer
56# qmlglsink and qmlglsrc plugins still exist in -good.
57PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native"
58PACKAGECONFIG[theora] = "-Dtheora=enabled,-Dtheora=disabled,libtheora"
59PACKAGECONFIG[tremor] = "-Dtremor=enabled,-Dtremor=disabled,tremor"
60PACKAGECONFIG[visual] = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual"
61PACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis"
62PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
63
64# OpenGL API packageconfigs
65PACKAGECONFIG[opengl] = ",,virtual/libgl libglu"
66PACKAGECONFIG[gles2] = ",,virtual/libgles2"
67
68# OpenGL platform packageconfigs
69PACKAGECONFIG[egl] = ",,virtual/egl"
70PACKAGECONFIG[glx] = ",,virtual/libgl"
71
72# OpenGL window systems (except for X11)
73PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm"
74PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm"
75PACKAGECONFIG[dispmanx] = ",,virtual/libomxil"
76PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d"
77
78OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}"
79
80EXTRA_OEMESON += " \
81 -Ddoc=disabled \
82 ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \
83 ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \
84 ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \
85"
86
87FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h"
88FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict"
89
90def get_opengl_cmdline_list(switch_name, options, d):
91 selected_options = []
92 if bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d):
93 for option in options.split():
94 if bb.utils.contains('PACKAGECONFIG', option, True, False, d):
95 selected_options += [option]
96 if selected_options:
97 return '-D' + switch_name + '=' + ','.join(selected_options)
98 else:
99 return ''
100
101CVE_PRODUCT += "gst-plugins-base"
102
103########### End of OE-core copy ###########
104
105########### i.MX overrides ################
106
107DEFAULT_PREFERENCE = "-1"
108
109LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=69333daa044cb77e486cc36129f7a770"
110
111SRC_URI:remove = " \
112 https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${PV}.tar.xz \
113 file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \
114 file://0003-viv-fb-Make-sure-config.h-is-included.patch \
115 file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch"
116SRC_URI:prepend = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} "
117
118SRC_URI:append:mx93-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch"
119SRC_URI:append:mx943-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch"
120
121GST1.0-PLUGINS-BASE_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-base.git;protocol=https"
122SRCBRANCH = "MM_04.10.03_2512_L6.18.2"
123SRCREV = "48718c61610e3628f3f162bb8d84ae213ae8516f"
124
125inherit use-imx-headers
126
127PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}"
128PACKAGECONFIG_REMOVE ?= "jpeg"
129
130PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}"
131PACKAGECONFIG_G2D ??= ""
132PACKAGECONFIG_G2D:imxgpu2d ??= "g2d"
133
134PACKAGECONFIG[g2d] = ",,virtual/libg2d"
135PACKAGECONFIG[viv-fb] = ",,virtual/libgles2"
136
137EXTRA_OEMESON += "-Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}""
138
139# links with imx-gpu libs which are pre-built for glibc
140# gcompat will address it during runtime
141LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined"
142
143COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
144
145########### End of i.MX overrides #########