blob: 7381458f477b8203df8adb8dda0e9cf030c15a45 [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"
34PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
35PACKAGECONFIG[theora] = "--enable-theora,--disable-theora,libtheora"
36PACKAGECONFIG[visual] = "--enable-libvisual,--disable-libvisual,libvisual"
37PACKAGECONFIG[vorbis] = "--enable-vorbis,--disable-vorbis,libvorbis"
38PACKAGECONFIG[x11] = "${X11ENABLEOPTS},${X11DISABLEOPTS},${X11DEPENDS}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040EXTRA_OECONF += " \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041 --enable-zlib \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042"
43
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044CACHED_CONFIGUREVARS_append_x86 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
45
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046FILES_${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict"
47
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050048do_compile_prepend() {
49 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"
50}