summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb108
1 files changed, 108 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb
new file mode 100644
index 000000000..c6afdd98d
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0_1.26.6.imx.bb
@@ -0,0 +1,108 @@
1# This recipe is for the i.MX fork of gstreamer1.0. 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
8SUMMARY = "GStreamer 1.0 multimedia framework"
9DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \
10 It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime."
11HOMEPAGE = "http://gstreamer.freedesktop.org/"
12BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
13SECTION = "multimedia"
14LICENSE = "LGPL-2.1-or-later"
15
16DEPENDS = "bison-native flex-native glib-2.0 glib-2.0-native libxml2"
17
18inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome
19
20LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
21 file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
22
23SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
24 file://run-ptest \
25 file://0001-tests-respect-the-idententaion-used-in-meson.patch \
26 file://0002-tests-add-support-for-install-the-tests.patch \
27 file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \
28 file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \
29 "
30SRC_URI[sha256sum] = "4408d7930f381809e85917acc19712f173261ba85bdf20c5567b2a21b1193b61"
31
32PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
33 check \
34 debug \
35 tools"
36
37PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false"
38PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false"
39PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled"
40PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled"
41PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled_tests=true,-Dtests=disabled -Dinstalled_tests=false"
42PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
43PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils"
44PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion"
45PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled"
46PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native"
47
48# TODO: put this in a gettext.bbclass patch
49def gettext_oemeson(d):
50 if d.getVar('USE_NLS') == 'no':
51 return '-Dnls=disabled'
52 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
53 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
54 return '-Dnls=disabled'
55 return '-Dnls=enabled'
56
57EXTRA_OEMESON += "\
58 -Ddoc=disabled \
59 -Dexamples=disabled \
60 -Ddbghelp=disabled \
61 ${@gettext_oemeson(d)} \
62"
63
64GIR_MESON_ENABLE_FLAG = "enabled"
65GIR_MESON_DISABLE_FLAG = "disabled"
66
67PACKAGES += "${PN}-bash-completion"
68
69# Add the core element plugins to the main package
70FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
71FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
72FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
73FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb"
74
75RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-5"
76
77CVE_PRODUCT = "gstreamer"
78
79PTEST_BUILD_HOST_FILES = ""
80
81########### End of OE-core copy ###########
82
83########### i.MX overrides ################
84
85DEFAULT_PREFERENCE = "-1"
86
87LIC_FILES_CHKSUM = "\
88 file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
89 file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d \
90"
91
92# Use i.MX fork of GST for customizations
93SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
94 file://0001-tests-respect-the-idententaion-used-in-meson.patch \
95 file://0002-tests-add-support-for-install-the-tests.patch \
96 file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \
97 file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \
98"
99SRC_URI:prepend = "${GST1.0_SRC};branch=${SRCBRANCH} "
100GST1.0_SRC ?= "gitsm://github.com/nxp-imx/gstreamer.git;protocol=https"
101SRCBRANCH = "MM_04.10.03_2512_L6.18.2"
102SRCREV = "524a14c8906597f4fd302190adbd3a8af3572866"
103
104PACKAGECONFIG[tests] = "-Dtests=enabled,-Dtests=disabled"
105
106COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
107
108########### End of i.MX overrides #########