diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb')
| -rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb new file mode 100644 index 000000000..f968dbcd4 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | DESCRIPTION = "GStreamer 1.0 plugins for i.MX platforms" | ||
| 2 | LICENSE = "LGPLv2+" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=55ca817ccb7d5b5b66355690e9abc605" | ||
| 4 | SECTION = "multimedia" | ||
| 5 | # gstreamer1.0-plugins-bad is in DEPENDS because the build script scans for the | ||
| 6 | # GstPhotography headers and libraries | ||
| 7 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad virtual/kernel" | ||
| 8 | # add the audioparsers and the videoparsersbad plugins as RDEPENDS ; audioparsers | ||
| 9 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder | ||
| 10 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is | ||
| 11 | # build (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) | ||
| 12 | RDEPENDS_gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good" | ||
| 13 | RDEPENDS_gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" | ||
| 14 | RDEPENDS_gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" | ||
| 15 | |||
| 16 | SRCBRANCH ?= "master" | ||
| 17 | SRCREV = "11a7b366f211e54e0ec67c692287603a02640ff6" | ||
| 18 | SRC_URI = "git://github.com/Freescale/gstreamer-imx.git;branch=${SRCBRANCH}" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | inherit waf | ||
| 23 | |||
| 24 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | ||
| 25 | |||
| 26 | # configure the eglvivsink element to use the appropriate EGL platform code | ||
| 27 | # X11 if x11 is present in DISTRO_FEATURES | ||
| 28 | # Wayland if x11 is not present in DISTRO_FEATURES, but wayland is | ||
| 29 | # Framebuffer otherwise | ||
| 30 | EGLVIVSINK_PLATFORM = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', \ | ||
| 31 | base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | ||
| 32 | 'fb', d),d)}" | ||
| 33 | |||
| 34 | EGL_PLATFORM_CONF = "--egl-platform=${EGLVIVSINK_PLATFORM}" | ||
| 35 | EXTRA_OECONF = "--kernel-headers=${STAGING_KERNEL_DIR}/include" | ||
| 36 | |||
| 37 | EGLVIVSINK_DEPENDS = " \ | ||
| 38 | virtual/egl virtual/libgles2 \ | ||
| 39 | ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', \ | ||
| 40 | base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | ||
| 41 | '', d),d)}" | ||
| 42 | |||
| 43 | PACKAGECONFIG ?= "" | ||
| 44 | PACKAGECONFIG_mx6q = "uniaudiodec mp3encoder v4l2src g2d eglvivsink ipu vpu" | ||
| 45 | PACKAGECONFIG_mx6dl = "uniaudiodec mp3encoder v4l2src pxp g2d eglvivsink ipu vpu" | ||
| 46 | PACKAGECONFIG_mx6sx = "uniaudiodec mp3encoder v4l2src pxp g2d eglvivsink" | ||
| 47 | PACKAGECONFIG_mx6sl = "uniaudiodec mp3encoder v4l2src pxp g2d" | ||
| 48 | PACKAGECONFIG_mx7 = "uniaudiodec mp3encoder v4l2src pxp" | ||
| 49 | |||
| 50 | PACKAGECONFIG[g2d] = ",--disable-g2d,imx-gpu-viv" | ||
| 51 | PACKAGECONFIG[pxp] = ",--disable-pxp," | ||
| 52 | PACKAGECONFIG[ipu] = ",--disable-ipu," | ||
| 53 | PACKAGECONFIG[vpu] = ",--disable-vpu,libimxvpuapi" | ||
| 54 | PACKAGECONFIG[eglvivsink] = "${EGL_PLATFORM_CONF},--disable-eglvivsink,${EGLVIVSINK_DEPENDS}" | ||
| 55 | PACKAGECONFIG[v4l2src] = ",--disable-v4l2src," | ||
| 56 | PACKAGECONFIG[uniaudiodec] = ",--disable-uniaudiodec,libfslcodec" | ||
| 57 | PACKAGECONFIG[mp3encoder] = ",--disable-mp3encoder,libfslcodec" | ||
| 58 | |||
| 59 | # LIBV is used by gst-plugins-package.inc to specify the GStreamer version (0.10 vs 1.0) | ||
| 60 | LIBV = "1.0" | ||
| 61 | require recipes-multimedia/gstreamer/gst-plugins-package.inc | ||
| 62 | |||
| 63 | # the following line is required to produce one package for each plugin | ||
| 64 | PACKAGES_DYNAMIC = "^${PN}-.*" | ||
| 65 | |||
| 66 | COMPATIBLE_MACHINE = "(mx6|mx7)" | ||
| 67 | |||
| 68 | # disable the false alarm (the "it isn't a build dependency" QA warning) | ||
| 69 | INSANE_SKIP_gstreamer1.0-plugins-imx-imxaudio = "build-deps" | ||
| 70 | INSANE_SKIP_gstreamer1.0-plugins-imx-imxvpu = "build-deps" | ||
