gstreamer1.0-plugins-good_1.22.12.bb 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. require gstreamer1.0-plugins-common.inc
  2. SUMMARY = "'Good' GStreamer plugins"
  3. HOMEPAGE = "https://gstreamer.freedesktop.org/"
  4. BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues"
  5. SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
  6. file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
  7. file://0001-v4l2-Define-ioctl_req_t-for-posix-linux-case.patch \
  8. file://0001-qtdemux-Skip-zero-sized-boxes-instead-of-stopping-to.patch \
  9. file://0002-qtdemux-Fix-integer-overflow-when-allocating-the-sam.patch \
  10. file://0003-qtdemux-Fix-debug-output-during-trun-parsing.patch \
  11. file://0004-qtdemux-Don-t-iterate-over-all-trun-entries-if-none-.patch \
  12. file://0005-qtdemux-Check-sizes-of-stsc-stco-stts-before-trying-.patch \
  13. file://0006-qtdemux-Make-sure-only-an-even-number-of-bytes-is-pr.patch \
  14. file://0007-qtdemux-Make-sure-enough-data-is-available-before-re.patch \
  15. file://0008-qtdemux-Fix-length-checks-and-offsets-in-stsd-entry-.patch \
  16. file://0009-qtdemux-Fix-error-handling-when-parsing-cenc-sample-.patch \
  17. file://0010-qtdemux-Make-sure-there-are-enough-offsets-to-read-w.patch \
  18. file://0011-qtdemux-Actually-handle-errors-returns-from-various-.patch \
  19. file://0012-qtdemux-Check-for-invalid-atom-length-when-extractin.patch \
  20. file://0013-qtdemux-Add-size-check-for-parsing-SMI-SEQH-atom.patch \
  21. file://0014-gdkpixbufdec-Check-if-initializing-the-video-info-ac.patch \
  22. file://0015-matroskademux-Only-unmap-GstMapInfo-in-WavPack-heade.patch \
  23. file://0016-matroskademux-Fix-off-by-one-when-parsing-multi-chan.patch \
  24. file://0017-matroskademux-Check-for-big-enough-WavPack-codec-pri.patch \
  25. file://0018-matroskademux-Don-t-take-data-out-of-an-empty-adapte.patch \
  26. file://0019-matroskademux-Skip-over-laces-directly-when-postproc.patch \
  27. file://0020-matroskademux-Skip-over-zero-sized-Xiph-stream-heade.patch \
  28. file://0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch \
  29. file://0022-jpegdec-Directly-error-out-on-negotiation-failures.patch \
  30. file://0023-qtdemux-Avoid-integer-overflow-when-parsing-Theora-e.patch \
  31. file://0024-avisubtitle-Fix-size-checks-and-avoid-overflows-when.patch \
  32. file://0025-wavparse-Check-for-short-reads-when-parsing-headers-.patch \
  33. file://0026-wavparse-Make-sure-enough-data-for-the-tag-list-tag-.patch \
  34. file://0027-wavparse-Fix-parsing-of-acid-chunk.patch \
  35. file://0028-wavparse-Check-that-at-least-4-bytes-are-available-b.patch \
  36. file://0029-wavparse-Check-that-at-least-32-bytes-are-available-.patch \
  37. file://0030-wavparse-Fix-clipping-of-size-to-the-file-size.patch \
  38. file://0031-wavparse-Check-size-before-reading-ds64-chunk.patch \
  39. file://CVE-2025-47183-001.patch \
  40. file://CVE-2025-47183-002.patch \
  41. file://CVE-2025-47219.patch \
  42. "
  43. SRC_URI[sha256sum] = "9c1913f981900bd8867182639b20907b28ed78ef7a222cfbf2d8ba9dab992fa7"
  44. S = "${WORKDIR}/gst-plugins-good-${PV}"
  45. LICENSE = "LGPL-2.1-or-later"
  46. LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
  47. file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
  48. DEPENDS += "gstreamer1.0-plugins-base libcap zlib"
  49. RPROVIDES:${PN}-pulseaudio += "${PN}-pulse"
  50. RPROVIDES:${PN}-soup += "${PN}-souphttpsrc"
  51. RDEPENDS:${PN}-soup += "${MLPREFIX}${@bb.utils.contains('PACKAGECONFIG', 'soup2', 'libsoup-2.4', 'libsoup', d)}"
  52. PACKAGECONFIG_SOUP ?= "soup3"
  53. PACKAGECONFIG ??= " \
  54. ${GSTREAMER_ORC} \
  55. ${PACKAGECONFIG_SOUP} \
  56. ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
  57. ${@bb.utils.contains('TUNE_FEATURES', 'm64', 'asm', '', d)} \
  58. bz2 cairo flac gdk-pixbuf gudev jpeg lame libpng mpg123 speex taglib v4l2 \
  59. "
  60. X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
  61. X11ENABLEOPTS = "-Dximagesrc=enabled -Dximagesrc-xshm=enabled -Dximagesrc-xfixes=enabled -Dximagesrc-xdamage=enabled"
  62. X11DISABLEOPTS = "-Dximagesrc=disabled -Dximagesrc-xshm=disabled -Dximagesrc-xfixes=disabled -Dximagesrc-xdamage=disabled"
  63. QT5WAYLANDDEPENDS = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
  64. PACKAGECONFIG[asm] = "-Dasm=enabled,-Dasm=disabled,nasm-native"
  65. PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
  66. PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
  67. PACKAGECONFIG[dv1394] = "-Ddv1394=enabled,-Ddv1394=disabled,libiec61883 libavc1394 libraw1394"
  68. PACKAGECONFIG[flac] = "-Dflac=enabled,-Dflac=disabled,flac"
  69. PACKAGECONFIG[gdk-pixbuf] = "-Dgdk-pixbuf=enabled,-Dgdk-pixbuf=disabled,gdk-pixbuf"
  70. PACKAGECONFIG[gtk] = "-Dgtk3=enabled,-Dgtk3=disabled,gtk+3"
  71. PACKAGECONFIG[gudev] = "-Dv4l2-gudev=enabled,-Dv4l2-gudev=disabled,libgudev"
  72. PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack"
  73. PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
  74. PACKAGECONFIG[lame] = "-Dlame=enabled,-Dlame=disabled,lame"
  75. PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
  76. PACKAGECONFIG[libv4l2] = "-Dv4l2-libv4l2=enabled,-Dv4l2-libv4l2=disabled,v4l-utils"
  77. PACKAGECONFIG[mpg123] = "-Dmpg123=enabled,-Dmpg123=disabled,mpg123"
  78. PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio"
  79. PACKAGECONFIG[qt5] = "-Dqt5=enabled,-Dqt5=disabled,qtbase qtdeclarative qtbase-native qttools-native ${QT5WAYLANDDEPENDS}"
  80. PACKAGECONFIG[soup2] = "-Dsoup=enabled,,libsoup-2.4,,,soup3"
  81. PACKAGECONFIG[soup3] = "-Dsoup=enabled,,libsoup,,,soup2"
  82. PACKAGECONFIG[speex] = "-Dspeex=enabled,-Dspeex=disabled,speex"
  83. PACKAGECONFIG[rpi] = "-Drpicamsrc=enabled,-Drpicamsrc=disabled,userland"
  84. PACKAGECONFIG[taglib] = "-Dtaglib=enabled,-Dtaglib=disabled,taglib"
  85. PACKAGECONFIG[v4l2] = "-Dv4l2=enabled -Dv4l2-probe=true,-Dv4l2=disabled -Dv4l2-probe=false"
  86. PACKAGECONFIG[vpx] = "-Dvpx=enabled,-Dvpx=disabled,libvpx"
  87. PACKAGECONFIG[wavpack] = "-Dwavpack=enabled,-Dwavpack=disabled,wavpack"
  88. PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
  89. EXTRA_OEMESON += " \
  90. -Ddoc=disabled \
  91. -Daalib=disabled \
  92. -Ddirectsound=disabled \
  93. -Ddv=disabled \
  94. -Dlibcaca=disabled \
  95. -Doss=enabled \
  96. -Doss4=disabled \
  97. -Dosxaudio=disabled \
  98. -Dosxvideo=disabled \
  99. -Dshout2=disabled \
  100. -Dtwolame=disabled \
  101. -Dwaveform=disabled \
  102. "
  103. FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs"