1################################################################################ 2# 3# gst1-plugins-base 4# 5################################################################################ 6 7GST1_PLUGINS_BASE_VERSION = 1.22.0 8GST1_PLUGINS_BASE_SOURCE = gst-plugins-base-$(GST1_PLUGINS_BASE_VERSION).tar.xz 9GST1_PLUGINS_BASE_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-base 10GST1_PLUGINS_BASE_INSTALL_STAGING = YES 11GST1_PLUGINS_BASE_LICENSE_FILES = COPYING 12GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+ 13 14GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 15 16GST1_PLUGINS_BASE_CONF_OPTS = \ 17 -Dexamples=disabled \ 18 -Dtests=disabled \ 19 -Dgobject-cast-checks=disabled \ 20 -Dglib-asserts=disabled \ 21 -Dglib-checks=disabled \ 22 -Dqt5=disabled \ 23 -Ddoc=disabled 24 25# Options which require currently unpackaged libraries 26GST1_PLUGINS_BASE_CONF_OPTS += \ 27 -Dcdparanoia=disabled \ 28 -Dlibvisual=disabled \ 29 -Diso-codes=disabled 30 31ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_INSTALL_TOOLS),y) 32GST1_PLUGINS_BASE_CONF_OPTS += -Dtools=enabled 33else 34GST1_PLUGINS_BASE_CONF_OPTS += -Dtools=disabled 35endif 36 37GST1_PLUGINS_BASE_DEPENDENCIES = gstreamer1 $(TARGET_NLS_DEPENDENCIES) 38 39ifeq ($(BR2_PACKAGE_LIBDRM),y) 40GST1_PLUGINS_BASE_DEPENDENCIES += libdrm 41endif 42 43ifeq ($(BR2_PACKAGE_ROCKCHIP_RGA),y) 44GST1_PLUGINS_BASE_DEPENDENCIES += rockchip-rga 45endif 46 47GST1_PLUGINS_BASE_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS) 48 49# These plugins are listed in the order from ./configure --help 50 51ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) 52GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=enabled 53GST1_PLUGINS_BASE_DEPENDENCIES += gobject-introspection 54else 55GST1_PLUGINS_BASE_CONF_OPTS += -Dintrospection=disabled 56endif 57 58ifeq ($(BR2_PACKAGE_ORC),y) 59GST1_PLUGINS_BASE_DEPENDENCIES += orc 60GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=enabled 61else 62GST1_PLUGINS_BASE_CONF_OPTS += -Dorc=disabled 63endif 64 65ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_HAS_API)$(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_HAS_PLATFORM)$(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_HAS_WINDOW),yyy) 66GST1_PLUGINS_BASE_CONF_OPTS += -Dgl=enabled 67else 68GST1_PLUGINS_BASE_CONF_OPTS += -Dgl=disabled 69endif 70 71ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_OPENGL),y) 72GST1_PLUGINS_BASE_GL_API_LIST = opengl 73GST1_PLUGINS_BASE_DEPENDENCIES += libgl libglu 74endif 75 76ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_GLES2),y) 77GST1_PLUGINS_BASE_GL_API_LIST += gles2 78GST1_PLUGINS_BASE_DEPENDENCIES += libgles 79endif 80 81GST1_PLUGINS_BASE_CONF_OPTS += -Dgl_api='$(subst $(space),$(comma),$(GST1_PLUGINS_BASE_GL_API_LIST))' 82 83ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_GLX),y) 84GST1_PLUGINS_BASE_GL_PLATFORM_LIST += glx 85GST1_PLUGINS_BASE_DEPENDENCIES += xorgproto xlib_libXrender 86endif 87 88ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_EGL),y) 89GST1_PLUGINS_BASE_GL_PLATFORM_LIST += egl 90GST1_PLUGINS_BASE_DEPENDENCIES += libegl 91endif 92GST1_PLUGINS_BASE_CONF_OPTS += -Dgl_platform='$(subst $(space),$(comma),$(GST1_PLUGINS_BASE_GL_PLATFORM_LIST))' 93 94ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_X11),y) 95GST1_PLUGINS_BASE_WINSYS_LIST += x11 96GST1_PLUGINS_BASE_DEPENDENCIES += xlib_libX11 xlib_libXext 97endif 98 99ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_WAYLAND),y) 100GST1_PLUGINS_BASE_WINSYS_LIST += wayland 101GST1_PLUGINS_BASE_DEPENDENCIES += wayland wayland-protocols 102endif 103 104ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_LIB_OPENGL_DISPMANX),y) 105GST1_PLUGINS_BASE_WINSYS_LIST += dispmanx 106GST1_PLUGINS_BASE_DEPENDENCIES += rpi-userland 107endif 108GST1_PLUGINS_BASE_CONF_OPTS += -Dgl_winsys='$(subst $(space),$(comma),$(GST1_PLUGINS_BASE_WINSYS_LIST))' 109 110ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ADDER),y) 111GST1_PLUGINS_BASE_CONF_OPTS += -Dadder=enabled 112else 113GST1_PLUGINS_BASE_CONF_OPTS += -Dadder=disabled 114endif 115 116ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP),y) 117GST1_PLUGINS_BASE_CONF_OPTS += -Dapp=enabled 118else 119GST1_PLUGINS_BASE_CONF_OPTS += -Dapp=disabled 120endif 121 122ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOCONVERT),y) 123GST1_PLUGINS_BASE_CONF_OPTS += -Daudioconvert=enabled 124else 125GST1_PLUGINS_BASE_CONF_OPTS += -Daudioconvert=disabled 126endif 127 128ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOMIXER),y) 129GST1_PLUGINS_BASE_CONF_OPTS += -Daudiomixer=enabled 130else 131GST1_PLUGINS_BASE_CONF_OPTS += -Daudiomixer=disabled 132endif 133 134ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORATE),y) 135GST1_PLUGINS_BASE_CONF_OPTS += -Daudiorate=enabled 136else 137GST1_PLUGINS_BASE_CONF_OPTS += -Daudiorate=disabled 138endif 139 140ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIOTESTSRC),y) 141GST1_PLUGINS_BASE_CONF_OPTS += -Daudiotestsrc=enabled 142else 143GST1_PLUGINS_BASE_CONF_OPTS += -Daudiotestsrc=disabled 144endif 145 146ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_COMPOSITOR),y) 147GST1_PLUGINS_BASE_CONF_OPTS += -Dcompositor=enabled 148else 149GST1_PLUGINS_BASE_CONF_OPTS += -Dcompositor=disabled 150endif 151 152ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ENCODING),y) 153GST1_PLUGINS_BASE_CONF_OPTS += -Dencoding=enabled 154else 155GST1_PLUGINS_BASE_CONF_OPTS += -Dencoding=disabled 156endif 157 158ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOCONVERTSCALE),y) 159GST1_PLUGINS_BASE_CONF_OPTS += -Dvideoconvertscale=enabled 160else 161GST1_PLUGINS_BASE_CONF_OPTS += -Dvideoconvertscale=disabled 162endif 163 164ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_GIO),y) 165GST1_PLUGINS_BASE_CONF_OPTS += -Dgio=enabled 166else 167GST1_PLUGINS_BASE_CONF_OPTS += -Dgio=disabled 168endif 169 170ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_GIO_TYPEFINDER),y) 171GST1_PLUGINS_BASE_CONF_OPTS += -Dgio-typefinder=enabled 172else 173GST1_PLUGINS_BASE_CONF_OPTS += -Dgio-typefinder=disabled 174endif 175 176ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OVERLAYCOMPOSITION),y) 177GST1_PLUGINS_BASE_CONF_OPTS += -Doverlaycomposition=enabled 178else 179GST1_PLUGINS_BASE_CONF_OPTS += -Doverlaycomposition=disabled 180endif 181 182ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_PLAYBACK),y) 183GST1_PLUGINS_BASE_CONF_OPTS += -Dplayback=enabled 184else 185GST1_PLUGINS_BASE_CONF_OPTS += -Dplayback=disabled 186endif 187 188ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE),y) 189GST1_PLUGINS_BASE_CONF_OPTS += -Daudioresample=enabled 190else 191GST1_PLUGINS_BASE_CONF_OPTS += -Daudioresample=disabled 192endif 193 194ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_RAWPARSE),y) 195GST1_PLUGINS_BASE_CONF_OPTS += -Drawparse=enabled 196else 197GST1_PLUGINS_BASE_CONF_OPTS += -Drawparse=disabled 198endif 199 200ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_SUBPARSE),y) 201GST1_PLUGINS_BASE_CONF_OPTS += -Dsubparse=enabled 202else 203GST1_PLUGINS_BASE_CONF_OPTS += -Dsubparse=disabled 204endif 205 206ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TCP),y) 207GST1_PLUGINS_BASE_CONF_OPTS += -Dtcp=enabled 208else 209GST1_PLUGINS_BASE_CONF_OPTS += -Dtcp=disabled 210endif 211 212ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TYPEFIND),y) 213GST1_PLUGINS_BASE_CONF_OPTS += -Dtypefind=enabled 214else 215GST1_PLUGINS_BASE_CONF_OPTS += -Dtypefind=disabled 216endif 217 218ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC),y) 219GST1_PLUGINS_BASE_CONF_OPTS += -Dvideotestsrc=enabled 220else 221GST1_PLUGINS_BASE_CONF_OPTS += -Dvideotestsrc=disabled 222endif 223 224ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEORATE),y) 225GST1_PLUGINS_BASE_CONF_OPTS += -Dvideorate=enabled 226else 227GST1_PLUGINS_BASE_CONF_OPTS += -Dvideorate=disabled 228endif 229 230ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VOLUME),y) 231GST1_PLUGINS_BASE_CONF_OPTS += -Dvolume=enabled 232else 233GST1_PLUGINS_BASE_CONF_OPTS += -Dvolume=disabled 234endif 235 236# Zlib is checked for headers and is not an option. 237ifeq ($(BR2_PACKAGE_ZLIB),y) 238GST1_PLUGINS_BASE_DEPENDENCIES += zlib 239endif 240 241ifeq ($(BR2_PACKAGE_XORG7),y) 242GST1_PLUGINS_BASE_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXv 243GST1_PLUGINS_BASE_CONF_OPTS += \ 244 -Dx11=enabled \ 245 -Dxshm=enabled \ 246 -Dxvideo=enabled 247else 248GST1_PLUGINS_BASE_CONF_OPTS += \ 249 -Dx11=disabled \ 250 -Dxshm=disabled \ 251 -Dxvideo=disabled 252endif 253 254ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_ALSA),y) 255GST1_PLUGINS_BASE_DEPENDENCIES += alsa-lib 256GST1_PLUGINS_BASE_CONF_OPTS += -Dalsa=enabled 257else 258GST1_PLUGINS_BASE_CONF_OPTS += -Dalsa=disabled 259endif 260 261ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_TREMOR),y) 262GST1_PLUGINS_BASE_CONF_OPTS += -Dtremor=enabled 263GST1_PLUGINS_BASE_DEPENDENCIES += tremor 264else 265GST1_PLUGINS_BASE_CONF_OPTS += -Dtremor=disabled 266endif 267 268ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OPUS),y) 269GST1_PLUGINS_BASE_CONF_OPTS += -Dopus=enabled 270GST1_PLUGINS_BASE_DEPENDENCIES += opus 271else 272GST1_PLUGINS_BASE_CONF_OPTS += -Dopus=disabled 273endif 274 275ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OGG),y) 276GST1_PLUGINS_BASE_CONF_OPTS += -Dogg=enabled 277GST1_PLUGINS_BASE_DEPENDENCIES += libogg 278else 279GST1_PLUGINS_BASE_CONF_OPTS += -Dogg=disabled 280endif 281 282ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_PANGO),y) 283GST1_PLUGINS_BASE_CONF_OPTS += -Dpango=enabled 284GST1_PLUGINS_BASE_DEPENDENCIES += pango 285else 286GST1_PLUGINS_BASE_CONF_OPTS += -Dpango=disabled 287endif 288 289ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_THEORA),y) 290GST1_PLUGINS_BASE_CONF_OPTS += -Dtheora=enabled 291GST1_PLUGINS_BASE_DEPENDENCIES += libtheora 292else 293GST1_PLUGINS_BASE_CONF_OPTS += -Dtheora=disabled 294endif 295 296ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VORBIS),y) 297GST1_PLUGINS_BASE_CONF_OPTS += -Dvorbis=enabled 298GST1_PLUGINS_BASE_DEPENDENCIES += libvorbis 299else 300GST1_PLUGINS_BASE_CONF_OPTS += -Dvorbis=disabled 301endif 302 303$(eval $(meson-package)) 304