diff options
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.bb | 145 |
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 | |||
| 8 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | ||
| 9 | |||
| 10 | SUMMARY = "'Base' GStreamer plugins and helper libraries" | ||
| 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 12 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues" | ||
| 13 | LICENSE = "LGPL-2.1-or-later" | ||
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770" | ||
| 15 | |||
| 16 | SRC_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 | " | ||
| 21 | SRC_URI[sha256sum] = "edd4338b45c26a9af28c0d35aab964a024c3884ba6f520d8428df04212c8c93a" | ||
| 22 | |||
| 23 | DEPENDS += "iso-codes util-linux zlib" | ||
| 24 | |||
| 25 | inherit 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 | ||
| 29 | PACKAGECONFIG_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl glx', '', d)}" | ||
| 30 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl ${PACKAGECONFIG_X11}', '', d)}" | ||
| 31 | |||
| 32 | PACKAGECONFIG ??= " \ | ||
| 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 | |||
| 40 | OPENGL_APIS = 'opengl gles2' | ||
| 41 | OPENGL_PLATFORMS = 'egl glx' | ||
| 42 | |||
| 43 | X11DEPENDS = "virtual/libx11 libsm libxrender libxv" | ||
| 44 | X11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled" | ||
| 45 | X11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled" | ||
| 46 | |||
| 47 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | ||
| 48 | PACKAGECONFIG[cdparanoia] = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia" | ||
| 49 | PACKAGECONFIG[graphene] = "-Dgl-graphene=enabled,-Dgl-graphene=disabled,graphene" | ||
| 50 | PACKAGECONFIG[jpeg] = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg" | ||
| 51 | PACKAGECONFIG[ogg] = "-Dogg=enabled,-Dogg=disabled,libogg" | ||
| 52 | PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus" | ||
| 53 | PACKAGECONFIG[pango] = "-Dpango=enabled,-Dpango=disabled,pango" | ||
| 54 | PACKAGECONFIG[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. | ||
| 57 | PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native" | ||
| 58 | PACKAGECONFIG[theora] = "-Dtheora=enabled,-Dtheora=disabled,libtheora" | ||
| 59 | PACKAGECONFIG[tremor] = "-Dtremor=enabled,-Dtremor=disabled,tremor" | ||
| 60 | PACKAGECONFIG[visual] = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual" | ||
| 61 | PACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis" | ||
| 62 | PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" | ||
| 63 | |||
| 64 | # OpenGL API packageconfigs | ||
| 65 | PACKAGECONFIG[opengl] = ",,virtual/libgl libglu" | ||
| 66 | PACKAGECONFIG[gles2] = ",,virtual/libgles2" | ||
| 67 | |||
| 68 | # OpenGL platform packageconfigs | ||
| 69 | PACKAGECONFIG[egl] = ",,virtual/egl" | ||
| 70 | PACKAGECONFIG[glx] = ",,virtual/libgl" | ||
| 71 | |||
| 72 | # OpenGL window systems (except for X11) | ||
| 73 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" | ||
| 74 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" | ||
| 75 | PACKAGECONFIG[dispmanx] = ",,virtual/libomxil" | ||
| 76 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" | ||
| 77 | |||
| 78 | OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}" | ||
| 79 | |||
| 80 | EXTRA_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 | |||
| 87 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" | ||
| 88 | FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" | ||
| 89 | |||
| 90 | def 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 | |||
| 101 | CVE_PRODUCT += "gst-plugins-base" | ||
| 102 | |||
| 103 | ########### End of OE-core copy ########### | ||
| 104 | |||
| 105 | ########### i.MX overrides ################ | ||
| 106 | |||
| 107 | DEFAULT_PREFERENCE = "-1" | ||
| 108 | |||
| 109 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=69333daa044cb77e486cc36129f7a770" | ||
| 110 | |||
| 111 | SRC_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" | ||
| 116 | SRC_URI:prepend = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} " | ||
| 117 | |||
| 118 | SRC_URI:append:mx93-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch" | ||
| 119 | SRC_URI:append:mx943-nxp-bsp = "file://0001-MMFMWK-9590-gstgl-1.0-disable-gir-build-for-gl-plugi.patch" | ||
| 120 | |||
| 121 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-base.git;protocol=https" | ||
| 122 | SRCBRANCH = "MM_04.10.03_2512_L6.18.2" | ||
| 123 | SRCREV = "48718c61610e3628f3f162bb8d84ae213ae8516f" | ||
| 124 | |||
| 125 | inherit use-imx-headers | ||
| 126 | |||
| 127 | PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}" | ||
| 128 | PACKAGECONFIG_REMOVE ?= "jpeg" | ||
| 129 | |||
| 130 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | ||
| 131 | PACKAGECONFIG_G2D ??= "" | ||
| 132 | PACKAGECONFIG_G2D:imxgpu2d ??= "g2d" | ||
| 133 | |||
| 134 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" | ||
| 135 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2" | ||
| 136 | |||
| 137 | EXTRA_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 | ||
| 141 | LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined" | ||
| 142 | |||
| 143 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
| 144 | |||
| 145 | ########### End of i.MX overrides ######### | ||
