| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require gstreamer1.0-plugins-common.inc | 
 | 2 |  | 
| Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 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" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | LICENSE = "GPLv2+ & LGPLv2+" | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 |  | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 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 \ | 
| William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 14 |            file://4ef5c91697a141fea7317aff7f0f28e5a861db99.patch \ | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 15 |            " | 
| Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 16 | SRC_URI[sha256sum] = "29e53229a84d01d722f6f6db13087231cdf6113dd85c25746b9b58c3d68e8323" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 |  | 
 | 18 | S = "${WORKDIR}/gst-plugins-base-${PV}" | 
 | 19 |  | 
 | 20 | DEPENDS += "iso-codes util-linux zlib" | 
 | 21 |  | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 22 | inherit gobject-introspection | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 |  | 
 | 24 | PACKAGES_DYNAMIC =+ "^libgst.*" | 
 | 25 |  | 
 | 26 | # opengl packageconfig factored out to make it easy for distros | 
 | 27 | # and BSP layers to choose OpenGL APIs/platforms/window systems | 
 | 28 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | 
 | 29 |  | 
 | 30 | PACKAGECONFIG ??= " \ | 
 | 31 |     ${GSTREAMER_ORC} \ | 
 | 32 |     ${PACKAGECONFIG_GL} \ | 
 | 33 |     ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ | 
 | 34 |     jpeg ogg pango png theora vorbis \ | 
 | 35 |     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ | 
 | 36 | " | 
 | 37 |  | 
 | 38 | OPENGL_APIS = 'opengl gles2' | 
 | 39 | OPENGL_PLATFORMS = 'egl' | 
 | 40 |  | 
 | 41 | X11DEPENDS = "virtual/libx11 libsm libxrender libxv" | 
 | 42 | X11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled" | 
 | 43 | X11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled" | 
 | 44 |  | 
 | 45 | PACKAGECONFIG[alsa]         = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" | 
 | 46 | PACKAGECONFIG[cdparanoia]   = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia" | 
 | 47 | PACKAGECONFIG[jpeg]         = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg" | 
 | 48 | PACKAGECONFIG[ogg]          = "-Dogg=enabled,-Dogg=disabled,libogg" | 
 | 49 | PACKAGECONFIG[opus]         = "-Dopus=enabled,-Dopus=disabled,libopus" | 
 | 50 | PACKAGECONFIG[pango]        = "-Dpango=enabled,-Dpango=disabled,pango" | 
 | 51 | PACKAGECONFIG[png]          = "-Dgl-png=enabled,-Dgl-png=disabled,libpng" | 
 | 52 | PACKAGECONFIG[theora]       = "-Dtheora=enabled,-Dtheora=disabled,libtheora" | 
 | 53 | PACKAGECONFIG[tremor]       = "-Dtremor=enabled,-Dtremor=disabled,tremor" | 
 | 54 | PACKAGECONFIG[visual]       = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual" | 
 | 55 | PACKAGECONFIG[vorbis]       = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis" | 
 | 56 | PACKAGECONFIG[x11]          = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" | 
 | 57 |  | 
 | 58 | # OpenGL API packageconfigs | 
 | 59 | PACKAGECONFIG[opengl]       = ",,virtual/libgl libglu" | 
 | 60 | PACKAGECONFIG[gles2]        = ",,virtual/libgles2" | 
 | 61 |  | 
 | 62 | # OpenGL platform packageconfigs | 
 | 63 | PACKAGECONFIG[egl]          = ",,virtual/egl" | 
 | 64 |  | 
 | 65 | # OpenGL window systems (except for X11) | 
 | 66 | PACKAGECONFIG[gbm]          = ",,virtual/libgbm libgudev libdrm" | 
 | 67 | PACKAGECONFIG[wayland]      = ",,wayland-native wayland wayland-protocols libdrm" | 
 | 68 | PACKAGECONFIG[dispmanx]     = ",,virtual/libomxil" | 
| Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 69 | PACKAGECONFIG[viv-fb]       = ",,virtual/libgles2 virtual/libg2d" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 70 |  | 
| Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 71 | OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 72 |  | 
 | 73 | EXTRA_OEMESON += " \ | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 74 |     -Ddoc=disabled \ | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 75 |     -Dgl-graphene=disabled \ | 
 | 76 |     ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ | 
 | 77 |     ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ | 
 | 78 |     ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ | 
 | 79 | " | 
 | 80 |  | 
| Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 81 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" | 
 | 82 | FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" | 
| Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 83 |  | 
 | 84 | def get_opengl_cmdline_list(switch_name, options, d): | 
 | 85 |     selected_options = [] | 
 | 86 |     if bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d): | 
 | 87 |         for option in options.split(): | 
 | 88 |             if bb.utils.contains('PACKAGECONFIG', option, True, False, d): | 
 | 89 |                 selected_options += [option] | 
 | 90 |     if selected_options: | 
 | 91 |         return '-D' + switch_name + '=' + ','.join(selected_options) | 
 | 92 |     else: | 
 | 93 |         return '' | 
| Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 94 |  | 
 | 95 | CVE_PRODUCT += "gst-plugins-base" |