blob: c2df1f325835d4fb3f6978ec0851cc3ee03d88ab [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -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+"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05009DEPENDS = "glib-2.0 glib-2.0-native libcap libxml2 bison-native flex-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
Patrick Williamsc0f7c042017-02-23 20:41:17 -060011inherit autotools pkgconfig gettext upstream-version-is-even gobject-introspection gtk-doc
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012
13# This way common/m4/introspection.m4 will come first
14# (it has a custom INTROSPECTION_INIT macro, and so must be used instead of our common introspection.m4 file)
15acpaths = "-I ${S}/common/m4 -I ${S}/m4"
16
17SRC_URI_append = " \
18 file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040019 file://gtk-doc-tweaks.patch \
20 file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021"
22
23PACKAGECONFIG ??= ""
24
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
26PACKAGECONFIG[tests] = "--enable-tests,--disable-tests"
27PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind,"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060028PACKAGECONFIG[gst-tracer-hooks] = "--enable-gst-tracer-hooks,--disable-gst-tracer-hooks,"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029PACKAGECONFIG[unwind] = "--with-unwind,--without-unwind,libunwind"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050030PACKAGECONFIG[dw] = "--with-dw,--without-dw,elfutils"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032EXTRA_OECONF = " \
33 --disable-dependency-tracking \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034 --disable-examples \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036
37CACHED_CONFIGUREVARS += "ac_cv_header_valgrind_valgrind_h=no"
38
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039# musl libc generates warnings if <sys/poll.h> is included directly
40CACHED_CONFIGUREVARS += "ac_cv_header_sys_poll_h=no"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042PACKAGES += "${PN}-bash-completion"
43
44FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
45FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include"
46FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*"
47
48RRECOMMENDS_${PN}_qemux86 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
49RRECOMMENDS_${PN}_qemux86-64 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
50
51delete_pkg_m4_file() {
52 # This m4 file is out of date and is missing PKG_CONFIG_SYSROOT_PATH tweaks which we need for introspection
53 rm "${S}/common/m4/pkg.m4" || true
Patrick Williamsc0f7c042017-02-23 20:41:17 -060054 rm -f "${S}/common/m4/gtk-doc.m4"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055}
56
Brad Bishop316dfdd2018-06-25 12:45:53 -040057do_configure[prefuncs] += "delete_pkg_m4_file"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050058
59do_compile_prepend() {
60 export GIR_EXTRA_LIBS_PATH="${B}/gst/.libs:${B}/libs/gst/base/.libs"
61}