diff options
Diffstat (limited to 'recipes-multimedia/gstreamer')
3 files changed, 18 insertions, 6 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.20.3.imx.bb index a3f22a0d..5777679d 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.20.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.20.3.imx.bb | |||
@@ -11,12 +11,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \ | |||
11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | 11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ |
12 | " | 12 | " |
13 | 13 | ||
14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \ | 14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${@get_gst_ver('${PV}')}.tar.xz \ |
15 | file://0001-libav-Fix-for-APNG-encoder-property-registration.patch \ | 15 | file://0001-libav-Fix-for-APNG-encoder-property-registration.patch \ |
16 | " | 16 | " |
17 | SRC_URI[sha256sum] = "3fedd10560fcdfaa1b6462cbf79a38c4e7b57d7f390359393fc0cef6dbf27dfe" | 17 | SRC_URI[sha256sum] = "3fedd10560fcdfaa1b6462cbf79a38c4e7b57d7f390359393fc0cef6dbf27dfe" |
18 | 18 | ||
19 | S = "${WORKDIR}/gst-libav-${PV}" | 19 | S = "${WORKDIR}/gst-libav-${@get_gst_ver('${PV}')}" |
20 | 20 | ||
21 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" | 21 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" |
22 | 22 | ||
@@ -26,6 +26,10 @@ EXTRA_OEMESON += " \ | |||
26 | -Dtests=disabled \ | 26 | -Dtests=disabled \ |
27 | " | 27 | " |
28 | 28 | ||
29 | # Drop .imx from PV | ||
30 | def get_gst_ver(v): | ||
31 | return oe.utils.trim_version(v, 3) | ||
32 | |||
29 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" | 33 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" |
30 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | 34 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" |
31 | 35 | ||
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" | |||
12 | LICENSE_FLAGS = "commercial" | 12 | LICENSE_FLAGS = "commercial" |
13 | 13 | ||
14 | SRC_URI = " \ | 14 | SRC_URI = " \ |
15 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ | 15 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${@get_gst_ver("${PV}")}.tar.xz \ |
16 | " | 16 | " |
17 | SRC_URI[sha256sum] = "8caa20789a09c304b49cf563d33cca9421b1875b84fcc187e4a385fa01d6aefd" | 17 | SRC_URI[sha256sum] = "8caa20789a09c304b49cf563d33cca9421b1875b84fcc187e4a385fa01d6aefd" |
18 | 18 | ||
19 | S = "${WORKDIR}/gst-plugins-ugly-${PV}" | 19 | S = "${WORKDIR}/gst-plugins-ugly-${@get_gst_ver("${PV}")}" |
20 | 20 | ||
21 | DEPENDS += "gstreamer1.0-plugins-base" | 21 | DEPENDS += "gstreamer1.0-plugins-base" |
22 | 22 | ||
@@ -42,6 +42,10 @@ EXTRA_OEMESON += " \ | |||
42 | -Dsidplay=disabled \ | 42 | -Dsidplay=disabled \ |
43 | " | 43 | " |
44 | 44 | ||
45 | # Drop .imx from PV | ||
46 | def get_gst_ver(v): | ||
47 | return oe.utils.trim_version(v, 3) | ||
48 | |||
45 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" | 49 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" |
46 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" | 50 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" |
47 | 51 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.20.3.imx.bb index 172cb083..2a3d9db6 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.20.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.20.3.imx.bb | |||
@@ -8,11 +8,11 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" | |||
8 | 8 | ||
9 | PNREAL = "gst-rtsp-server" | 9 | PNREAL = "gst-rtsp-server" |
10 | 10 | ||
11 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz" | 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${@get_gst_ver("${PV}")}.tar.xz" |
12 | 12 | ||
13 | SRC_URI[sha256sum] = "ee402718be9b127f0e5e66ca4c1b4f42e4926ec93ba307b7ccca5dc6cc9794ca" | 13 | SRC_URI[sha256sum] = "ee402718be9b127f0e5e66ca4c1b4f42e4926ec93ba307b7ccca5dc6cc9794ca" |
14 | 14 | ||
15 | S = "${WORKDIR}/${PNREAL}-${PV}" | 15 | S = "${WORKDIR}/${PNREAL}-${@get_gst_ver("${PV}")}" |
16 | 16 | ||
17 | inherit meson pkgconfig upstream-version-is-even gobject-introspection | 17 | inherit meson pkgconfig upstream-version-is-even gobject-introspection |
18 | 18 | ||
@@ -25,6 +25,10 @@ EXTRA_OEMESON += " \ | |||
25 | GIR_MESON_ENABLE_FLAG = "enabled" | 25 | GIR_MESON_ENABLE_FLAG = "enabled" |
26 | GIR_MESON_DISABLE_FLAG = "disabled" | 26 | GIR_MESON_DISABLE_FLAG = "disabled" |
27 | 27 | ||
28 | # Drop .imx from PV | ||
29 | def get_gst_ver(v): | ||
30 | return oe.utils.trim_version(v, 3) | ||
31 | |||
28 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well | 32 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well |
29 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc | 33 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc |
30 | 34 | ||