Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenMAX IL plugins for GStreamer" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | SECTION = "multimedia" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | LICENSE = "LGPLv2.1" |
| 6 | LICENSE_FLAGS = "commercial" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 7 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | inherit autotools pkgconfig gettext gtk-doc upstream-version-is-even |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | acpaths = "-I ${S}/common/m4 -I ${S}/m4" |
| 13 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | |
| 15 | GSTREAMER_1_0_OMX_TARGET ?= "bellagio" |
| 16 | GSTREAMER_1_0_OMX_CORE_NAME ?= "${libdir}/libomxil-bellagio.so.0" |
| 17 | |
| 18 | EXTRA_OECONF += "--disable-valgrind --with-omx-target=${GSTREAMER_1_0_OMX_TARGET}" |
| 19 | |
| 20 | python __anonymous () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET") |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | if omx_target in ['generic', 'bellagio']: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | # 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 Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 26 | d.appendVar("CFLAGS", " -I${S}/omx/openmax") |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | elif omx_target == "rpi": |
| 28 | # Dedicated Raspberry Pi OpenMAX IL support makes this package machine specific |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | d.setVar("PACKAGE_ARCH", d.getVar("MACHINE_ARCH")) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | } |
| 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 32 | delete_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 | } |
| 38 | do_configure[prefuncs] += "delete_pkg_m4_file" |
| 39 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | set_omx_core_name() { |
| 41 | sed -i -e "s;^core-name=.*;core-name=${GSTREAMER_1_0_OMX_CORE_NAME};" "${D}${sysconfdir}/xdg/gstomx.conf" |
| 42 | } |
| 43 | do_install[postfuncs] += " set_omx_core_name " |
| 44 | |
| 45 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la" |
| 47 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" |
| 48 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 49 | RDEPENDS_${PN} = "libomxil" |