pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/shader-slang



Module Name:    pkgsrc
Committed By:   ktnb
Date:           Fri Sep 25 01:16:09 UTC 2026

Modified Files:
        pkgsrc/graphics/shader-slang: Makefile
Added Files:
        pkgsrc/graphics/shader-slang/patches: patch-include_slang.h

Log Message:
shader-slang: fixed github project name; added missed pathc


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/graphics/shader-slang/Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/shader-slang/patches/patch-include_slang.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/shader-slang/Makefile
diff -u pkgsrc/graphics/shader-slang/Makefile:1.1 pkgsrc/graphics/shader-slang/Makefile:1.2
--- pkgsrc/graphics/shader-slang/Makefile:1.1   Thu Sep 24 18:41:26 2026
+++ pkgsrc/graphics/shader-slang/Makefile       Fri Sep 25 01:16:09 2026
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2026/09/24 18:41:26 ktnb Exp $
+# $NetBSD: Makefile,v 1.2 2026/09/25 01:16:09 ktnb Exp $
 
 DISTNAME=              slang-2026.18
 PKGNAME=               shader-${DISTNAME}
 CATEGORIES=            graphics lang
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=shader-slang/}
 GITHUB_TAG=            v${PKGVERSION_NOREV}
+GITHUB_PROJECT=                slang
 GITHUB_SUBMODULES=     swiftlang swift-cmark 924936d0427cb25a61169739a7660230bffa6ea6 external/cmark
 GITHUB_SUBMODULES+=    shader-slang  slang-rhi 079b75b54c49e6546fd611c9a91a25307c279668 external/slang-rhi
 GITHUB_SUBMODULES+=    ocornut imgui 8936b58fe26e8c3da834b8f60b06511d537b4c63 external/imgui

Added files:

Index: pkgsrc/graphics/shader-slang/patches/patch-include_slang.h
diff -u /dev/null pkgsrc/graphics/shader-slang/patches/patch-include_slang.h:1.1
--- /dev/null   Fri Sep 25 01:16:09 2026
+++ pkgsrc/graphics/shader-slang/patches/patch-include_slang.h  Fri Sep 25 01:16:09 2026
@@ -0,0 +1,25 @@
+$NetBSD: patch-include_slang.h,v 1.1 2026/09/25 01:16:09 ktnb Exp $
+
+Consider NetBSD linux but don't require glibc features.
+
+--- include/slang.h.orig       2026-09-23 15:02:36.129068661 +0000
++++ include/slang.h
+@@ -98,7 +98,7 @@ Most applications should not need to touch this sectio
+         #define SLANG_WIN32 1
+     #elif defined(__ANDROID__)
+         #define SLANG_ANDROID 1
+-    #elif defined(__linux__) || defined(__CYGWIN__) /* note: __ANDROID__ implies __linux__ */
++    #elif defined(__NetBSD__) || defined(__linux__) || defined(__CYGWIN__) /* note: __ANDROID__ implies __linux__ */
+         #define SLANG_LINUX 1
+     #elif defined(__APPLE__)
+         #include "TargetConditionals.h"
+@@ -549,7 +549,9 @@ SLANG_COMPILE_TIME_ASSERT((SLANG_PTR_IS_64 ? 8 : 4) ==
+ 
+ // Backtrace
+ #if SLANG_LINUX_FAMILY
++    #if defined(__linux__)
+     #include <features.h> // for __GLIBC__ define, if using GNU libc
++    #endif
+     #if defined(__GLIBC__) || (__ANDROID_API__ >= 33)
+         #define SLANG_HAS_BACKTRACE 1
+     #else



Home | Main Index | Thread Index | Old Index