diff options
Diffstat (limited to 'common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc')
-rw-r--r-- | common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc new file mode 100644 index 00000000..9fc32481 --- /dev/null +++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc | |||
@@ -0,0 +1,41 @@ | |||
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 = "http://www.freedesktop.org/software/vaapi/releases/${REALPN}/${REALPN}-${PV}.tar.bz2 \ | ||
15 | file://install-tests.patch" | ||
16 | |||
17 | SRC_URI[md5sum] = "7b1ede7193bc5a0aca921c490684f7b5" | ||
18 | SRC_URI[sha256sum] = "68e0598456fe17085f6b8b1ce3da066322cc02c363955fb319776a5404d2b0da" | ||
19 | |||
20 | S = "${WORKDIR}/${REALPN}-${PV}" | ||
21 | |||
22 | inherit autotools pkgconfig gtk-doc | ||
23 | |||
24 | PACKAGES =+ "${PN}-tests" | ||
25 | |||
26 | EXTRA_OECONF += "--with-gstreamer-api=${GST_API_VERSION}" | ||
27 | |||
28 | PACKAGECONFIG ??= "drm \ | ||
29 | ${@base_contains("DISTRO_FEATURES", "opengl x11", "glx", "", d)} \ | ||
30 | ${@base_contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \ | ||
31 | ${@base_contains("DISTRO_FEATURES", "x11", "x11", "", d)}" | ||
32 | |||
33 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm" | ||
34 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/mesa" | ||
35 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" | ||
36 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender" | ||
37 | |||
38 | FILES_${PN} += "${libdir}/gstreamer-*/*.so" | ||
39 | FILES_${PN}-dbg += "${libdir}/gstreamer-*/.debug" | ||
40 | FILES_${PN}-dev += "${libdir}/gstreamer-*/*.la ${libdir}/gstreamer-*/*.a" | ||
41 | FILES_${PN}-tests = "${bindir}/*" | ||