blob: d698904349e2e58980ed91822b5dc242bc6e162c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "OpenMAX IL plugins for GStreamer"
2SECTION = "multimedia"
3LICENSE = "LGPLv2.1"
4LICENSE_FLAGS = "commercial"
5HOMEPAGE = "http://www.gstreamer.net/"
6DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
7RDEPENDS_${PN} = "libomxil"
8
9inherit autotools pkgconfig gettext
10
11acpaths = "-I ${S}/common/m4 -I ${S}/m4"
12
13PR = "r1"
14
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 () {
21 omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET", True)
22 if omx_target in ['generic', 'bellagio']:
23 srcdir = d.getVar("S", True)
24 # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,#
25 # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros);
26 # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this
27 d.appendVar("CFLAGS", " -I%s/omx/openmax" % srcdir)
28 elif omx_target == "rpi":
29 # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific
30 d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH", True))
31}
32
33set_omx_core_name() {
34 sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf"
35}
36do_install[postfuncs] += " set_omx_core_name "
37
38FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
39FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug"
40FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
41FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
42