From owner-dev-commits-ports-all@freebsd.org Sat Jul 24 12:14:23 2021 Return-Path: Delivered-To: dev-commits-ports-all@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 66A4A65F85B; Sat, 24 Jul 2021 12:14:23 +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 4GX4qg21zWz4gLV; Sat, 24 Jul 2021 12:14:23 +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 2EE6910544; Sat, 24 Jul 2021 12:14:23 +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 16OCENN8037956; Sat, 24 Jul 2021 12:14:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16OCEN5Q037955; Sat, 24 Jul 2021 12:14:23 GMT (envelope-from git) Date: Sat, 24 Jul 2021 12:14:23 GMT Message-Id: <202107241214.16OCEN5Q037955@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 64e16df573cf - main - 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/main X-Git-Reftype: branch X-Git-Commit: 64e16df573cf569f1d1056963fff072e990a2c3b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2021 12:14:23 -0000 The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=64e16df573cf569f1d1056963fff072e990a2c3b commit 64e16df573cf569f1d1056963fff072e990a2c3b Author: Jan Beich AuthorDate: 2021-07-24 12:00:12 +0000 Commit: Jan Beich CommitDate: 2021-07-24 12:11:53 +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 --- 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 06d58239751e..2cee5538cdf5 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1088,6 +1088,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