blob: a04f155dc477bbc4a3c8766e906e31cee65917a4 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require gstreamer1.0-plugins.inc
2
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003SRC_URI_append = "\
4 file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \
5 file://0002-Makefile.am-prefix-calls-to-pkg-config-with-PKG_CONF.patch \
6 file://0003-riff-add-missing-include-directories-when-calling-in.patch \
7 file://0004-rtsp-drop-incorrect-reference-to-gstreamer-sdp-in-Ma.patch \
8"
9
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010LICENSE = "GPLv2+ & LGPLv2+"
11
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012DEPENDS += "iso-codes util-linux zlib"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
14inherit gettext
15
16PACKAGES_DYNAMIC =+ "^libgst.*"
17
18PACKAGECONFIG ??= " \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019 ${GSTREAMER_ORC} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020 ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
22 gio-unix-2.0 ivorbis ogg pango theora vorbis \
23"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025X11DEPENDS = "virtual/libx11 libsm libxrender libxv"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026X11ENABLEOPTS = "--enable-x --enable-xvideo --enable-xshm"
27X11DISABLEOPTS = "--disable-x --disable-xvideo --disable-xshm"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028
29PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
30PACKAGECONFIG[cdparanoia] = "--enable-cdparanoia,--disable-cdparanoia,cdparanoia"
31PACKAGECONFIG[gio-unix-2.0] = "--enable-gio_unix_2_0,--disable-gio_unix_2_0,glib-2.0"
32PACKAGECONFIG[ivorbis] = "--enable-ivorbis,--disable-ivorbis,tremor"
33PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libogg"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060034PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
36PACKAGECONFIG[theora] = "--enable-theora,--disable-theora,libtheora"
37PACKAGECONFIG[visual] = "--enable-libvisual,--disable-libvisual,libvisual"
38PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis"
39PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041EXTRA_OECONF += " \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042 --enable-zlib \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043"
44
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045CACHED_CONFIGUREVARS_append_x86 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
46
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047FILES_${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict"
48
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050049do_compile_prepend() {
50 export GIR_EXTRA_LIBS_PATH="${B}/gst-libs/gst/tag/.libs:${B}/gst-libs/gst/video/.libs:${B}/gst-libs/gst/audio/.libs:${B}/gst-libs/gst/rtp/.libs"
51}