diff options
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.18.2.bb')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.18.2.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.18.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.18.2.bb new file mode 100644 index 0000000000..686fcc2655 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.18.2.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SUMMARY = "OpenMAX IL plugins for GStreamer" | ||
2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
3 | SECTION = "multimedia" | ||
4 | |||
5 | LICENSE = "LGPLv2.1" | ||
6 | LICENSE_FLAGS = "commercial" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ | ||
8 | file://omx/gstomx.h;beginline=1;endline=21;md5=5c8e1fca32704488e76d2ba9ddfa935f" | ||
9 | |||
10 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-omx/gst-omx-${PV}.tar.xz" | ||
11 | |||
12 | SRC_URI[sha256sum] = "4c05d64544eecf4aaf5b337789916c67ed720317dfb2c8c8c335720fcc5c7cf4" | ||
13 | |||
14 | S = "${WORKDIR}/gst-omx-${PV}" | ||
15 | |||
16 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad virtual/libomxil" | ||
17 | |||
18 | inherit meson pkgconfig upstream-version-is-even | ||
19 | |||
20 | GSTREAMER_1_0_OMX_TARGET ?= "bellagio" | ||
21 | GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0" | ||
22 | |||
23 | EXTRA_OEMESON += "-Dtarget=${GSTREAMER_1_0_OMX_TARGET}" | ||
24 | |||
25 | python __anonymous () { | ||
26 | omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET") | ||
27 | if omx_target in ['generic', 'bellagio']: | ||
28 | # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,# | ||
29 | # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros); | ||
30 | # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this | ||
31 | d.appendVar("CFLAGS", " -I${S}/omx/openmax") | ||
32 | elif omx_target == "rpi": | ||
33 | # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific | ||
34 | d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH")) | ||
35 | } | ||
36 | |||
37 | set_omx_core_name() { | ||
38 | sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf" | ||
39 | } | ||
40 | do_install[postfuncs] += " set_omx_core_name " | ||
41 | |||
42 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" | ||
43 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
44 | |||
45 | VIRTUAL-RUNTIME_libomxil ?= "libomxil" | ||
46 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_libomxil}" | ||