]>
Commit | Line | Data |
---|---|---|
20614408 | 1 | require gstreamer1.0-plugins-common.inc |
5e951789 | 2 | |
31299426 MMID |
3 | DESCRIPTION = "'Base' GStreamer plugins and helper libraries" |
4 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | |
5 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues" | |
5e951789 | 6 | LICENSE = "GPLv2+ & LGPLv2+" |
5485ecd6 JQ |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d" |
8 | ||
9 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${PV}.tar.xz \ | |
10 | file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \ | |
11 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ | |
12 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \ | |
13 | file://0004-glimagesink-Downrank-to-marginal.patch \ | |
14 | " | |
47f0d377 | 15 | SRC_URI[sha256sum] = "56a9ff2fe9e6603b9e658cf6897d412a173d2180829fe01e92568549c6bd0f5b" |
5e951789 AM |
16 | |
17 | S = "${WORKDIR}/gst-plugins-base-${PV}" | |
18 | ||
20614408 | 19 | DEPENDS += "iso-codes util-linux zlib" |
5e951789 | 20 | |
5485ecd6 | 21 | inherit gobject-introspection |
5e951789 AM |
22 | |
23 | PACKAGES_DYNAMIC =+ "^libgst.*" | |
24 | ||
6e915c47 | 25 | # opengl packageconfig factored out to make it easy for distros |
20614408 | 26 | # and BSP layers to choose OpenGL APIs/platforms/window systems |
5e951789 | 27 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" |
6e915c47 | 28 | |
5e951789 AM |
29 | PACKAGECONFIG ??= " \ |
30 | ${GSTREAMER_ORC} \ | |
5e951789 | 31 | ${PACKAGECONFIG_GL} \ |
6e915c47 | 32 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ |
20614408 | 33 | jpeg ogg pango png theora vorbis \ |
5e951789 AM |
34 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ |
35 | " | |
36 | ||
20614408 CRG |
37 | OPENGL_APIS = 'opengl gles2' |
38 | OPENGL_PLATFORMS = 'egl' | |
20614408 | 39 | |
5e951789 | 40 | X11DEPENDS = "virtual/libx11 libsm libxrender libxv" |
20614408 CRG |
41 | X11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled" |
42 | X11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled" | |
43 | ||
44 | PACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | |
45 | PACKAGECONFIG[cdparanoia] = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia" | |
46 | PACKAGECONFIG[jpeg] = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg" | |
47 | PACKAGECONFIG[ogg] = "-Dogg=enabled,-Dogg=disabled,libogg" | |
48 | PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus" | |
49 | PACKAGECONFIG[pango] = "-Dpango=enabled,-Dpango=disabled,pango" | |
50 | PACKAGECONFIG[png] = "-Dgl-png=enabled,-Dgl-png=disabled,libpng" | |
51 | PACKAGECONFIG[theora] = "-Dtheora=enabled,-Dtheora=disabled,libtheora" | |
52 | PACKAGECONFIG[tremor] = "-Dtremor=enabled,-Dtremor=disabled,tremor" | |
53 | PACKAGECONFIG[visual] = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual" | |
54 | PACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis" | |
5e951789 | 55 | PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" |
5e951789 | 56 | |
20614408 CRG |
57 | # OpenGL API packageconfigs |
58 | PACKAGECONFIG[opengl] = ",,virtual/libgl libglu" | |
59 | PACKAGECONFIG[gles2] = ",,virtual/libgles2" | |
60 | ||
61 | # OpenGL platform packageconfigs | |
62 | PACKAGECONFIG[egl] = ",,virtual/egl" | |
63 | ||
64 | # OpenGL window systems (except for X11) | |
65 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" | |
66 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" | |
f741c342 MJ |
67 | PACKAGECONFIG[dispmanx] = ",,virtual/libomxil" |
68 | ||
69 | OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', ' x11', '', d)}" | |
70 | OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'gbm', ' gbm', '', d)}" | |
71 | OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'wayland', ' wayland', '', d)}" | |
72 | OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'dispmanx', ' dispmanx', '', d)}" | |
a54a7008 | 73 | OPENGL_WINSYS_append = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' egl', '', d)}" |
20614408 CRG |
74 | |
75 | EXTRA_OEMESON += " \ | |
5485ecd6 | 76 | -Ddoc=disabled \ |
20614408 CRG |
77 | -Dgl-graphene=disabled \ |
78 | ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ | |
79 | ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ | |
80 | ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ | |
81 | " | |
82 | ||
20614408 | 83 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" |
5e951789 AM |
84 | FILES_${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" |
85 | ||
20614408 CRG |
86 | def get_opengl_cmdline_list(switch_name, options, d): |
87 | selected_options = [] | |
88 | if bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d): | |
89 | for option in options.split(): | |
90 | if bb.utils.contains('PACKAGECONFIG', option, True, False, d): | |
91 | selected_options += [option] | |
92 | if selected_options: | |
93 | return '-D' + switch_name + '=' + ','.join(selected_options) | |
94 | else: | |
95 | return '' | |
ec0f0e59 RB |
96 | |
97 | CVE_PRODUCT += "gst-plugins-base" |