Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "GStreamer 1.0 multimedia framework" |
| 2 | DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \ |
| 3 | It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime." |
| 4 | HOMEPAGE = "http://gstreamer.freedesktop.org/" |
| 5 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" |
| 6 | SECTION = "multimedia" |
| 7 | LICENSE = "LGPLv2+" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 9 | DEPENDS = "glib-2.0 glib-2.0-native libcap libxml2 bison-native flex-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 11 | inherit autotools pkgconfig gettext upstream-version-is-even gobject-introspection gtk-doc |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 12 | |
| 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) |
| 15 | acpaths = "-I ${S}/common/m4 -I ${S}/m4" |
| 16 | |
| 17 | SRC_URI_append = " \ |
| 18 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | file://gtk-doc-tweaks.patch \ |
| 20 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 21 | " |
| 22 | |
| 23 | PACKAGECONFIG ??= "" |
| 24 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" |
| 26 | PACKAGECONFIG[tests] = "--enable-tests,--disable-tests" |
| 27 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 28 | PACKAGECONFIG[gst-tracer-hooks] = "--enable-gst-tracer-hooks,--disable-gst-tracer-hooks," |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | PACKAGECONFIG[unwind] = "--with-unwind,--without-unwind,libunwind" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | PACKAGECONFIG[dw] = "--with-dw,--without-dw,elfutils" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 32 | EXTRA_OECONF = " \ |
| 33 | --disable-dependency-tracking \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 34 | --disable-examples \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 35 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | |
| 37 | CACHED_CONFIGUREVARS += "ac_cv_header_valgrind_valgrind_h=no" |
| 38 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | # musl libc generates warnings if <sys/poll.h> is included directly |
| 40 | CACHED_CONFIGUREVARS += "ac_cv_header_sys_poll_h=no" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 42 | PACKAGES += "${PN}-bash-completion" |
| 43 | |
| 44 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" |
| 45 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include" |
| 46 | FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*" |
| 47 | |
| 48 | RRECOMMENDS_${PN}_qemux86 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" |
| 49 | RRECOMMENDS_${PN}_qemux86-64 += "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" |
| 50 | |
| 51 | delete_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 Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 54 | rm -f "${S}/common/m4/gtk-doc.m4" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 55 | } |
| 56 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 57 | do_configure[prefuncs] += "delete_pkg_m4_file" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 58 | |
| 59 | do_compile_prepend() { |
| 60 | export GIR_EXTRA_LIBS_PATH="${B}/gst/.libs:${B}/libs/gst/base/.libs" |
| 61 | } |