blob: 2eadb79637dd63411a52603a39b347d86f20f0a8 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "GStreamer 1.0 multimedia framework"
2DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \
3It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime."
4HOMEPAGE = "http://gstreamer.freedesktop.org/"
5BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
6SECTION = "multimedia"
7LICENSE = "LGPL-2.1-or-later"
8
9DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native"
10
11inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=69333daa044cb77e486cc36129f7a770 \
14 file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
15
16S = "${WORKDIR}/gstreamer-${PV}"
17
18SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
19 file://run-ptest \
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060020 file://0001-tests-respect-the-idententaion-used-in-meson.patch \
21 file://0002-tests-add-support-for-install-the-tests.patch \
Andrew Geissler517393d2023-01-13 08:55:19 -060022 file://0003-tests-use-a-dictionaries-for-environment.patch;striplevel=3 \
23 file://0004-tests-add-helper-script-to-run-the-installed_tests.patch;striplevel=3 \
Andrew Geissler517393d2023-01-13 08:55:19 -060024 "
Andrew Geissler8f840682023-07-21 09:09:43 -050025SRC_URI[sha256sum] = "11cb0498bc16b93d8b99d22f75f829b8d0abfd8254840b2120618db5532dc655"
Andrew Geissler517393d2023-01-13 08:55:19 -060026
27PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
28 check \
29 debug \
30 tools"
31
32PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false"
33PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false"
34PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled"
35PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled"
36PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled_tests=true,-Dtests=disabled -Dinstalled_tests=false"
37PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
38PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils"
39PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion"
40PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled"
41PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native"
42
43# TODO: put this in a gettext.bbclass patch
44def gettext_oemeson(d):
45 if d.getVar('USE_NLS') == 'no':
46 return '-Dnls=disabled'
47 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
48 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
49 return '-Dnls=disabled'
50 return '-Dnls=enabled'
51
52EXTRA_OEMESON += " \
53 -Ddoc=disabled \
54 -Dexamples=disabled \
55 -Ddbghelp=disabled \
56 ${@gettext_oemeson(d)} \
57"
58
59GIR_MESON_ENABLE_FLAG = "enabled"
60GIR_MESON_DISABLE_FLAG = "disabled"
61
62PACKAGES += "${PN}-bash-completion"
63
64# Add the core element plugins to the main package
65FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
66FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
67FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
68FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb"
69
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050070RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-5"
71
Andrew Geissler517393d2023-01-13 08:55:19 -060072CVE_PRODUCT = "gstreamer"
73
74PTEST_BUILD_HOST_FILES = ""