diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.0.imx.bb')
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.0.imx.bb | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.0.imx.bb new file mode 100644 index 000000000..5d5a2425c --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.0.imx.bb | |||
| @@ -0,0 +1,132 @@ | |||
| 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 | |||
| 8 | require gstreamer1.0-plugins-common.inc | ||
| 9 | |||
| 10 | SUMMARY = "'Good' GStreamer plugins" | ||
| 11 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
| 12 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues" | ||
| 13 | |||
| 14 | SRC_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 | |||
| 18 | SRC_URI[sha256sum] = "b67b31313a54c6929b82969d41d3cfdf2f58db573fb5f491e6bba5d84aea0778" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/gst-plugins-good-${PV}" | ||
| 21 | |||
| 22 | LICENSE = "LGPL-2.1-or-later" | ||
| 23 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 24 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" | ||
| 25 | |||
| 26 | DEPENDS += "gstreamer1.0-plugins-base libcap zlib" | ||
| 27 | RPROVIDES:${PN}-pulseaudio += "${PN}-pulse" | ||
| 28 | RPROVIDES:${PN}-soup += "${PN}-souphttpsrc" | ||
| 29 | RDEPENDS:${PN}-soup += "${MLPREFIX}${@bb.utils.contains('PACKAGECONFIG', 'soup2', 'libsoup-2.4', 'libsoup', d)}" | ||
| 30 | |||
| 31 | PACKAGECONFIG_SOUP ?= "soup3" | ||
| 32 | |||
| 33 | PACKAGECONFIG ??= " \ | ||
| 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 | |||
| 41 | X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage" | ||
| 42 | X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled" | ||
| 43 | X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled" | ||
| 44 | |||
| 45 | QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}" | ||
| 46 | |||
| 47 | PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native" | ||
| 48 | PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2" | ||
| 49 | PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo" | ||
| 50 | PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394" | ||
| 51 | PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac" | ||
| 52 | PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf" | ||
| 53 | PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3" | ||
| 54 | PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev" | ||
| 55 | PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack" | ||
| 56 | PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg" | ||
| 57 | PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame" | ||
| 58 | PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng" | ||
| 59 | PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils" | ||
| 60 | PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123" | ||
| 61 | PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio" | ||
| 62 | PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native ${QT5WAYLANDDEPENDS}" | ||
| 63 | PACKAGECONFIG[soup2] = "-Dsoup=enabled,,libsoup-2.4,,,soup3" | ||
| 64 | PACKAGECONFIG[soup3] = "-Dsoup=enabled,,libsoup,,,soup2" | ||
| 65 | PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex" | ||
| 66 | PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland" | ||
| 67 | PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib" | ||
| 68 | PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false" | ||
| 69 | PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx" | ||
| 70 | PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack" | ||
| 71 | PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}" | ||
| 72 | |||
| 73 | EXTRA_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 | |||
| 88 | FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs" | ||
| 89 | |||
| 90 | ########### End of OE-core copy ########### | ||
| 91 | |||
| 92 | ########### i.MX overrides ################ | ||
| 93 | |||
| 94 | DEFAULT_PREFERENCE = "-1" | ||
| 95 | |||
| 96 | LIC_FILES_CHKSUM = " \ | ||
| 97 | file://LICENSE.txt;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
| 98 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe \ | ||
| 99 | " | ||
| 100 | # Enable pulsesink in gstreamer | ||
| 101 | PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 102 | |||
| 103 | # fb implementation of v4l2 uses libdrm | ||
| 104 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'v4l2', '${DEPENDS_V4L2}', '', d)}" | ||
| 105 | DEPENDS_V4L2 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'libdrm', d)}" | ||
| 106 | |||
| 107 | SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ | ||
| 108 | file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ | ||
| 109 | file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch \ | ||
| 110 | " | ||
| 111 | |||
| 112 | SRC_URI:prepend = "${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} " | ||
| 113 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-good.git;protocol=https" | ||
| 114 | SRCBRANCH = "MM_04.09.00_2405_L6.6.y" | ||
| 115 | SRCREV = "50535da48c564bd3a46b2e39e0a3a97cf7e86df3" | ||
| 116 | |||
| 117 | # set 32bit compile timer for 32-bit platform | ||
| 118 | GLIBC_64BIT_TIME_FLAGS:mx6-nxp-bsp = "" | ||
| 119 | GLIBC_64BIT_TIME_FLAGS:mx7-nxp-bsp = "" | ||
| 120 | INSANE_SKIP:mx6-nxp-bsp:append = " 32bit-time" | ||
| 121 | INSANE_SKIP:mx7-nxp-bsp:append = " 32bit-time" | ||
| 122 | |||
| 123 | # GCC-14 otherwise errors out | ||
| 124 | CFLAGS += " \ | ||
| 125 | -Wno-error=implicit-function-declaration \ | ||
| 126 | -Wno-error=incompatible-pointer-types \ | ||
| 127 | " | ||
| 128 | S = "${WORKDIR}/git" | ||
| 129 | |||
| 130 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
| 131 | |||
| 132 | ########### End of i.MX overrides ######### | ||
