diff options
3 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc new file mode 100644 index 0000000000..6dea9cfc3c --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc | |||
@@ -0,0 +1,36 @@ | |||
1 | SUMMARY = "VA-API support to GStreamer" | ||
2 | DESCRIPTION = "gstreamer-vaapi consists of a collection of VA-API \ | ||
3 | based plugins for GStreamer and helper libraries: `vaapidecode', \ | ||
4 | `vaapiconvert', and `vaapisink'." | ||
5 | |||
6 | REALPN = "gstreamer-vaapi" | ||
7 | FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${REALPN}", "${FILE_DIRNAME}/${REALPN}"], d)}" | ||
8 | |||
9 | LICENSE = "LGPLv2.1+" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | ||
11 | |||
12 | DEPENDS = "libva" | ||
13 | |||
14 | SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz \ | ||
15 | " | ||
16 | |||
17 | S = "${WORKDIR}/${REALPN}-${PV}" | ||
18 | |||
19 | inherit autotools pkgconfig gtk-doc | ||
20 | |||
21 | PACKAGES =+ "${PN}-tests" | ||
22 | |||
23 | PACKAGECONFIG ??= "drm \ | ||
24 | ${@bb.utils.contains("DISTRO_FEATURES", "opengl x11", "glx", "", d)} \ | ||
25 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \ | ||
26 | ${@bb.utils.contains("DISTRO_FEATURES", "x11", "x11", "", d)}" | ||
27 | |||
28 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm" | ||
29 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/mesa" | ||
30 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" | ||
31 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender" | ||
32 | |||
33 | FILES_${PN} += "${libdir}/gstreamer-*/*.so" | ||
34 | FILES_${PN}-dbg += "${libdir}/gstreamer-*/.debug" | ||
35 | FILES_${PN}-dev += "${libdir}/gstreamer-*/*.la ${libdir}/gstreamer-*/*.a" | ||
36 | FILES_${PN}-tests = "${bindir}/*" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/install-tests.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/install-tests.patch new file mode 100644 index 0000000000..d7def3a0c3 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/install-tests.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 2791dfde0de0abe8100fa833dfe1a9c2e74c2629 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jianxun Zhang <jianxun.zhang@linux.intel.com> | ||
3 | Date: Thu, 21 Jan 2016 16:25:44 -0800 | ||
4 | Subject: [PATCH] Install tests | ||
5 | |||
6 | This patch is updated for 0.6.1 | ||
7 | |||
8 | Upstream-Status: Inappropriate | ||
9 | |||
10 | Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com> | ||
11 | --- | ||
12 | tests/Makefile.am | 6 +++--- | ||
13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
16 | index 3637d92..7cc6a97 100644 | ||
17 | --- a/tests/Makefile.am | ||
18 | +++ b/tests/Makefile.am | ||
19 | @@ -1,4 +1,4 @@ | ||
20 | -noinst_PROGRAMS = \ | ||
21 | +bin_PROGRAMS = \ | ||
22 | simple-decoder \ | ||
23 | test-decode \ | ||
24 | test-display \ | ||
25 | @@ -9,13 +9,13 @@ noinst_PROGRAMS = \ | ||
26 | $(NULL) | ||
27 | |||
28 | if USE_ENCODERS | ||
29 | -noinst_PROGRAMS += \ | ||
30 | +bin_PROGRAMS += \ | ||
31 | simple-encoder \ | ||
32 | $(NULL) | ||
33 | endif | ||
34 | |||
35 | if USE_GLX | ||
36 | -noinst_PROGRAMS += \ | ||
37 | +bin_PROGRAMS += \ | ||
38 | test-textures \ | ||
39 | $(NULL) | ||
40 | endif | ||
41 | -- | ||
42 | 1.9.1 | ||
43 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.1.bb new file mode 100644 index 0000000000..1c727f5775 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.1.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require gstreamer1.0-vaapi.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "514757933ff719a6b8206091f70e0221" | ||
4 | SRC_URI[sha256sum] = "99aecaa609f37d65e12518b1e77cc70e3cc5dde0c7dfc8e83f508d7e64e1da34" | ||
5 | |||
6 | DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||