git: 32a2725c9250 - main - multimedia/onevpl: update to 2022.1.4

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 28 May 2022 00:50:51 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=32a2725c9250598660891ddd47cb777237df1c99

commit 32a2725c9250598660891ddd47cb777237df1c99
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-05-27 22:25:48 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-05-28 00:49:29 +0000

    multimedia/onevpl: update to 2022.1.4
    
    Changes:        https://github.com/oneapi-src/oneVPL/compare/v2022.1.3...v2022.1.4
    Reported by:    Repology
---
 multimedia/onevpl/Makefile         |  3 +-
 multimedia/onevpl/distinfo         |  6 ++--
 multimedia/onevpl/files/patch-unix | 65 ++++++++++----------------------------
 3 files changed, 21 insertions(+), 53 deletions(-)

diff --git a/multimedia/onevpl/Makefile b/multimedia/onevpl/Makefile
index 9d62fdbe34d1..b3aba3f0634b 100644
--- a/multimedia/onevpl/Makefile
+++ b/multimedia/onevpl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	oneVPL
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2022.1.3
+DISTVERSION=	2022.1.4
 CATEGORIES=	multimedia
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -12,6 +12,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 ONLY_FOR_ARCHS=	amd64
 ONLY_FOR_ARCHS_REASON=	only Intel GPUs on x86 are supported
 
+BUILD_DEPENDS=	wayland-protocols>0:graphics/wayland-protocols
 LIB_DEPENDS=	libdrm.so:graphics/libdrm \
 		libwayland-client.so:graphics/wayland \
 		libva.so:multimedia/libva
diff --git a/multimedia/onevpl/distinfo b/multimedia/onevpl/distinfo
index 4834cd93b972..ca1f1b5a5a66 100644
--- a/multimedia/onevpl/distinfo
+++ b/multimedia/onevpl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1652480904
-SHA256 (oneapi-src-oneVPL-v2022.1.3_GH0.tar.gz) = 283b92352fbf2dfe45afec8a1172226327cc2544a2c18eaa4bb62b6f53d9bdca
-SIZE (oneapi-src-oneVPL-v2022.1.3_GH0.tar.gz) = 5858956
+TIMESTAMP = 1653690348
+SHA256 (oneapi-src-oneVPL-v2022.1.4_GH0.tar.gz) = 939f158ea7f011be14069326ee0a95be1776c364032e6ca800b01d2f2b2e9597
+SIZE (oneapi-src-oneVPL-v2022.1.4_GH0.tar.gz) = 5859910
diff --git a/multimedia/onevpl/files/patch-unix b/multimedia/onevpl/files/patch-unix
index 776e4e19c84d..68ab91e1c0ef 100644
--- a/multimedia/onevpl/files/patch-unix
+++ b/multimedia/onevpl/files/patch-unix
@@ -39,6 +39,17 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
         #define MFX_DEPRECATED __attribute__((deprecated))
         #if defined(__cplusplus)
           #define MFX_DEPRECATED_ENUM_FIELD_INSIDE(arg) arg __attribute__((deprecated))
+--- dispatcher/test/unit/src/dispatcher_enum_impls.cpp.orig	2022-05-27 22:25:48 UTC
++++ dispatcher/test/unit/src/dispatcher_enum_impls.cpp
+@@ -28,7 +28,7 @@ typedef enum {
+             #define STUB_RT "libvplstubrt64.dll"
+         #endif
+     #endif
+-#elif defined(__linux__)
++#elif defined(__unix__)
+     #define STUB_RT "libvplstubrt1x64.so"
+ #endif
+ 
 --- dispatcher/vpl/mfx_dispatcher_vpl.h.orig	2022-01-21 23:15:32 UTC
 +++ dispatcher/vpl/mfx_dispatcher_vpl.h
 @@ -48,7 +48,7 @@ typedef char CHAR_TYPE;
@@ -351,58 +362,14 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
      #ifdef LIBVA_SUPPORT
      vaTerminate((VADisplay)accelHandle);
      close(fd);
---- tools/legacy/sample_common/CMakeLists.txt.orig	2022-02-05 00:35:54 UTC
+--- tools/legacy/sample_common/CMakeLists.txt.orig	2022-05-27 22:25:48 UTC
 +++ tools/legacy/sample_common/CMakeLists.txt
-@@ -63,7 +63,7 @@ find_package(VPL REQUIRED)
- target_link_libraries(sample_common PUBLIC VPL::dispatcher
-                                            media_sdk_compatibility_headers)
- 
--if(CMAKE_SYSTEM_NAME MATCHES Linux)
-+if(UNIX AND NOT APPLE)
- 
-   if(BUILD_TOOLS_ONEVPL_EXPERIMENTAL)
-     add_definitions(-DONEVPL_EXPERIMENTAL)
---- tools/legacy/sample_decode/CMakeLists.txt.orig	2021-12-07 00:05:44 UTC
-+++ tools/legacy/sample_decode/CMakeLists.txt
-@@ -11,7 +11,7 @@ if(POLICY CMP0074)
-   cmake_policy(SET CMP0074 OLD)
- endif()
- 
--if(CMAKE_SYSTEM_NAME MATCHES Linux)
-+if(UNIX AND NOT APPLE)
-   if(NOT
-      (PKG_LIBVA_FOUND
-       AND PKG_LIBVA_DRM_FOUND
---- tools/legacy/sample_encode/CMakeLists.txt.orig	2022-02-05 00:35:54 UTC
-+++ tools/legacy/sample_encode/CMakeLists.txt
-@@ -11,7 +11,7 @@ if(POLICY CMP0074)
-   cmake_policy(SET CMP0074 OLD)
- endif()
- 
--if(CMAKE_SYSTEM_NAME MATCHES Linux)
-+if(UNIX AND NOT APPLE)
-   if(NOT
-      (PKG_LIBDRM_FOUND
-       AND PKG_LIBVA_FOUND
---- tools/legacy/sample_vpp/CMakeLists.txt.orig	2022-02-05 00:35:54 UTC
-+++ tools/legacy/sample_vpp/CMakeLists.txt
-@@ -25,7 +25,7 @@ if(POLICY CMP0074)
-   cmake_policy(SET CMP0074 OLD)
+@@ -61,7 +61,7 @@ endif()
+   target_compile_definitions(sample_common PUBLIC -DONEVPL_EXPERIMENTAL)
  endif()
  
 -if(CMAKE_SYSTEM_NAME MATCHES Linux)
 +if(UNIX AND NOT APPLE)
-   if(NOT
-      (PKG_LIBDRM_FOUND
-       AND PKG_LIBVA_FOUND
---- tools/legacy/sample_multi_transcode/CMakeLists.txt.orig	2021-12-07 00:05:44 UTC
-+++ tools/legacy/sample_multi_transcode/CMakeLists.txt
-@@ -11,7 +11,7 @@ endif()
- 
- find_package(VPL REQUIRED)
+   target_compile_definitions(sample_common PUBLIC LINUX64)
  
--if(CMAKE_SYSTEM_NAME MATCHES Linux)
-+if(UNIX AND NOT APPLE)
-   if(NOT
-      (PKG_LIBVA_FOUND
-       AND PKG_LIBVA_DRM_FOUND
+   find_package(PkgConfig REQUIRED)