blob: 8f135b38390308f7b1e65e8cb684ea8a4e01e31d [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "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 = "LGPLv2+"
8
Andrew Geissler6ce62a22020-11-30 19:58:47 -06009DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
Andrew Geisslerc926e172021-05-07 16:11:35 -050011inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
13LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \
14 file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d"
15
16S = "${WORKDIR}/gstreamer-${PV}"
17
Andrew Geissler6ce62a22020-11-30 19:58:47 -060018SRC_URI = "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.xz \
Andrew Geisslerc926e172021-05-07 16:11:35 -050019 file://run-ptest \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060020 file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \
21 file://0002-Remove-unused-valgrind-detection.patch \
Andrew Geisslerc926e172021-05-07 16:11:35 -050022 file://0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch \
23 file://0004-tests-respect-the-idententaion-used-in-meson.patch \
24 file://0005-tests-add-support-for-install-the-tests.patch \
25 file://0006-tests-use-a-dictionaries-for-environment.patch \
26 file://0007-tests-install-the-environment-for-installed_tests.patch \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060027 "
Andrew Geissler95ac1b82021-03-31 14:34:31 -050028SRC_URI[sha256sum] = "9aeec99b38e310817012aa2d1d76573b787af47f8a725a65b833880a094dfbc5"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
30PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
31 check \
32 debug \
33 tools"
34
35PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false"
36PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false"
Andrew Geissler95ac1b82021-03-31 14:34:31 -050037PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled"
39PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled-tests=true,-Dtests=disabled -Dinstalled-tests=false"
Andrew Geissler82c905d2020-04-13 13:39:40 -050040PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind"
41PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils"
42PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion"
43PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060044PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050045
46# TODO: put this in a gettext.bbclass patch
47def gettext_oemeson(d):
48 if d.getVar('USE_NLS') == 'no':
49 return '-Dnls=disabled'
50 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
51 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
52 return '-Dnls=disabled'
53 return '-Dnls=enabled'
54
55EXTRA_OEMESON += " \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060056 -Ddoc=disabled \
Andrew Geissler82c905d2020-04-13 13:39:40 -050057 -Dexamples=disabled \
58 -Ddbghelp=disabled \
59 ${@gettext_oemeson(d)} \
60"
61
Andrew Geissler82c905d2020-04-13 13:39:40 -050062GIR_MESON_ENABLE_FLAG = "enabled"
63GIR_MESON_DISABLE_FLAG = "disabled"
64
65PACKAGES += "${PN}-bash-completion"
66
67# Add the core element plugins to the main package
68FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
69FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
70FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
71FILES_${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb"
72
73CVE_PRODUCT = "gstreamer"
74
Andrew Geisslerc926e172021-05-07 16:11:35 -050075PTEST_BUILD_HOST_FILES = ""