blob: 2dd42395f74725af0d0c8414400dc9d0702cb867 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001require gstreamer1.0-plugins-common.inc
2require gstreamer1.0-plugins-license.inc
3
4DESCRIPTION = "'Bad' GStreamer plugins and helper libraries "
5HOMEPAGE = "https://gstreamer.freedesktop.org/"
6BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues"
7
8SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \
9 file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \
10 file://0002-avoid-including-sys-poll.h-directly.patch \
11 file://0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch \
12 file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \
Andrew Geissler9aee5002022-03-30 16:27:02 +000013 "
Andrew Geissler615f2f12022-07-15 14:00:58 -050014SRC_URI[sha256sum] = "7a11c13b55dd1d2386dd902219e41cbfcdda8e1e0aa3e738186c95074b35da4f"
Andrew Geissler9aee5002022-03-30 16:27:02 +000015
16S = "${WORKDIR}/gst-plugins-bad-${PV}"
17
18LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
19LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
20
21DEPENDS += "gstreamer1.0-plugins-base"
22
23inherit gobject-introspection
24
25PACKAGECONFIG ??= " \
26 ${GSTREAMER_ORC} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan x11', d)} \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
30 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
31 bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \
32 sndfile ttml uvch264 webp \
33 ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
34"
35
36PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom"
37PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass"
Andrew Geissler78b72792022-06-14 06:47:25 -050038PACKAGECONFIG[avtp] = "-Davtp=enabled,-Davtp=disabled,libavtp"
Andrew Geissler9aee5002022-03-30 16:27:02 +000039PACKAGECONFIG[bluez] = "-Dbluez=enabled,-Dbluez=disabled,bluez5"
40PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
41PACKAGECONFIG[closedcaption] = "-Dclosedcaption=enabled,-Dclosedcaption=disabled,pango cairo"
42PACKAGECONFIG[curl] = "-Dcurl=enabled,-Dcurl=disabled,curl"
43PACKAGECONFIG[dash] = "-Ddash=enabled,-Ddash=disabled,libxml2"
44PACKAGECONFIG[dc1394] = "-Ddc1394=enabled,-Ddc1394=disabled,libdc1394"
45PACKAGECONFIG[directfb] = "-Ddirectfb=enabled,-Ddirectfb=disabled,directfb"
46PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl"
47PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac"
48PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
49PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth"
50PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled,"
51# Pick atleast one crypto backend below when enabling hls
52PACKAGECONFIG[nettle] = "-Dhls-crypto=nettle,,nettle"
53PACKAGECONFIG[openssl] = "-Dhls-crypto=openssl,,openssl"
54PACKAGECONFIG[gcrypt] = "-Dhls-crypto=libgcrypt,,libgcrypt"
55# the gl packageconfig enables OpenGL elements that haven't been ported
56# to -base yet. They depend on the gstgl library in -base, so we do
57# not add GL dependencies here, since these are taken care of in -base.
58PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled,"
59PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm"
60PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265"
61PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2"
62PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms"
63PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug"
64PACKAGECONFIG[msdk] = "-Dmsdk=enabled,-Dmsdk=disabled,intel-mediasdk"
65PACKAGECONFIG[neon] = "-Dneon=enabled,-Dneon=disabled,neon"
66PACKAGECONFIG[openal] = "-Dopenal=enabled,-Dopenal=disabled,openal-soft"
67PACKAGECONFIG[opencv] = "-Dopencv=enabled,-Dopencv=disabled,opencv"
68PACKAGECONFIG[openh264] = "-Dopenh264=enabled,-Dopenh264=disabled,openh264"
69PACKAGECONFIG[openjpeg] = "-Dopenjpeg=enabled,-Dopenjpeg=disabled,openjpeg"
70PACKAGECONFIG[openmpt] = "-Dopenmpt=enabled,-Dopenmpt=disabled,libopenmpt"
71# the opus encoder/decoder elements are now in the -base package,
72# but the opus parser remains in -bad
73PACKAGECONFIG[opusparse] = "-Dopus=enabled,-Dopus=disabled,libopus"
74PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdread libdvdnav"
75PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg"
76PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump"
77PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc"
78PACKAGECONFIG[sctp] = "-Dsctp=enabled,-Dsctp=disabled"
79PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=disabled,libxml2"
80PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1"
81PACKAGECONFIG[srt] = "-Dsrt=enabled,-Dsrt=disabled,srt"
82PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp"
83PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa"
84PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo"
85PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev"
Patrick Williams03907ee2022-05-01 06:28:52 -050086# this enables support for stateless V4L2 mem2mem codecs, which is a newer form of
87# V4L2 codec; the V4L2 code in -base supports the older stateful V4L2 mem2mem codecs
Andrew Geissler9aee5002022-03-30 16:27:02 +000088PACKAGECONFIG[v4l2codecs] = "-Dv4l2codecs=enabled,-Dv4l2codecs=disabled,libgudev"
89PACKAGECONFIG[va] = "-Dva=enabled,-Dva=disabled,libva"
90PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc"
91PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc"
92PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native"
93PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm"
94PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp"
95PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice"
96PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing"
97PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar"
98PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libxcb libxkbcommon"
99PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265"
100
101GSTREAMER_GPL = "${@bb.utils.filter('PACKAGECONFIG', 'faad resindvd x265', d)}"
102
103EXTRA_OEMESON += " \
104 -Ddoc=disabled \
105 -Daes=enabled \
106 -Dcodecalpha=enabled \
107 -Ddecklink=enabled \
108 -Ddvb=enabled \
109 -Dfbdev=enabled \
110 -Dipcpipeline=enabled \
111 -Dshm=enabled \
112 -Dtranscode=enabled \
113 -Dandroidmedia=disabled \
114 -Dapplemedia=disabled \
115 -Dasio=disabled \
Andrew Geissler9aee5002022-03-30 16:27:02 +0000116 -Dbs2b=disabled \
117 -Dchromaprint=disabled \
118 -Dd3dvideosink=disabled \
119 -Dd3d11=disabled \
120 -Ddirectsound=disabled \
121 -Ddts=disabled \
122 -Dfdkaac=disabled \
123 -Dflite=disabled \
124 -Dgme=disabled \
125 -Dgs=disabled \
126 -Dgsm=disabled \
127 -Diqa=disabled \
128 -Dkate=disabled \
129 -Dladspa=disabled \
130 -Dldac=disabled \
131 -Dlv2=disabled \
132 -Dmagicleap=disabled \
133 -Dmediafoundation=disabled \
134 -Dmicrodns=disabled \
135 -Dmpeg2enc=disabled \
136 -Dmplex=disabled \
137 -Dmusepack=disabled \
138 -Dnvcodec=disabled \
139 -Dopenexr=disabled \
140 -Dopenni2=disabled \
141 -Dopenaptx=disabled \
142 -Dopensles=disabled \
143 -Donnx=disabled \
144 -Dqroverlay=disabled \
145 -Dsoundtouch=disabled \
146 -Dspandsp=disabled \
147 -Dsvthevcenc=disabled \
148 -Dteletext=disabled \
149 -Dwasapi=disabled \
150 -Dwasapi2=disabled \
151 -Dwildmidi=disabled \
152 -Dwinks=disabled \
153 -Dwinscreencap=disabled \
154 -Dwpe=disabled \
155 -Dzxing=disabled \
156"
157
158export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
159
160ARM_INSTRUCTION_SET:armv4 = "arm"
161ARM_INSTRUCTION_SET:armv5 = "arm"
162
163FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs"
164FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*"
165FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles"
166FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs"