blob: be554a6a1470f6be32ac2babf2247d6318352d0e [file] [log] [blame]
Andrew Geissler6ce62a22020-11-30 19:58:47 -06001SUMMARY = "Gstreamer validation tool"
2DESCRIPTION = "A Tool to test GStreamer components"
3HOMEPAGE = "https://gstreamer.freedesktop.org/documentation/gst-devtools/index.html"
4SECTION = "multimedia"
5
6LICENSE = "LGPLv2.1"
7LIC_FILES_CHKSUM = "file://validate/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
8
9#S = "${WORKDIR}/gst-devtools-${PV}"
10
11SRC_URI = "https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-${PV}.tar.xz \
12 file://0001-connect-has-a-different-signature-on-musl.patch \
13 "
14
Andrew Geissler95ac1b82021-03-31 14:34:31 -050015SRC_URI[sha256sum] = "ffbd194c40912cb5e7fca2863648bf9dd8257b7af97d3a60c4fcd4efd8526ccf"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060016
17DEPENDS = "json-glib glib-2.0 glib-2.0-native gstreamer1.0 gstreamer1.0-plugins-base"
Patrick Williams213cb262021-08-07 19:21:33 -050018RRECOMMENDS:${PN} = "git"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060019
Patrick Williams213cb262021-08-07 19:21:33 -050020FILES:${PN} += "${datadir}/gstreamer-1.0/* ${libdir}/gst-validate-launcher/* ${libdir}/gstreamer-1.0/*"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060021
22inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection
23
24# TODO: put this in a gettext.bbclass patch
25def gettext_oemeson(d):
26 if d.getVar('USE_NLS') == 'no':
27 return '-Dnls=disabled'
28 # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set
29 if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
30 return '-Dnls=disabled'
31 return '-Dnls=enabled'
32
33EXTRA_OEMESON += " \
34 -Ddoc=disabled \
35 -Ddebug_viewer=disabled \
36 -Dtests=disabled \
37 -Dvalidate=enabled \
38 ${@gettext_oemeson(d)} \
39"
40
Patrick Williams213cb262021-08-07 19:21:33 -050041do_install:append () {
Andrew Geissler90fd73c2021-03-05 15:25:55 -060042 for fn in ${bindir}/gst-validate-launcher \
43 ${libdir}/gst-validate-launcher/python/launcher/config.py; do
44 sed -i -e 's,${B},/usr/src/debug/${PN},g' -e 's,${S},/usr/src/debug/${PN},g' ${D}$fn
45 done
46}
47
Andrew Geissler6ce62a22020-11-30 19:58:47 -060048GIR_MESON_ENABLE_FLAG = "enabled"
49GIR_MESON_DISABLE_FLAG = "disabled"