blob: c40d39891199442bc3c22a669d6c1a6a411f56cf [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Plugins for the GStreamer multimedia framework 1.x"
2HOMEPAGE = "http://gstreamer.freedesktop.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
4SECTION = "multimedia"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006DEPENDS = "gstreamer1.0 glib-2.0-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Patrick Williamsc0f7c042017-02-23 20:41:17 -06008inherit autotools pkgconfig upstream-version-is-even gobject-introspection gtk-doc
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
10acpaths = "-I ${S}/common/m4 -I ${S}/m4"
11
12LIBV = "1.0"
13require gst-plugins-package.inc
14
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015# Orc enables runtime JIT compilation of data processing routines from Orc
16# bytecode to SIMD instructions for various architectures (currently SSE, MMX,
17# MIPS, Altivec and NEON are supported).
18
19GSTREAMER_ORC ?= "orc"
20
21PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc orc-native"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024
25export ORCC = "${STAGING_DIR_NATIVE}${bindir}/orcc"
26
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027EXTRA_OECONF = " \
28 --disable-examples \
29"
30
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031delete_pkg_m4_file() {
32 # This m4 file is out of date and is missing PKG_CONFIG_SYSROOT_PATH tweaks which we need for introspection
33 rm "${S}/common/m4/pkg.m4" || true
Patrick Williamsc0f7c042017-02-23 20:41:17 -060034 rm -f "${S}/common/m4/gtk-doc.m4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035}
36
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037# gstreamer is not using system-wide makefiles (which we patch in gtkdoc recipe,
38# but its own custom ones, which we have to patch here
39patch_gtk_doc_makefiles() {
40 # Patch the gtk-doc makefiles so that the qemu wrapper is used to run transient binaries
41 # instead of libtool wrapper or running them directly
42 # Also substitute a bogus plugin scanner, as trying to run the real one is causing issues during build on x86_64.
43 sed -i \
44 -e "s|GTKDOC_RUN =.*|GTKDOC_RUN = \$(top_builddir)/gtkdoc-qemuwrapper|" \
45 -e "s|\$(GTKDOC_EXTRA_ENVIRONMENT)|\$(GTKDOC_EXTRA_ENVIRONMENT) GST_PLUGIN_SCANNER_1_0=\$(top_builddir)/libs/gst/helpers/gst-plugin-scanner-dummy|" \
46 ${S}/common/gtk-doc*mak
47}
48
49do_configure[prefuncs] += " delete_pkg_m4_file patch_gtk_doc_makefiles"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050050
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051PACKAGES_DYNAMIC = "^${PN}-.*"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050052
53# qemu-mips64: error while loading shared libraries: .../recipe-sysroot/usr/lib/libgthread-2.0.so.0: ELF file data encoding not little-endian
54EXTRA_OECONF_append_mips64 = " --disable-introspection "