From nobody Tue Feb 27 21:26:15 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkrBw0Hr8z5CS90; Tue, 27 Feb 2024 21:26:16 +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 4TkrBv6t9Xz46T1; Tue, 27 Feb 2024 21:26:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709069176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QW79b/gRn2ONkZ7wjvOEIvS6YeSXFsdDCyqPLvxej94=; b=TrE6qE5TX2YKx03kEAxmR45YBx7k17B+bNrWt+PT4n7dCi4H8kv1lwdkGwq4vlBL8JO7cY zbI5lHsQUDjIBaQ+a42ecVN96GtI10JMyxfXDz1XRetkfXKdEJGco4U16pOxphLHTPh/qP lqr4f13yBoKQ5pZWyFGvofCSWCF9XuKD7EBu+vvNqD8D2ES10GySu1jhOLLzRN+UOqUQiD zn941lWetZoO7oqgl/ZSLbmjQTVzym++ZNeNqiQcnN9xHafsHmGR3lGUFc2dcbVOWCijbw 8aNROdnVgLVq/uuW4Vu0TF0Xr360q50gWuxzBvD4yzpvrJu/iTTPIWmQzp6ExQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709069176; a=rsa-sha256; cv=none; b=Xx4fbjphDEic6PNRVGfj6sYB+gr9n87MK3nH0W13hBYps47H3/qg4f8/PbkfG8AceaqUoJ Fy2KjSmJFn2yAwLzweydgWcrZC5PVmSp5ZFKDnZCXFt8h2dFKncREPM0/ulcN7a5fAFQQG T8PRl4hE+ldyzu1Wp7rSLQ9wJ8BVgbHxdcDu5yDASUxkByauP3pGNVezD7A+0QV11RHyRG paY0xcY0/OGz6OT4jmyt47FVJ8NVQBMqawuJieKJZXahVjPc6fnSyz7GAWOJcue7AnQ30h pvCKZISAY5sx44x1A1AnpA8leQTUuK84154/QiI6ONN23zpEiSDi+oVmFuqGzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709069176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QW79b/gRn2ONkZ7wjvOEIvS6YeSXFsdDCyqPLvxej94=; b=T27DQbuPls5n6bvYuAW5Ot0zPqaHAwwVXrbsk+7uFkOIplfTYyqPF1lIf6nmfjoyKPHAzp TCc8HdvB1oWrzsWfraWnIdX4fdTgS3ZKLFnnlEz9x+iQwZJBlaulykQ1BVnwb0UeDkohwE h4RddAnRj0GNKuIbUYam8VjuU26hrHcMm9FDPPX2z9O0ypSal6vVE2iDhzGxH9jcyuYeZU tT1bS3YG8tT23juqpk3YiZWbtifCiqH2XskF07zW1XRw03lfsq/hxKZmOUVNOJOTZ05eCl OHOJeOudLt1ArExln9CgWfK6c0uUMU2fhre1dAlgrUJjYArHgxqWZqaliVk/SA== 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 4TkrBv5xJVzTxc; Tue, 27 Feb 2024 21:26:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41RLQF2N063191; Tue, 27 Feb 2024 21:26:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41RLQFhJ063188; Tue, 27 Feb 2024 21:26:15 GMT (envelope-from git) Date: Tue, 27 Feb 2024 21:26:15 GMT Message-Id: <202402272126.41RLQFhJ063188@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 3a0031639dc5 - main - graphics/spirv-cross: new port - required for games/lwjgl3 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3a0031639dc5fe8d44b003fbf93512d8aacc4648 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=3a0031639dc5fe8d44b003fbf93512d8aacc4648 commit 3a0031639dc5fe8d44b003fbf93512d8aacc4648 Author: Vladimir Druzenko AuthorDate: 2024-02-27 21:09:51 +0000 Commit: Vladimir Druzenko CommitDate: 2024-02-27 21:25:47 +0000 graphics/spirv-cross: new port - required for games/lwjgl3 Tool for parsing and converting SPIR-V to other shader languages. This port required for build lwjgl 3, and lwjgl 3 required for Java Minecraft Client 1.20.x run on FreeBSD without linux compatibility layer. PR: 275279 269879 269900 Approved by: arrowd (mentor) Differential Revision: https://reviews.freebsd.org/D44118 --- graphics/Makefile | 1 + graphics/spirv-cross/Makefile | 21 ++++++++++++++++++ graphics/spirv-cross/distinfo | 3 +++ graphics/spirv-cross/pkg-descr | 16 ++++++++++++++ graphics/spirv-cross/pkg-plist | 49 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 7f5fc8a673d8..2886d06c1cf4 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1121,6 +1121,7 @@ SUBDIR += skanpage SUBDIR += spectacle SUBDIR += spectacle-devel + SUBDIR += spirv-cross SUBDIR += spirv-tools SUBDIR += springgraph SUBDIR += squish diff --git a/graphics/spirv-cross/Makefile b/graphics/spirv-cross/Makefile new file mode 100644 index 000000000000..e13bb76af627 --- /dev/null +++ b/graphics/spirv-cross/Makefile @@ -0,0 +1,21 @@ +PORTNAME= spirv-cross +DISTVERSION= 1.3.275.0 +CATEGORIES= graphics + +MAINTAINER= vvd@FreeBSD.org +COMMENT= Tool for parsing and converting SPIR-V to other shader languages +WWW= https://github.com/KhronosGroup/SPIRV-Cross + +LICENSE= APACHE20 + +USES= cmake compiler:c++11-lib python:build + +USE_GITHUB= yes +GH_ACCOUNT= KhronosGroup +GH_PROJECT= SPIRV-Cross +GH_TAGNAME= vulkan-sdk-${DISTVERSION} + +CMAKE_ON= SPIRV_CROSS_SHARED +CMAKE_OFF= SPIRV_CROSS_ENABLE_TESTS + +.include diff --git a/graphics/spirv-cross/distinfo b/graphics/spirv-cross/distinfo new file mode 100644 index 000000000000..7d1f484997a5 --- /dev/null +++ b/graphics/spirv-cross/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708974344 +SHA256 (KhronosGroup-SPIRV-Cross-1.3.275.0-vulkan-sdk-1.3.275.0_GH0.tar.gz) = 429ec74372a7a64ef144a42ab6a1aa23ac284d8069f1b6e6152dcb822ab7b3b1 +SIZE (KhronosGroup-SPIRV-Cross-1.3.275.0-vulkan-sdk-1.3.275.0_GH0.tar.gz) = 1780553 diff --git a/graphics/spirv-cross/pkg-descr b/graphics/spirv-cross/pkg-descr new file mode 100644 index 000000000000..8497d2154502 --- /dev/null +++ b/graphics/spirv-cross/pkg-descr @@ -0,0 +1,16 @@ +SPIRV-Cross is a tool designed for parsing and converting SPIR-V to other shader +languages. + +Features: +* Convert SPIR-V to readable, usable and efficient GLSL +* Convert SPIR-V to readable, usable and efficient Metal Shading Language (MSL) +* Convert SPIR-V to readable, usable and efficient HLSL +* Convert SPIR-V to a JSON reflection format +* Convert SPIR-V to debuggable C++ [DEPRECATED] +* Reflection API to simplify the creation of Vulkan pipeline layouts +* Reflection API to modify and tweak OpDecorations +* Supports "all" of vertex, fragment, tessellation, geometry and compute shaders + +SPIRV-Cross tries hard to emit readable and clean output from the SPIR-V. +The goal is to emit GLSL or MSL that looks like it was written by a human and +not awkward IR/assembly-like code. diff --git a/graphics/spirv-cross/pkg-plist b/graphics/spirv-cross/pkg-plist new file mode 100644 index 000000000000..3bf0d154c593 --- /dev/null +++ b/graphics/spirv-cross/pkg-plist @@ -0,0 +1,49 @@ +bin/spirv-cross +include/spirv_cross/GLSL.std.450.h +include/spirv_cross/spirv.h +include/spirv_cross/spirv.hpp +include/spirv_cross/spirv_cfg.hpp +include/spirv_cross/spirv_common.hpp +include/spirv_cross/spirv_cpp.hpp +include/spirv_cross/spirv_cross.hpp +include/spirv_cross/spirv_cross_c.h +include/spirv_cross/spirv_cross_containers.hpp +include/spirv_cross/spirv_cross_error_handling.hpp +include/spirv_cross/spirv_cross_parsed_ir.hpp +include/spirv_cross/spirv_cross_util.hpp +include/spirv_cross/spirv_glsl.hpp +include/spirv_cross/spirv_hlsl.hpp +include/spirv_cross/spirv_msl.hpp +include/spirv_cross/spirv_parser.hpp +include/spirv_cross/spirv_reflect.hpp +lib/libspirv-cross-c-shared.so +lib/libspirv-cross-c-shared.so.0 +lib/libspirv-cross-c-shared.so.0.58.0 +lib/libspirv-cross-c.a +lib/libspirv-cross-core.a +lib/libspirv-cross-cpp.a +lib/libspirv-cross-glsl.a +lib/libspirv-cross-hlsl.a +lib/libspirv-cross-msl.a +lib/libspirv-cross-reflect.a +lib/libspirv-cross-util.a +libdata/pkgconfig/spirv-cross-c-shared.pc +libdata/pkgconfig/spirv-cross-c.pc +share/spirv_cross_c/cmake/spirv_cross_cConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_c/cmake/spirv_cross_cConfig.cmake +share/spirv_cross_c_shared/cmake/spirv_cross_c_sharedConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_c_shared/cmake/spirv_cross_c_sharedConfig.cmake +share/spirv_cross_core/cmake/spirv_cross_coreConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_core/cmake/spirv_cross_coreConfig.cmake +share/spirv_cross_cpp/cmake/spirv_cross_cppConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_cpp/cmake/spirv_cross_cppConfig.cmake +share/spirv_cross_glsl/cmake/spirv_cross_glslConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_glsl/cmake/spirv_cross_glslConfig.cmake +share/spirv_cross_hlsl/cmake/spirv_cross_hlslConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_hlsl/cmake/spirv_cross_hlslConfig.cmake +share/spirv_cross_msl/cmake/spirv_cross_mslConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_msl/cmake/spirv_cross_mslConfig.cmake +share/spirv_cross_reflect/cmake/spirv_cross_reflectConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_reflect/cmake/spirv_cross_reflectConfig.cmake +share/spirv_cross_util/cmake/spirv_cross_utilConfig-%%CMAKE_BUILD_TYPE%%.cmake +share/spirv_cross_util/cmake/spirv_cross_utilConfig.cmake