pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Sep  2 20:22:38 UTC 2026

Modified Files:
        pkgsrc/lang: Makefile
        pkgsrc/lang/llvm: version.mk
Added Files:
        pkgsrc/lang/libclc: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
libclc: added version 21.1.8

libclc is an open source implementation of the library requirements of
the OpenCL C programming language, as specified by the OpenCL 1.1
Specification. The following sections of the specification impose
library requirements:

    6.1: Supported Data Types
    6.2.3: Explicit Conversions
    6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
    6.9: Preprocessor Directives and Macros
    6.11: Built-in Functions
    9.3: Double Precision Floating-Point
    9.4: 64-bit Atomics
    9.5: Writing to 3D image memory objects
    9.6: Half Precision Floating-Point

libclc is intended to be used with the Clang compiler's OpenCL frontend.

libclc is designed to be portable and extensible. To this end, it
provides generic implementations of most library requirements,
allowing the target to override the generic implementation at the
granularity of individual functions.


To generate a diff of this commit:
cvs rdiff -u -r1.793 -r1.794 pkgsrc/lang/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/libclc/DESCR pkgsrc/lang/libclc/Makefile \
    pkgsrc/lang/libclc/PLIST pkgsrc/lang/libclc/buildlink3.mk \
    pkgsrc/lang/libclc/distinfo
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/llvm/version.mk

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

Modified files:

Index: pkgsrc/lang/Makefile
diff -u pkgsrc/lang/Makefile:1.793 pkgsrc/lang/Makefile:1.794
--- pkgsrc/lang/Makefile:1.793  Thu Aug 27 08:48:09 2026
+++ pkgsrc/lang/Makefile        Wed Sep  2 20:22:37 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.793 2026/08/27 08:48:09 adam Exp $
+# $NetBSD: Makefile,v 1.794 2026/09/02 20:22:37 adam Exp $
 #
 
 COMMENT=       Programming languages
@@ -183,6 +183,7 @@ SUBDIR+=    kotlin
 SUBDIR+=       ksi
 SUBDIR+=       libBlocksRuntime
 SUBDIR+=       libLLVM
+SUBDIR+=       libclc
 SUBDIR+=       libcxx
 SUBDIR+=       libcxxabi
 SUBDIR+=       libduktape

Index: pkgsrc/lang/llvm/version.mk
diff -u pkgsrc/lang/llvm/version.mk:1.21 pkgsrc/lang/llvm/version.mk:1.22
--- pkgsrc/lang/llvm/version.mk:1.21    Thu Apr 16 06:33:52 2026
+++ pkgsrc/lang/llvm/version.mk Wed Sep  2 20:22:38 2026
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.21 2026/04/16 06:33:52 wiz Exp $
+# $NetBSD: version.mk,v 1.22 2026/09/02 20:22:38 adam Exp $
 # used by devel/lld
 # used by devel/lldb
 # used by devel/polly
@@ -6,6 +6,7 @@
 # used by lang/clang-tools-extra
 # used by lang/compiler-rt
 # used by lang/flang
+# used by lang/libclc
 # used by lang/libcxx
 # used by lang/libcxxabi
 # used by lang/libunwind
@@ -37,5 +38,5 @@ EXTRACT_ELEMENTS+=    ${DISTNAME}/third-par
 # Gcc 8 (induced elsewhere) blows up on per-process VM space.
 # Ref. https://mail-index.netbsd.org/pkgsrc-users/2025/06/21/msg041678.html
 # Also, the llvm produced by gcc 8 or 10 crashes when building wasi-libc.
-GCC_REQD+=             14
+GCC_REQD+=     14
 .endif

Added files:

