summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb119
1 files changed, 119 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb
new file mode 100644
index 00000000..1a6197d5
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb
@@ -0,0 +1,119 @@
1# This recipe is for the i.MX fork of gstreamer1.0-plugins-good. 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: 937817e5164f8af8452aec03ae3c45cb23d63df9
7
8require gstreamer1.0-plugins-common.inc
9
10SUMMARY = "'Good' GStreamer plugins"
11HOMEPAGE = "https://gstreamer.freedesktop.org/"
12BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues"
13
14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
15 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
16 file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch"
17
18SRC_URI[sha256sum] = "b67b31313a54c6929b82969d41d3cfdf2f58db573fb5f491e6bba5d84aea0778"
19
20S = "${WORKDIR}/gst-plugins-good-${PV}"
21
22LICENSE = "LGPL-2.1-or-later"
23LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
24 file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
25
26DEPENDS += "gstreamer1.0-plugins-base libcap zlib"
27RPROVIDES:${PN}-pulseaudio += "${PN}-pulse"
28RPROVIDES:${PN}-soup += "${PN}-souphttpsrc"
29RDEPENDS:${PN}-soup += "${MLPREFIX}${@bb.utils.contains('PACKAGECONFIG', 'soup2', 'libsoup-2.4', 'libsoup', d)}"
30
31PACKAGECONFIG_SOUP ?= "soup3"
32
33PACKAGECONFIG ??= " \
34 ${GSTREAMER_ORC} \
35 ${PACKAGECONFIG_SOUP} \
36 ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
37 ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'asm', '', d)} \
38 bz2 cairo flac gdk-pixbuf gudev jpeg lame libpng mpg123 speex taglib v4l2 \
39"
40
41X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
42X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled"
43X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled"
44
45QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
46
47PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native"
48PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
49PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
50PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394"
51PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac"
52PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
53PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3"
54PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev"
55PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
56PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
57PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame"
58PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
59PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils"
60PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123"
61PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio"
62PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native ${QT5WAYLANDDEPENDS}"
63PACKAGECONFIG[soup2] = "-Dsoup=enabled,,libsoup-2.4,,,soup3"
64PACKAGECONFIG[soup3] = "-Dsoup=enabled,,libsoup,,,soup2"
65PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex"
66PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland"
67PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib"
68PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false"
69PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx"
70PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack"
71PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
72
73EXTRA_OEMESON += " \
74 -Ddoc=disabled \
75 -Daalib=disabled \
76 -Ddirectsound=disabled \
77 -Ddv=disabled \
78 -Dlibcaca=disabled \
79 -Doss=enabled \
80 -Doss4=disabled \
81 -Dosxaudio=disabled \
82 -Dosxvideo=disabled \
83 -Dshout2=disabled \
84 -Dtwolame=disabled \
85 -Dwaveform=disabled \
86"
87
88FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs"
89
90########### End of OE-core copy ###########
91
92########### i.MX overrides ################
93
94DEFAULT_PREFERENCE = "-1"
95
96LIC_FILES_CHKSUM = " \
97 file://LICENSE.txt;md5=a6f89e2100d9b6cdffcea4f398e37343 \
98 file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe \
99"
100
101# fb implementation of v4l2 uses libdrm
102DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'v4l2', '${DEPENDS_V4L2}', '', d)}"
103DEPENDS_V4L2 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'libdrm', d)}"
104
105SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
106 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
107 file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch \
108"
109
110SRC_URI:prepend = "${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} "
111GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-good.git;protocol=https"
112SRCBRANCH = "MM_04.08.02_2310_L6.1.y"
113SRCREV = "a4631334ad32abc513bde8f73491ef345f865a48"
114
115S = "${WORKDIR}/git"
116
117COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
118
119########### End of i.MX overrides #########