From 33a4bdd8a7faa15cc649acbf9ee88b6bdc8b7329 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 11 Mar 2023 09:57:34 -0800 Subject: gstreamer1.0-libav,gstreamer1.0-plugins-ugly,gstreamer1.0-rtsp-server: Drop .imx when needing gstreamer version Fixes fetching errors otherwise, since it can not file source tarballs on gstreamer download servers with 1.20.3.imx suffix Signed-off-by: Khem Raj Cc: Jose Quaresma --- .../gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb') diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb index d961c5af..32af9683 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.20.3.imx.bb @@ -12,11 +12,11 @@ LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later" LICENSE_FLAGS = "commercial" SRC_URI = " \ - https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ + https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${@get_gst_ver("${PV}")}.tar.xz \ " SRC_URI[sha256sum] = "8caa20789a09c304b49cf563d33cca9421b1875b84fcc187e4a385fa01d6aefd" -S = "${WORKDIR}/gst-plugins-ugly-${PV}" +S = "${WORKDIR}/gst-plugins-ugly-${@get_gst_ver("${PV}")}" DEPENDS += "gstreamer1.0-plugins-base" @@ -42,6 +42,10 @@ EXTRA_OEMESON += " \ -Dsidplay=disabled \ " +# Drop .imx from PV +def get_gst_ver(v): + return oe.utils.trim_version(v, 3) + FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" -- cgit v1.2.3-54-g00ecf