blob: 9cfcec3ca586191be63318478316315a9d517768 [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
31SRC_URI_append = " file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch"
32
33delete_pkg_m4_file() {
34 # This m4 file is out of date and is missing PKG_CONFIG_SYSROOT_PATH tweaks which we need for introspection
35 rm "${S}/common/m4/pkg.m4" || true
Patrick Williamsc0f7c042017-02-23 20:41:17 -060036 rm -f "${S}/common/m4/gtk-doc.m4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037}
38
Patrick Williamsc0f7c042017-02-23 20:41:17 -060039# gstreamer is not using system-wide makefiles (which we patch in gtkdoc recipe,
40# but its own custom ones, which we have to patch here
41patch_gtk_doc_makefiles() {
42 # Patch the gtk-doc makefiles so that the qemu wrapper is used to run transient binaries
43 # instead of libtool wrapper or running them directly
44 # Also substitute a bogus plugin scanner, as trying to run the real one is causing issues during build on x86_64.
45 sed -i \
46 -e "s|GTKDOC_RUN =.*|GTKDOC_RUN = \$(top_builddir)/gtkdoc-qemuwrapper|" \
47 -e "s|\$(GTKDOC_EXTRA_ENVIRONMENT)|\$(GTKDOC_EXTRA_ENVIRONMENT) GST_PLUGIN_SCANNER_1_0=\$(top_builddir)/libs/gst/helpers/gst-plugin-scanner-dummy|" \
48 ${S}/common/gtk-doc*mak
49}
50
51do_configure[prefuncs] += " delete_pkg_m4_file patch_gtk_doc_makefiles"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050052
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053PACKAGES_DYNAMIC = "^${PN}-.*"