summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb')
-rw-r--r--recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb b/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb
new file mode 100644
index 0000000..851cc07
--- /dev/null
+++ b/recipes-multimedia/mediasdk/intel-mediasdk_21.1.3.bb
@@ -0,0 +1,60 @@
1SUMMARY = "Intel(R) Media SDK for hardware accelerated media processing"
2DESCRIPTION = "Intel(R) Media SDK provides an API to access hardware-accelerated \
3video decode, encode and filtering on IntelĀ® platforms with integrated graphics."
4
5HOMEPAGE = "https://github.com/Intel-Media-SDK/MediaSDK"
6BUGTRACKER = "https://github.com/Intel-Media-SDK/MediaSDK/issues"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=3cb331af679cd8f968bf799a9c55b46e"
10
11CVE_DETAILS = "intel:media_sdk"
12
13# Only for 64 bit until media-driver issues aren't fixed
14COMPATIBLE_HOST = '(x86_64).*-linux'
15COMPATIBLE_HOST_x86-x32 = "null"
16
17inherit features_check
18REQUIRED_DISTRO_FEATURES = "opengl"
19
20DEPENDS += "libdrm libva intel-media-driver"
21
22PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "dri3", "", d)} \
23 ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)} \
24 samples \
25 itt \
26 "
27
28PACKAGECONFIG[dri3] = "-DENABLE_X11_DRI3=ON, -DENABLE_X11_DRI3=OFF"
29PACKAGECONFIG[itt] = "-DENABLE_ITT=ON, -DENABLE_ITT=OFF, itt"
30PACKAGECONFIG[opencl] = "-DENABLE_OPENCL=ON, -DENABLE_OPENCL=OFF, ocl-icd opencl-clhpp opencl-headers"
31PACKAGECONFIG[samples] = "-DBUILD_SAMPLES=ON, -DBUILD_SAMPLES=OFF"
32PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND=ON, -DENABLE_WAYLAND=OFF, wayland wayland-native"
33
34SRC_URI = "git://github.com/Intel-Media-SDK/MediaSDK.git;protocol=https;nobranch=1;lfs=0 \
35 file://0001-FindITT.cmake-fix-detection-of-header-library.patch \
36 "
37
38SRCREV = "03164a0b491651c210abd4549ca5275ac974d105"
39S = "${WORKDIR}/git"
40
41UPSTREAM_CHECK_GITTAGREGEX = "^intel-mediasdk-(?P<pver>(\d+(\.\d+)+))$"
42
43inherit cmake pkgconfig
44
45EXTRA_OECMAKE += "-DMFX_INCLUDE=${S}/api/include"
46
47do_install_append() {
48 mv ${D}${datadir}/mfx/samples ${D}${libdir}/mfx/samples
49}
50
51PACKAGE_BEFORE_PN = " ${PN}-samples"
52
53FILES_${PN} += " \
54 ${libdir}/mfx \
55 ${datadir}/mfx/plugins.cfg \
56 "
57
58FILES_${PN}-samples = "${libdir}/mfx/samples"
59
60INSANE_SKIP_${PN}-samples += "staticdev"