From owner-dev-commits-ports-branches@freebsd.org Wed Aug 4 12:18:10 2021 Return-Path: Delivered-To: dev-commits-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 938DA65D76A; Wed, 4 Aug 2021 12:18:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GfrNy1lvxz3pVr; Wed, 4 Aug 2021 12:18:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1258126901; Wed, 4 Aug 2021 12:18:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 174CI9Cx006249; Wed, 4 Aug 2021 12:18:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 174CI9qt006248; Wed, 4 Aug 2021 12:18:09 GMT (envelope-from git) Date: Wed, 4 Aug 2021 12:18:09 GMT Message-Id: <202108041218.174CI9qt006248@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jan Beich Subject: git: 29d1a75dae1f - 2021Q3 - graphics/vulkan-extension-layer: add new port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q3 X-Git-Reftype: branch X-Git-Commit: 29d1a75dae1fb8106524a3993eec1df12a43ceaf Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2021 12:18:10 -0000 The branch 2021Q3 has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=29d1a75dae1fb8106524a3993eec1df12a43ceaf commit 29d1a75dae1fb8106524a3993eec1df12a43ceaf Author: Jan Beich AuthorDate: 2021-07-24 12:00:12 +0000 Commit: Jan Beich CommitDate: 2021-08-04 12:05:36 +0000 graphics/vulkan-extension-layer: add new port There are some extensions and features in Vulkan that are not available everywhere due to various reasons. While not available, some extensions are capable of being done as layer and mapping to any Vulkan implementation regardless of it supporting the desired functionality or not. https://github.com/KhronosGroup/Vulkan-ValidationLayers (cherry picked from commit 64e16df573cf569f1d1056963fff072e990a2c3b) --- graphics/Makefile | 1 + graphics/vulkan-extension-layer/Makefile | 19 +++++++++++++++++++ graphics/vulkan-extension-layer/distinfo | 3 +++ .../files/patch-utils_vk__loader__platform.h | 11 +++++++++++ graphics/vulkan-extension-layer/pkg-descr | 7 +++++++ graphics/vulkan-extension-layer/pkg-plist | 5 +++++ 6 files changed, 46 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 1f97271abb6b..1fc090dadef5 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1085,6 +1085,7 @@ SUBDIR += vp SUBDIR += vpaint SUBDIR += vulkan-caps-viewer + SUBDIR += vulkan-extension-layer SUBDIR += vulkan-headers SUBDIR += vulkan-loader SUBDIR += vulkan-tools diff --git a/graphics/vulkan-extension-layer/Makefile b/graphics/vulkan-extension-layer/Makefile new file mode 100644 index 000000000000..421e1e39f02f --- /dev/null +++ b/graphics/vulkan-extension-layer/Makefile @@ -0,0 +1,19 @@ +PORTNAME= vulkan-extension-layer +DISTVERSIONPREFIX= v +DISTVERSION= 1.2.185 +CATEGORIES= graphics + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Layer providing Vulkan features when native support is unavailable + +LICENSE= APACHE20 + +BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers + +USES= cmake compiler:c++11-lib +USE_GITHUB= yes +USE_LDCONFIG= yes +GH_ACCOUNT= KhronosGroup +GH_PROJECT= Vulkan-ExtensionLayer + +.include diff --git a/graphics/vulkan-extension-layer/distinfo b/graphics/vulkan-extension-layer/distinfo new file mode 100644 index 000000000000..0fb508f8f83c --- /dev/null +++ b/graphics/vulkan-extension-layer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1625608724 +SHA256 (KhronosGroup-Vulkan-ExtensionLayer-v1.2.185_GH0.tar.gz) = 86e80ae16f80469a8746f1c98d2fac760e02d29aca2f9b9fd3142179985d8760 +SIZE (KhronosGroup-Vulkan-ExtensionLayer-v1.2.185_GH0.tar.gz) = 430806 diff --git a/graphics/vulkan-extension-layer/files/patch-utils_vk__loader__platform.h b/graphics/vulkan-extension-layer/files/patch-utils_vk__loader__platform.h new file mode 100644 index 000000000000..2f1cc369d485 --- /dev/null +++ b/graphics/vulkan-extension-layer/files/patch-utils_vk__loader__platform.h @@ -0,0 +1,11 @@ +--- utils/vk_loader_platform.h.orig 2021-07-21 20:54:27 UTC ++++ utils/vk_loader_platform.h +@@ -33,7 +33,7 @@ + #undef NOMINMAX + #include "vulkan/vk_sdk_platform.h" + +-#if defined(__linux__) || defined(__APPLE__) ++#if defined(__unix__) || defined(__APPLE__) + /* Linux-specific common code: */ + + // Headers: diff --git a/graphics/vulkan-extension-layer/pkg-descr b/graphics/vulkan-extension-layer/pkg-descr new file mode 100644 index 000000000000..202eaa5b3643 --- /dev/null +++ b/graphics/vulkan-extension-layer/pkg-descr @@ -0,0 +1,7 @@ +There are some extensions and features in Vulkan that are not +available everywhere due to various reasons. While not available, some +extensions are capable of being done as layer and mapping to any +Vulkan implementation regardless of it supporting the desired +functionality or not. + +WWW: https://github.com/KhronosGroup/Vulkan-ValidationLayers diff --git a/graphics/vulkan-extension-layer/pkg-plist b/graphics/vulkan-extension-layer/pkg-plist new file mode 100644 index 000000000000..24f41e7b4407 --- /dev/null +++ b/graphics/vulkan-extension-layer/pkg-plist @@ -0,0 +1,5 @@ +lib/libVkExtLayer_utils.a +lib/libVkLayer_khronos_synchronization2.so +lib/libVkLayer_khronos_timeline_semaphore.so +share/vulkan/explicit_layer.d/VkLayer_khronos_synchronization2.json +share/vulkan/explicit_layer.d/VkLayer_khronos_timeline_semaphore.json