blob: 0fff612eeeb6ceb98dd95d4dd1513e761f333a78 [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
10inherit autotools pkgconfig gettext
11
12acpaths = "-I ${S}/common/m4 -I ${S}/m4"
13
14PR = "r1"
15
16GSTREAMER_1_0_OMX_TARGET ?= "bellagio"
17GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0"
18
19EXTRA_OECONF += "--disable-valgrind --with-omx-target=${GSTREAMER_1_0_OMX_TARGET}"
20
21python __anonymous () {
22 omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET", True)
23 if omx_target in ['generic', 'bellagio']:
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 # 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
Patrick Williamsf1e5d692016-03-30 15:21:19 -050027 d.appendVar("CFLAGS", " -I${S}/omx/openmax")
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 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}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050036
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037do_install[postfuncs] += " set_omx_core_name "
38
39FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
41FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
42
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043RDEPENDS_${PN} = "libomxil"