pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/shaderc
Module Name: pkgsrc
Committed By: wiz
Date: Thu Jul 2 10:55:48 UTC 2026
Added Files:
pkgsrc/graphics/shaderc: DESCR Makefile PLIST distinfo
pkgsrc/graphics/shaderc/patches: patch-CMakeLists.txt
Log Message:
graphics/shaderc: import shaderc-2026.2
A collection of tools, libraries and tests for shader compilation.
At the moment it includes:
- glslc, a command line compiler for GLSL/HLSL to SPIR-V, and
- libshaderc, a library API for accessing `glslc` functionality.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/shaderc/DESCR \
pkgsrc/graphics/shaderc/Makefile pkgsrc/graphics/shaderc/PLIST \
pkgsrc/graphics/shaderc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/shaderc/patches/patch-CMakeLists.txt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/shaderc/DESCR
diff -u /dev/null pkgsrc/graphics/shaderc/DESCR:1.1
--- /dev/null Thu Jul 2 10:55:48 2026
+++ pkgsrc/graphics/shaderc/DESCR Thu Jul 2 10:55:48 2026
@@ -0,0 +1,5 @@
+A collection of tools, libraries and tests for shader compilation.
+At the moment it includes:
+
+- glslc, a command line compiler for GLSL/HLSL to SPIR-V, and
+- libshaderc, a library API for accessing `glslc` functionality.
Index: pkgsrc/graphics/shaderc/Makefile
diff -u /dev/null pkgsrc/graphics/shaderc/Makefile:1.1
--- /dev/null Thu Jul 2 10:55:48 2026
+++ pkgsrc/graphics/shaderc/Makefile Thu Jul 2 10:55:48 2026
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2026/07/02 10:55:48 wiz Exp $
+
+# to get current vulkan SDK version, but we need to override GITHUB_TAG locally
+.include "../../graphics/vulkan-headers/Makefile.common"
+
+DISTNAME= shaderc-2026.2
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/google/shaderc/
+COMMENT= Tools, libraries, and tests for Vulkan shader compilation
+LICENSE= apache-2.0
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+CXXFLAGS+= -I${BUILDLINK_PREFIX.glslang}/include/glslang
+
+GITHUB_SUBMODULES+= KhronosGroup SPIRV-Tools vulkan-sdk-${SDK_VERSION} third_party/SPIRV-Tools
+
+# needs local googletest checkout
+CMAKE_CONFIGURE_ARGS+= -DSHADERC_SKIP_TESTS=ON
+CMAKE_CONFIGURE_ARGS+= -Dglslang_SOURCE_DIR:PATH=${PREFIX}/include/glslang
+CMAKE_CONFIGURE_ARGS+= -Dspirv-tools_SOURCE_DIR:PATH=${WRKSRC}/third_party/SPIRV-Tools
+
+PKGCONFIG_OVERRIDE+= cmake/shaderc.pc.in
+PKGCONFIG_OVERRIDE+= cmake/shaderc_combined.pc.in
+PKGCONFIG_OVERRIDE+= cmake/shaderc_static.pc.in
+
+.include "../../lang/python/tool.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../graphics/glslang/buildlink3.mk"
+.include "../../parallel/spirv-headers/buildlink3.mk"
+.include "../../parallel/spirv-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/shaderc/PLIST
diff -u /dev/null pkgsrc/graphics/shaderc/PLIST:1.1
--- /dev/null Thu Jul 2 10:55:48 2026
+++ pkgsrc/graphics/shaderc/PLIST Thu Jul 2 10:55:48 2026
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2026/07/02 10:55:48 wiz Exp $
+bin/glslc
+include/shaderc/env.h
+include/shaderc/shaderc.h
+include/shaderc/shaderc.hpp
+include/shaderc/status.h
+include/shaderc/visibility.h
+lib/libshaderc.a
+lib/libshaderc_combined.a
+lib/libshaderc_shared.so
+lib/libshaderc_shared.so.1
+lib/pkgconfig/shaderc.pc
+lib/pkgconfig/shaderc_combined.pc
+lib/pkgconfig/shaderc_static.pc
Index: pkgsrc/graphics/shaderc/distinfo
diff -u /dev/null pkgsrc/graphics/shaderc/distinfo:1.1
--- /dev/null Thu Jul 2 10:55:48 2026
+++ pkgsrc/graphics/shaderc/distinfo Thu Jul 2 10:55:48 2026
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2026/07/02 10:55:48 wiz Exp $
+
+BLAKE2s (KhronosGroup-SPIRV-Tools-vulkan-sdk-1.4.350.1.tar.gz) = 3afb3a428623ab729c270d7941cf377804db03f07a90827c9fe6e35b2f44caaa
+SHA512 (KhronosGroup-SPIRV-Tools-vulkan-sdk-1.4.350.1.tar.gz) = 97732eccca2292e80c1c2ca3d1a24fdd89ec342a4c312cb06949b29033c70b4ac3abc1551d8dacafe843e3719e4e160d4dd153195f7483584f40a646ecb74905
+Size (KhronosGroup-SPIRV-Tools-vulkan-sdk-1.4.350.1.tar.gz) = 3472729 bytes
+BLAKE2s (shaderc-2026.2.tar.gz) = 729d2b0ae3424ee3955666dc6d47118472b57ae15f58026d3563e50ee625ac6f
+SHA512 (shaderc-2026.2.tar.gz) = 733f85a83db4b71814c7f251c44e6010b485ed03d7e2389db5c14f8426942bebf6c95a35e5eaef80e51c29f8efa28cc0577226344630a427553200c6a87349ec
+Size (shaderc-2026.2.tar.gz) = 228959 bytes
+SHA1 (patch-CMakeLists.txt) = 2bd347afc30d601779d945d48a763267cc05f68b
Index: pkgsrc/graphics/shaderc/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/graphics/shaderc/patches/patch-CMakeLists.txt:1.1
--- /dev/null Thu Jul 2 10:55:48 2026
+++ pkgsrc/graphics/shaderc/patches/patch-CMakeLists.txt Thu Jul 2 10:55:48 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2026/07/02 10:55:48 wiz Exp $
+
+We provide the dependencies manually or from pkgsrc,
+avoid hacking detection.
+
+--- CMakeLists.txt.orig 2026-07-01 09:30:46.386568682 +0000
++++ CMakeLists.txt
+@@ -130,7 +130,7 @@ endif(MSVC)
+
+ # Configure subdirectories.
+ # We depend on these for later projects, so they should come first.
+-add_subdirectory(third_party)
++#add_subdirectory(third_party)
+
+ add_subdirectory(libshaderc_util)
+ add_subdirectory(libshaderc)
Home |
Main Index |
Thread Index |
Old Index