blob: 5d9235104ecca93b615a3a24012ef964eb0eaba3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "OpenMAX IL plugins for GStreamer"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002HOMEPAGE = "http://gstreamer.freedesktop.org/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003SECTION = "multimedia"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05004
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005LICENSE = "LGPLv2.1"
6LICENSE_FLAGS = "commercial"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010inherit autotools pkgconfig gettext gtk-doc upstream-version-is-even
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12acpaths = "-I ${S}/common/m4 -I ${S}/m4"
13
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15GSTREAMER_1_0_OMX_TARGET ?= "bellagio"
16GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0"
17
18EXTRA_OECONF += "--disable-valgrind --with-omx-target=${GSTREAMER_1_0_OMX_TARGET}"
19
20python __anonymous () {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET")
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 if omx_target in ['generic', 'bellagio']:
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,#
24 # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros);
25 # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this
Patrick Williamsf1e5d692016-03-30 15:21:19 -050026 d.appendVar("CFLAGS", " -I${S}/omx/openmax")
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 elif omx_target == "rpi":
28 # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029 d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH"))
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030}
31
Brad Bishopd7bf8c12018-02-25 22:55:05 -050032delete_pkg_m4_file() {
33 # Delete m4 files which we provide patched versions of but will be ignored
34 # if these exist
35 rm -f "${S}/common/m4/pkg.m4"
36 rm -f "${S}/common/m4/gtk-doc.m4"
37}
38do_configure[prefuncs] += "delete_pkg_m4_file"
39
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040set_omx_core_name() {
41 sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf"
42}
43do_install[postfuncs] += " set_omx_core_name "
44
45FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
47FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
48
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050049RDEPENDS_${PN} = "libomxil"