blob: 08130c1da40d1fee579bc4eec29c47bbc5e950d4 [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} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \
21 gio-unix-2.0 ogg pango theora vorbis \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024X11DEPENDS = "virtual/libx11 libsm libxrender libxv"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025X11ENABLEOPTS = "--enable-x --enable-xvideo --enable-xshm"
26X11DISABLEOPTS = "--disable-x --disable-xvideo --disable-xshm"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027
28PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
29PACKAGECONFIG[cdparanoia] = "--enable-cdparanoia,--disable-cdparanoia,cdparanoia"
30PACKAGECONFIG[gio-unix-2.0] = "--enable-gio_unix_2_0,--disable-gio_unix_2_0,glib-2.0"
31PACKAGECONFIG[ivorbis] = "--enable-ivorbis,--disable-ivorbis,tremor"
32PACKAGECONFIG[ogg] = "--enable-ogg,--disable-ogg,libogg"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060033PACKAGECONFIG[opus] = "--enable-opus,--disable-opus,libopus"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034PACKAGECONFIG[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}