diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.0.imx.bb')
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.0.imx.bb | 218 |
1 files changed, 218 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.0.imx.bb new file mode 100644 index 000000000..189925713 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.0.imx.bb | |||
| @@ -0,0 +1,218 @@ | |||
| 1 | # This recipe is for the i.MX fork of gstreamer1.0-plugins-bad. 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: fb2d28e0315ece6180c87c7047587673024a09f7 | ||
| 7 | |||
| 8 | require gstreamer1.0-plugins-common.inc | ||
| 9 | require gstreamer1.0-plugins-license.inc | ||
| 10 | |||
| 11 | DESCRIPTION = "'Bad' GStreamer plugins and helper libraries " | ||
| 12 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 13 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues" | ||
| 14 | |||
| 15 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \ | ||
| 16 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ | ||
| 17 | file://0002-avoid-including-sys-poll.h-directly.patch \ | ||
| 18 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | ||
| 19 | " | ||
| 20 | SRC_URI[sha256sum] = "3c9d9300f5f4fb3e3d36009379d1fb6d9ecd79c1a135df742b8a68417dd663a1" | ||
| 21 | |||
| 22 | S = "${WORKDIR}/gst-plugins-bad-${PV}" | ||
| 23 | |||
| 24 | LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" | ||
| 25 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
| 26 | |||
| 27 | DEPENDS += "gstreamer1.0-plugins-base" | ||
| 28 | |||
| 29 | inherit gobject-introspection | ||
| 30 | |||
| 31 | PACKAGECONFIG ??= " \ | ||
| 32 | ${GSTREAMER_ORC} \ | ||
| 33 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ | ||
| 34 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \ | ||
| 35 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | ||
| 36 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ | ||
| 37 | bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \ | ||
| 38 | sndfile ttml uvch264 webp \ | ||
| 39 | ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \ | ||
| 40 | " | ||
| 41 | |||
| 42 | PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom" | ||
| 43 | PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass" | ||
| 44 | PACKAGECONFIG[avtp] = "-Davtp=enabled,-Davtp=disabled,libavtp" | ||
| 45 | PACKAGECONFIG[bluez] = "-Dbluez=enabled,-Dbluez=disabled,bluez5" | ||
| 46 | PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2" | ||
| 47 | PACKAGECONFIG[closedcaption] = "-Dclosedcaption=enabled,-Dclosedcaption=disabled,pango cairo" | ||
| 48 | PACKAGECONFIG[curl] = "-Dcurl=enabled,-Dcurl=disabled,curl" | ||
| 49 | PACKAGECONFIG[dash] = "-Ddash=enabled,-Ddash=disabled,libxml2" | ||
| 50 | PACKAGECONFIG[dc1394] = "-Ddc1394=enabled,-Ddc1394=disabled,libdc1394" | ||
| 51 | PACKAGECONFIG[directfb] = "-Ddirectfb=enabled,-Ddirectfb=disabled,directfb" | ||
| 52 | PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl" | ||
| 53 | PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac" | ||
| 54 | PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2" | ||
| 55 | PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth" | ||
| 56 | PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled," | ||
| 57 | # Pick atleast one crypto backend below when enabling hls | ||
| 58 | PACKAGECONFIG[nettle] = "-Dhls-crypto=nettle,,nettle" | ||
| 59 | PACKAGECONFIG[openssl] = "-Dhls-crypto=openssl,,openssl" | ||
| 60 | PACKAGECONFIG[gcrypt] = "-Dhls-crypto=libgcrypt,,libgcrypt" | ||
| 61 | # the gl packageconfig enables OpenGL elements that haven't been ported | ||
| 62 | # to -base yet. They depend on the gstgl library in -base, so we do | ||
| 63 | # not add GL dependencies here, since these are taken care of in -base. | ||
| 64 | PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled," | ||
| 65 | PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm" | ||
| 66 | PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265" | ||
| 67 | PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2" | ||
| 68 | PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms" | ||
| 69 | PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug" | ||
| 70 | PACKAGECONFIG[msdk] = "-Dmsdk=enabled,-Dmsdk=disabled,intel-mediasdk" | ||
| 71 | PACKAGECONFIG[neon] = "-Dneon=enabled,-Dneon=disabled,neon" | ||
| 72 | PACKAGECONFIG[openal] = "-Dopenal=enabled,-Dopenal=disabled,openal-soft" | ||
| 73 | PACKAGECONFIG[opencv] = "-Dopencv=enabled,-Dopencv=disabled,opencv" | ||
| 74 | PACKAGECONFIG[openh264] = "-Dopenh264=enabled,-Dopenh264=disabled,openh264" | ||
| 75 | PACKAGECONFIG[openjpeg] = "-Dopenjpeg=enabled,-Dopenjpeg=disabled,openjpeg" | ||
| 76 | PACKAGECONFIG[openmpt] = "-Dopenmpt=enabled,-Dopenmpt=disabled,libopenmpt" | ||
| 77 | # the opus encoder/decoder elements are now in the -base package, | ||
| 78 | # but the opus parser remains in -bad | ||
| 79 | PACKAGECONFIG[opusparse] = "-Dopus=enabled,-Dopus=disabled,libopus" | ||
| 80 | PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdread libdvdnav" | ||
| 81 | PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg" | ||
| 82 | PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump" | ||
| 83 | PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc" | ||
| 84 | PACKAGECONFIG[sctp] = "-Dsctp=enabled,-Dsctp=disabled" | ||
| 85 | PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=disabled,libxml2" | ||
| 86 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" | ||
| 87 | PACKAGECONFIG[srt] = "-Dsrt=enabled,-Dsrt=disabled,srt" | ||
| 88 | PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" | ||
| 89 | PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" | ||
| 90 | PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" | ||
| 91 | PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" | ||
| 92 | # this enables support for stateless V4L2 mem2mem codecs, which is a newer form of | ||
| 93 | # V4L2 codec; the V4L2 code in -base supports the older stateful V4L2 mem2mem codecs | ||
| 94 | PACKAGECONFIG[v4l2codecs] = "-Dv4l2codecs=enabled,-Dv4l2codecs=disabled,libgudev" | ||
| 95 | PACKAGECONFIG[va] = "-Dva=enabled,-Dva=disabled,libva" | ||
| 96 | PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" | ||
| 97 | PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc" | ||
| 98 | PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native" | ||
| 99 | PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm" | ||
| 100 | PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" | ||
| 101 | PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice" | ||
| 102 | PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" | ||
| 103 | PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" | ||
| 104 | PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libxcb libxkbcommon" | ||
| 105 | PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265" | ||
| 106 | |||
| 107 | GSTREAMER_GPL = "${@bb.utils.filter('PACKAGECONFIG', 'faad resindvd x265', d)}" | ||
| 108 | |||
| 109 | EXTRA_OEMESON += " \ | ||
| 110 | -Ddoc=disabled \ | ||
| 111 | -Daes=enabled \ | ||
| 112 | -Dcodecalpha=enabled \ | ||
| 113 | -Ddecklink=enabled \ | ||
| 114 | -Ddvb=enabled \ | ||
| 115 | -Dfbdev=enabled \ | ||
| 116 | -Dipcpipeline=enabled \ | ||
| 117 | -Dshm=enabled \ | ||
| 118 | -Dtranscode=enabled \ | ||
| 119 | -Dandroidmedia=disabled \ | ||
| 120 | -Dapplemedia=disabled \ | ||
| 121 | -Dasio=disabled \ | ||
| 122 | -Dbs2b=disabled \ | ||
| 123 | -Dchromaprint=disabled \ | ||
| 124 | -Dd3dvideosink=disabled \ | ||
| 125 | -Dd3d11=disabled \ | ||
| 126 | -Ddirectsound=disabled \ | ||
| 127 | -Ddts=disabled \ | ||
| 128 | -Dfdkaac=disabled \ | ||
| 129 | -Dflite=disabled \ | ||
| 130 | -Dgme=disabled \ | ||
| 131 | -Dgs=disabled \ | ||
| 132 | -Dgsm=disabled \ | ||
| 133 | -Diqa=disabled \ | ||
| 134 | -Dkate=disabled \ | ||
| 135 | -Dladspa=disabled \ | ||
| 136 | -Dldac=disabled \ | ||
| 137 | -Dlv2=disabled \ | ||
| 138 | -Dmagicleap=disabled \ | ||
| 139 | -Dmediafoundation=disabled \ | ||
| 140 | -Dmicrodns=disabled \ | ||
| 141 | -Dmpeg2enc=disabled \ | ||
| 142 | -Dmplex=disabled \ | ||
| 143 | -Dmusepack=disabled \ | ||
| 144 | -Dnvcodec=disabled \ | ||
| 145 | -Dopenexr=disabled \ | ||
| 146 | -Dopenni2=disabled \ | ||
| 147 | -Dopenaptx=disabled \ | ||
| 148 | -Dopensles=disabled \ | ||
| 149 | -Donnx=disabled \ | ||
| 150 | -Dqroverlay=disabled \ | ||
| 151 | -Dsoundtouch=disabled \ | ||
| 152 | -Dspandsp=disabled \ | ||
| 153 | -Dsvthevcenc=disabled \ | ||
| 154 | -Dteletext=disabled \ | ||
| 155 | -Dwasapi=disabled \ | ||
| 156 | -Dwasapi2=disabled \ | ||
| 157 | -Dwildmidi=disabled \ | ||
| 158 | -Dwinks=disabled \ | ||
| 159 | -Dwinscreencap=disabled \ | ||
| 160 | -Dwpe=disabled \ | ||
| 161 | -Dzxing=disabled \ | ||
| 162 | " | ||
| 163 | |||
| 164 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" | ||
| 165 | |||
| 166 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 167 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 168 | |||
| 169 | FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs" | ||
| 170 | FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" | ||
| 171 | FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles" | ||
| 172 | FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" | ||
| 173 | |||
| 174 | |||
| 175 | ########### End of OE-core copy ########### | ||
| 176 | |||
| 177 | ########### i.MX overrides ################ | ||
| 178 | |||
| 179 | DEFAULT_PREFERENCE = "-1" | ||
| 180 | |||
| 181 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4fbd65380cdd255951079008b364516c" | ||
| 182 | |||
| 183 | DEPENDS:append:imxgpu2d = " virtual/libg2d" | ||
| 184 | |||
| 185 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \ | ||
| 186 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ | ||
| 187 | file://0002-avoid-including-sys-poll.h-directly.patch" | ||
| 188 | SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} " | ||
| 189 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-bad.git;protocol=https" | ||
| 190 | SRCBRANCH = "MM_04.08.00_2305_L6.1.y" | ||
| 191 | SRCREV = "3c2f0b5794e699437964f2c337463f57b1e17f51" | ||
| 192 | |||
| 193 | S = "${WORKDIR}/git" | ||
| 194 | |||
| 195 | inherit use-imx-headers | ||
| 196 | |||
| 197 | PACKAGE_ARCH:imxpxp = "${MACHINE_SOCARCH}" | ||
| 198 | PACKAGE_ARCH:mx8-nxp-bsp = "${MACHINE_SOCARCH}" | ||
| 199 | |||
| 200 | PACKAGECONFIG_REMOVE ?= " \ | ||
| 201 | dtls vulkan \ | ||
| 202 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \ | ||
| 203 | " | ||
| 204 | PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}" | ||
| 205 | PACKAGECONFIG:append:mx8-nxp-bsp = " kms tinycompress" | ||
| 206 | |||
| 207 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" | ||
| 208 | |||
| 209 | EXTRA_OEMESON += " \ | ||
| 210 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | ||
| 211 | " | ||
| 212 | |||
| 213 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
| 214 | |||
| 215 | # it uses nested functions sadly, in ext/wayland/gstwaylandsink.c for GST_ELEMENT_REGISTER_DEFINE | ||
| 216 | # | ||
| 217 | TOOLCHAIN = "gcc" | ||
| 218 | ########### End of i.MX overrides ######### | ||