Index: pkgsrc/lang/libclc/DESCR
diff -u /dev/null pkgsrc/lang/libclc/DESCR:1.1
--- /dev/null   Wed Sep  2 20:22:38 2026
+++ pkgsrc/lang/libclc/DESCR    Wed Sep  2 20:22:38 2026
@@ -0,0 +1,21 @@
+libclc is an open source implementation of the library requirements of
+the OpenCL C programming language, as specified by the OpenCL 1.1
+Specification. The following sections of the specification impose
+library requirements:
+
+    6.1: Supported Data Types
+    6.2.3: Explicit Conversions
+    6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
+    6.9: Preprocessor Directives and Macros
+    6.11: Built-in Functions
+    9.3: Double Precision Floating-Point
+    9.4: 64-bit Atomics
+    9.5: Writing to 3D image memory objects
+    9.6: Half Precision Floating-Point
+
+libclc is intended to be used with the Clang compiler's OpenCL frontend.
+
+libclc is designed to be portable and extensible. To this end, it
+provides generic implementations of most library requirements,
+allowing the target to override the generic implementation at the
+granularity of individual functions.
Index: pkgsrc/lang/libclc/Makefile
diff -u /dev/null pkgsrc/lang/libclc/Makefile:1.1
--- /dev/null   Wed Sep  2 20:22:38 2026
+++ pkgsrc/lang/libclc/Makefile Wed Sep  2 20:22:38 2026
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2026/09/02 20:22:38 adam Exp $
+
+.include "../../lang/llvm/version.mk"
+
+PKGNAME=       libclc-${LLVM_VERSION}
+CATEGORIES=    lang
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://libclc.llvm.org/
+COMMENT=       OpenCL library
+LICENSE=       apache-2.0
+
+USE_CXX_FEATURES=      c++17
+USE_LANGUAGES=         c c++
+GCC_REQD+=             7
+
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q}
+
+PYTHON_FOR_BUILD_ONLY= yes
+
+PKGCONFIG_OVERRIDE+=   libclc.pc.in
+
+.include "../../devel/cmake/build.mk"
+.include "../../lang/clang/buildlink3.mk"
+.include "../../lang/libunwind/buildlink3.mk"
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../parallel/spirv-tools/buildlink3.mk"
+.include "../../parallel/spirv-llvm-translator/buildlink3.mk"
+.include "../../mk/atomic64.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/libclc/PLIST
diff -u /dev/null pkgsrc/lang/libclc/PLIST:1.1
--- /dev/null   Wed Sep  2 20:22:38 2026
+++ pkgsrc/lang/libclc/PLIST    Wed Sep  2 20:22:38 2026
@@ -0,0 +1,128 @@
+@comment $NetBSD: PLIST,v 1.1 2026/09/02 20:22:38 adam Exp $
+share/clc/amdgcn--amdhsa.bc
+share/clc/aruba-r600--.bc
+share/clc/barts-r600--.bc
+share/clc/bonaire-amdgcn--.bc
+share/clc/bonaire-amdgcn-mesa-mesa3d.bc
+share/clc/caicos-r600--.bc
+share/clc/carrizo-amdgcn--.bc
+share/clc/carrizo-amdgcn-mesa-mesa3d.bc
+share/clc/cayman-r600--.bc
+share/clc/cedar-r600--.bc
+share/clc/clspv--.bc
+share/clc/clspv64--.bc
+share/clc/cypress-r600--.bc
+share/clc/fiji-amdgcn--.bc
+share/clc/fiji-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1010-amdgcn--.bc
+share/clc/gfx1010-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1011-amdgcn--.bc
+share/clc/gfx1011-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1012-amdgcn--.bc
+share/clc/gfx1012-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1013-amdgcn--.bc
+share/clc/gfx1013-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1030-amdgcn--.bc
+share/clc/gfx1030-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1031-amdgcn--.bc
+share/clc/gfx1031-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1032-amdgcn--.bc
+share/clc/gfx1032-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1033-amdgcn--.bc
+share/clc/gfx1033-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1034-amdgcn--.bc
+share/clc/gfx1034-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1035-amdgcn--.bc
+share/clc/gfx1035-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1036-amdgcn--.bc
+share/clc/gfx1036-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1100-amdgcn--.bc
+share/clc/gfx1100-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1101-amdgcn--.bc
+share/clc/gfx1101-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1102-amdgcn--.bc
+share/clc/gfx1102-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1103-amdgcn--.bc
+share/clc/gfx1103-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1150-amdgcn--.bc
+share/clc/gfx1150-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1151-amdgcn--.bc
+share/clc/gfx1151-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1152-amdgcn--.bc
+share/clc/gfx1152-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1153-amdgcn--.bc
+share/clc/gfx1153-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1200-amdgcn--.bc
+share/clc/gfx1200-amdgcn-mesa-mesa3d.bc
+share/clc/gfx1201-amdgcn--.bc
+share/clc/gfx1201-amdgcn-mesa-mesa3d.bc
+share/clc/gfx602-amdgcn--.bc
+share/clc/gfx602-amdgcn-mesa-mesa3d.bc
+share/clc/gfx705-amdgcn--.bc
+share/clc/gfx705-amdgcn-mesa-mesa3d.bc
+share/clc/gfx805-amdgcn--.bc
+share/clc/gfx805-amdgcn-mesa-mesa3d.bc
+share/clc/gfx900-amdgcn--.bc
+share/clc/gfx900-amdgcn-mesa-mesa3d.bc
+share/clc/gfx902-amdgcn--.bc
+share/clc/gfx902-amdgcn-mesa-mesa3d.bc
+share/clc/gfx904-amdgcn--.bc
+share/clc/gfx904-amdgcn-mesa-mesa3d.bc
+share/clc/gfx906-amdgcn--.bc
+share/clc/gfx906-amdgcn-mesa-mesa3d.bc
+share/clc/gfx908-amdgcn--.bc
+share/clc/gfx908-amdgcn-mesa-mesa3d.bc
+share/clc/gfx909-amdgcn--.bc
+share/clc/gfx909-amdgcn-mesa-mesa3d.bc
+share/clc/gfx90a-amdgcn--.bc
+share/clc/gfx90a-amdgcn-mesa-mesa3d.bc
+share/clc/gfx90c-amdgcn--.bc
+share/clc/gfx90c-amdgcn-mesa-mesa3d.bc
+share/clc/gfx942-amdgcn--.bc
+share/clc/gfx942-amdgcn-mesa-mesa3d.bc
+share/clc/gfx950-amdgcn--.bc
+share/clc/gfx950-amdgcn-mesa-mesa3d.bc
+share/clc/hainan-amdgcn--.bc
+share/clc/hainan-amdgcn-mesa-mesa3d.bc
+share/clc/hawaii-amdgcn--.bc
+share/clc/hawaii-amdgcn-mesa-mesa3d.bc
+share/clc/hemlock-r600--.bc
+share/clc/iceland-amdgcn--.bc
+share/clc/iceland-amdgcn-mesa-mesa3d.bc
+share/clc/juniper-r600--.bc
+share/clc/kabini-amdgcn--.bc
+share/clc/kabini-amdgcn-mesa-mesa3d.bc
+share/clc/kaveri-amdgcn--.bc
+share/clc/kaveri-amdgcn-mesa-mesa3d.bc
+share/clc/mullins-amdgcn--.bc
+share/clc/mullins-amdgcn-mesa-mesa3d.bc
+share/clc/nvptx--.bc
+share/clc/nvptx--nvidiacl.bc
+share/clc/nvptx64--.bc
+share/clc/nvptx64--nvidiacl.bc
+share/clc/oland-amdgcn--.bc
+share/clc/oland-amdgcn-mesa-mesa3d.bc
+share/clc/palm-r600--.bc
+share/clc/pitcairn-amdgcn--.bc
+share/clc/pitcairn-amdgcn-mesa-mesa3d.bc
+share/clc/polaris10-amdgcn--.bc
+share/clc/polaris10-amdgcn-mesa-mesa3d.bc
+share/clc/polaris11-amdgcn--.bc
+share/clc/polaris11-amdgcn-mesa-mesa3d.bc
+share/clc/redwood-r600--.bc
+share/clc/spirv-mesa3d-.spv
+share/clc/spirv64-mesa3d-.spv
+share/clc/stoney-amdgcn--.bc
+share/clc/stoney-amdgcn-mesa-mesa3d.bc
+share/clc/sumo-r600--.bc
+share/clc/sumo2-r600--.bc
+share/clc/tahiti-amdgcn--.bc
+share/clc/tahiti-amdgcn-mesa-mesa3d.bc
+share/clc/tonga-amdgcn--.bc
+share/clc/tonga-amdgcn-mesa-mesa3d.bc
+share/clc/tongapro-amdgcn--.bc
+share/clc/tongapro-amdgcn-mesa-mesa3d.bc
+share/clc/turks-r600--.bc
+share/clc/verde-amdgcn--.bc
+share/clc/verde-amdgcn-mesa-mesa3d.bc
+share/pkgconfig/libclc.pc
Index: pkgsrc/lang/libclc/buildlink3.mk
diff -u /dev/null pkgsrc/lang/libclc/buildlink3.mk:1.1
--- /dev/null   Wed Sep  2 20:22:38 2026
+++ pkgsrc/lang/libclc/buildlink3.mk    Wed Sep  2 20:22:38 2026
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2026/09/02 20:22:38 adam Exp $
+
+BUILDLINK_TREE+=       libclc
+
+.if !defined(LIBCLC_BUILDLINK3_MK)
+LIBCLC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libclc+= libclc>=21.1.0
+BUILDLINK_PKGSRCDIR.libclc?=   ../../lang/libclc
+
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../parallel/spirv-llvm-translator/buildlink3.mk"
+.endif # LIBCLC_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libclc
Index: pkgsrc/lang/libclc/distinfo
diff -u /dev/null pkgsrc/lang/libclc/distinfo:1.1
--- /dev/null   Wed Sep  2 20:22:38 2026
+++ pkgsrc/lang/libclc/distinfo Wed Sep  2 20:22:38 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/09/02 20:22:38 adam Exp $
+
+BLAKE2s (llvm-project-21.1.8.src.tar.xz) = e6db98fed167ddd56b49c7eb46c4de7e7e8e08158e9c99ae79806983bcb60ae9
+SHA512 (llvm-project-21.1.8.src.tar.xz) = cae4c44e7bf678071723da63ad5839491d717a7233e7f4791aa408207f3ea42f52de939ad15189b112c02a0770f1bb8d59bae6ad31ef53417a6eea7770fe52ab
+Size (llvm-project-21.1.8.src.tar.xz) = 158958576 bytes



Home | Main Index | Thread Index | Old Index