1*4882a593Smuzhiyunrequire gstreamer1.0-plugins-common.inc 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunDESCRIPTION = "'Base' GStreamer plugins and helper libraries" 4*4882a593SmuzhiyunHOMEPAGE = "https://gstreamer.freedesktop.org/" 5*4882a593SmuzhiyunBUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues" 6*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later" 7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunSRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${PV}.tar.xz \ 10*4882a593Smuzhiyun file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \ 11*4882a593Smuzhiyun file://0003-viv-fb-Make-sure-config.h-is-included.patch \ 12*4882a593Smuzhiyun file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \ 13*4882a593Smuzhiyun " 14*4882a593SmuzhiyunSRC_URI[sha256sum] = "11f911ef65f3095d7cf698a1ad1fc5242ac3ad6c9270465fb5c9e7f4f9c19b35" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunS = "${WORKDIR}/gst-plugins-base-${PV}" 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunDEPENDS += "iso-codes util-linux zlib" 19*4882a593Smuzhiyun 20*4882a593Smuzhiyuninherit gobject-introspection 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# opengl packageconfig factored out to make it easy for distros 23*4882a593Smuzhiyun# and BSP layers to choose OpenGL APIs/platforms/window systems 24*4882a593SmuzhiyunPACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunPACKAGECONFIG ??= " \ 27*4882a593Smuzhiyun ${GSTREAMER_ORC} \ 28*4882a593Smuzhiyun ${PACKAGECONFIG_GL} \ 29*4882a593Smuzhiyun ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ 30*4882a593Smuzhiyun jpeg ogg pango png theora vorbis \ 31*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ 32*4882a593Smuzhiyun" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunOPENGL_APIS = 'opengl gles2' 35*4882a593SmuzhiyunOPENGL_PLATFORMS = 'egl' 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunX11DEPENDS = "virtual/libx11 libsm libxrender libxv" 38*4882a593SmuzhiyunX11ENABLEOPTS = "-Dx11=enabled -Dxvideo=enabled -Dxshm=enabled" 39*4882a593SmuzhiyunX11DISABLEOPTS = "-Dx11=disabled -Dxvideo=disabled -Dxshm=disabled" 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunPACKAGECONFIG[alsa] = "-Dalsa=enabled,-Dalsa=disabled,alsa-lib" 42*4882a593SmuzhiyunPACKAGECONFIG[cdparanoia] = "-Dcdparanoia=enabled,-Dcdparanoia=disabled,cdparanoia" 43*4882a593SmuzhiyunPACKAGECONFIG[graphene] = "-Dgl-graphene=enabled,-Dgl-graphene=disabled,graphene" 44*4882a593SmuzhiyunPACKAGECONFIG[jpeg] = "-Dgl-jpeg=enabled,-Dgl-jpeg=disabled,jpeg" 45*4882a593SmuzhiyunPACKAGECONFIG[ogg] = "-Dogg=enabled,-Dogg=disabled,libogg" 46*4882a593SmuzhiyunPACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus" 47*4882a593SmuzhiyunPACKAGECONFIG[pango] = "-Dpango=enabled,-Dpango=disabled,pango" 48*4882a593SmuzhiyunPACKAGECONFIG[png] = "-Dgl-png=enabled,-Dgl-png=disabled,libpng" 49*4882a593Smuzhiyun# This enables Qt5 QML examples in -base. The Qt5 GStreamer 50*4882a593Smuzhiyun# qmlglsink and qmlglsrc plugins still exist in -good. 51*4882a593SmuzhiyunPACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native" 52*4882a593SmuzhiyunPACKAGECONFIG[theora] = "-Dtheora=enabled,-Dtheora=disabled,libtheora" 53*4882a593SmuzhiyunPACKAGECONFIG[tremor] = "-Dtremor=enabled,-Dtremor=disabled,tremor" 54*4882a593SmuzhiyunPACKAGECONFIG[visual] = "-Dlibvisual=enabled,-Dlibvisual=disabled,libvisual" 55*4882a593SmuzhiyunPACKAGECONFIG[vorbis] = "-Dvorbis=enabled,-Dvorbis=disabled,libvorbis" 56*4882a593SmuzhiyunPACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun# OpenGL API packageconfigs 59*4882a593SmuzhiyunPACKAGECONFIG[opengl] = ",,virtual/libgl libglu" 60*4882a593SmuzhiyunPACKAGECONFIG[gles2] = ",,virtual/libgles2" 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun# OpenGL platform packageconfigs 63*4882a593SmuzhiyunPACKAGECONFIG[egl] = ",,virtual/egl" 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun# OpenGL window systems (except for X11) 66*4882a593SmuzhiyunPACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" 67*4882a593SmuzhiyunPACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" 68*4882a593SmuzhiyunPACKAGECONFIG[dispmanx] = ",,virtual/libomxil" 69*4882a593SmuzhiyunPACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" 70*4882a593Smuzhiyun 71*4882a593SmuzhiyunOPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}" 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunEXTRA_OEMESON += " \ 74*4882a593Smuzhiyun -Ddoc=disabled \ 75*4882a593Smuzhiyun ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ 76*4882a593Smuzhiyun ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ 77*4882a593Smuzhiyun ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ 78*4882a593Smuzhiyun" 79*4882a593Smuzhiyun 80*4882a593SmuzhiyunFILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" 81*4882a593SmuzhiyunFILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" 82*4882a593Smuzhiyun 83*4882a593Smuzhiyundef get_opengl_cmdline_list(switch_name, options, d): 84*4882a593Smuzhiyun selected_options = [] 85*4882a593Smuzhiyun if bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d): 86*4882a593Smuzhiyun for option in options.split(): 87*4882a593Smuzhiyun if bb.utils.contains('PACKAGECONFIG', option, True, False, d): 88*4882a593Smuzhiyun selected_options += [option] 89*4882a593Smuzhiyun if selected_options: 90*4882a593Smuzhiyun return '-D' + switch_name + '=' + ','.join(selected_options) 91*4882a593Smuzhiyun else: 92*4882a593Smuzhiyun return '' 93*4882a593Smuzhiyun 94*4882a593SmuzhiyunCVE_PRODUCT += "gst-plugins-base" 95