summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2021-05-07 02:51:09 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2021-05-07 04:25:25 (GMT)
commit044d0dfebd41d978aa90f49a8f2c291604516a84 (patch)
tree387adc8a5895144a109209d542df04382f0b256c /recipes-multimedia
parentcc22f6c00964bc04706f81962f859ecb01547e4b (diff)
downloadmeta-intel-044d0dfebd41d978aa90f49a8f2c291604516a84.tar.gz
onevpl: add recipe
The oneAPI Video Processing Library (oneVPL) provides a single video processing API for encode, decode, and video processing that works across a wide range of accelerators. This repository contains the following components of oneVPL: * Copies of the oneVPL Specification API header files * oneVPL dispatcher * Examples demonstrating API usage * oneVPL command line tools Ref: https://github.com/oneapi-src/oneVPL Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/onevpl/onevpl/0001-cmake-Allow-build-env-to-set-variables.patch65
-rw-r--r--recipes-multimedia/onevpl/onevpl_2021.2.2.bb41
2 files changed, 106 insertions, 0 deletions
diff --git a/recipes-multimedia/onevpl/onevpl/0001-cmake-Allow-build-env-to-set-variables.patch b/recipes-multimedia/onevpl/onevpl/0001-cmake-Allow-build-env-to-set-variables.patch
new file mode 100644
index 0000000..bb867a8
--- /dev/null
+++ b/recipes-multimedia/onevpl/onevpl/0001-cmake-Allow-build-env-to-set-variables.patch
@@ -0,0 +1,65 @@
1From 79eea3016649aa9e33e564b6971473ac15fa601a Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Tue, 27 Apr 2021 17:09:01 +0800
4Subject: [PATCH] cmake: Allow build env to set variables
5
6Upstream-Status: Inappropriate
7
8Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
9---
10 cmake/oneAPIInstallDirs.cmake | 32 ++++++++++++++++++++++----------
11 1 file changed, 22 insertions(+), 10 deletions(-)
12
13diff --git a/cmake/oneAPIInstallDirs.cmake b/cmake/oneAPIInstallDirs.cmake
14index 184e19b..0773500 100644
15--- a/cmake/oneAPIInstallDirs.cmake
16+++ b/cmake/oneAPIInstallDirs.cmake
17@@ -8,23 +8,35 @@
18 # Set installation directories
19 #
20
21-if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
22- set(CMAKE_INSTALL_BINDIR bin32)
23- set(CMAKE_INSTALL_LIBDIR lib32)
24-else()
25- set(CMAKE_INSTALL_BINDIR bin)
26- set(CMAKE_INSTALL_LIBDIR lib)
27+if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
28+ set(CMAKE_INSTALL_LIBDIR lib)
29+endif()
30+
31+if(NOT DEFINED CMAKE_INSTALL_BINDIR)
32+ set(CMAKE_INSTALL_BINDIR bin)
33+endif()
34+
35+if(NOT DEFINED CMAKE_INSTALL_ENVDIR)
36+ set(CMAKE_INSTALL_ENVDIR env)
37+endif()
38+
39+if(NOT DEFINED CMAKE_INSTALL_MODDIR)
40+ set(CMAKE_INSTALL_MODDIR modulefiles)
41+endif()
42+
43+if(NOT CMAKE_INSTALL_EXAMPLEDIR)
44+ set(CMAKE_INSTALL_EXAMPLEDIR examples)
45+endif()
46+
47+if(NOT CMAKE_INSTALL_LICENSEDIR)
48+ set(CMAKE_INSTALL_LICENSEDIR licensing)
49 endif()
50
51 set(CMAKE_INSTALL_INCLUDEDIR include)
52 set(CMAKE_INSTALL_DOCDIR documentation)
53-set(CMAKE_INSTALL_ENVDIR env)
54-set(CMAKE_INSTALL_MODDIR modulefiles)
55 set(CMAKE_INSTALL_SYSCHECKDIR sys_check)
56 set(CMAKE_INSTALL_MODFILEDIR modulefiles)
57 set(CMAKE_INSTALL_REDISTDIR redist)
58-set(CMAKE_INSTALL_EXAMPLEDIR examples)
59-set(CMAKE_INSTALL_LICENSEDIR licensing)
60 set(CMAKE_INSTALL_TOOLSDIR tools)
61 set(CMAKE_INSTALL_SYSCONFDIR config)
62 set(CMAKE_INSTALL_SRCDIR src)
63--
642.17.1
65
diff --git a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
new file mode 100644
index 0000000..fe5599c
--- /dev/null
+++ b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
@@ -0,0 +1,41 @@
1SUMMARY = "oneAPI Video Processing Library"
2DESCRIPTION = "The oneAPI Video Processing Library (oneVPL) provides \
3a single video processing API for encode, decode, and video processing \
4that works across a wide range of accelerators."
5
6HOMEPAGE = "https://github.com/oneapi-src/oneVPL"
7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
9 file://third-party-programs.txt;md5=0a071a05786c453d52f8b3e511ed39c4"
10
11SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
12 file://0001-cmake-Allow-build-env-to-set-variables.patch \
13 "
14SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
15S = "${WORKDIR}/git"
16
17inherit cmake
18DEPENDS = "libva"
19
20COMPATIBLE_HOST = '(x86_64).*-linux'
21
22PACKAGES =+ "${PN}-examples"
23
24EXTRA_OECMAKE += " \
25 -DVPL_UTIL_PATH=${S}/examples/util \
26 -DCMAKE_INSTALL_ENVDIR=${datadir}/vpl/env \
27 -DCMAKE_INSTALL_MODDIR=${datadir}/vpl/modulefiles \
28 -DCMAKE_INSTALL_EXAMPLEDIR=${datadir}/vpl/examples \
29 -DCMAKE_INSTALL_LICENSEDIR=${datadir}/vpl/licensing \
30"
31do_install_append () {
32 # delete examples source files
33 find "${D}${datadir}/vpl/examples/" -type d \! -name 'examples' \! -name 'content' -exec rm -rf {} +
34}
35
36
37FILES_${PN}-examples = "${bindir}/dpcpp-blur \
38 ${bindir}/hello-* \
39 ${datadir}/vpl/examples \
40 "
41FILES_${PN} += "${datadir}"