pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gglm: add new package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Wed Jul 1 15:08:16 2026 +0200
Changeset: 6a2853cd6afc6c8afefa93b1dbf658d97b71e29c
Modified Files:
Makefile
Added Files:
ggml/DESCR
ggml/Makefile
ggml/PLIST
ggml/buildlink3.mk
ggml/distinfo
Log Message:
gglm: add new package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6a2853cd6afc6c8afefa93b1dbf658d97b71e29c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
ggml/DESCR | 11 +++++++++++
ggml/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
ggml/PLIST | 37 +++++++++++++++++++++++++++++++++++++
ggml/buildlink3.mk | 13 +++++++++++++
ggml/distinfo | 5 +++++
6 files changed, 110 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 1b3e01f23b..90a0e08702 100644
--- a/Makefile
+++ b/Makefile
@@ -1287,6 +1287,7 @@ SUBDIR+= gfontview
SUBDIR+= gforth-git
SUBDIR+= gforth-snapshot
SUBDIR+= gfsview-snapshot
+SUBDIR+= ggml
SUBDIR+= ggobi
SUBDIR+= gh-dash
SUBDIR+= ghc-core
diff --git a/ggml/DESCR b/ggml/DESCR
new file mode 100644
index 0000000000..f7d1f74a81
--- /dev/null
+++ b/ggml/DESCR
@@ -0,0 +1,11 @@
+Tensor library for machine learning
+
+## Features
+
+- Low-level cross-platform implementation
+- Integer quantization support
+- Broad hardware support
+- Automatic differentiation
+- ADAM and L-BFGS optimizers
+- No third-party dependencies
+- Zero memory allocations during runtime
diff --git a/ggml/Makefile b/ggml/Makefile
new file mode 100644
index 0000000000..0874c7a163
--- /dev/null
+++ b/ggml/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD$
+
+DISTNAME= ggml-0.15.3
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ggml-org/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/ggml-org/ggml/
+COMMENT= Tensor library for machine learning
+LICENSE= mit
+
+DEPENDS+= shaderc-[0-9]*:../../wip/shaderc
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+USE_CC_FEATURES= c11
+USE_CXX_FEATURES= c++17
+
+PKGCONFIG_OVERRIDE+= ggml.pc.in
+
+CMAKE_CONFIGURE_ARGS+= -DGGML_BLAS=ON
+CMAKE_CONFIGURE_ARGS+= -DGGML_BLAS_VENDOR=OpenBLAS
+CMAKE_CONFIGURE_ARGS+= -DBLAS_LIBRARIES=${CBLAS_LIBS:Q}
+CMAKE_CONFIGURE_ARGS+= -DGGML_VULKAN=ON
+
+BLAS_INDEX64= yes
+BLAS_ACCEPTED= openblas_pthread #openblas_openmp
+BLAS_C_INTERFACE= yes
+
+SUBST_CLASSES+= findblas
+SUBST_STAGE.findblas= pre-configure
+SUBST_MESSAGE.findblas= Fixing libpci soname
+SUBST_FILES.findblas+= src/ggml-blas/CMakeLists.txt
+SUBST_SED.findblas+= -e 's,DepBLAS openblas64,DepBLAS ${BLAS_PC},'
+
+.include "../../devel/cmake/build.mk"
+.include "../../graphics/vulkan-headers/buildlink3.mk"
+.include "../../graphics/vulkan-loader/buildlink3.mk"
+.include "../../parallel/spirv-headers/buildlink3.mk"
+.include "../../mk/blas.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ggml/PLIST b/ggml/PLIST
new file mode 100644
index 0000000000..ef3d60d285
--- /dev/null
+++ b/ggml/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD$
+include/ggml-alloc.h
+include/ggml-backend.h
+include/ggml-blas.h
+include/ggml-cann.h
+include/ggml-cpp.h
+include/ggml-cpu.h
+include/ggml-cuda.h
+include/ggml-metal.h
+include/ggml-openvino.h
+include/ggml-opt.h
+include/ggml-rpc.h
+include/ggml-sycl.h
+include/ggml-virtgpu.h
+include/ggml-vulkan.h
+include/ggml-webgpu.h
+include/ggml-zendnn.h
+include/ggml.h
+include/gguf.h
+lib/cmake/ggml/ggml-config.cmake
+lib/cmake/ggml/ggml-version.cmake
+lib/libggml-base.so
+lib/libggml-base.so.0
+lib/libggml-base.so.${PKGVERSION}
+lib/libggml-blas.so
+lib/libggml-blas.so.0
+lib/libggml-blas.so.${PKGVERSION}
+lib/libggml-cpu.so
+lib/libggml-cpu.so.0
+lib/libggml-cpu.so.${PKGVERSION}
+lib/libggml-vulkan.so
+lib/libggml-vulkan.so.0
+lib/libggml-vulkan.so.${PKGVERSION}
+lib/libggml.so
+lib/libggml.so.0
+lib/libggml.so.${PKGVERSION}
+lib/pkgconfig/ggml.pc
diff --git a/ggml/buildlink3.mk b/ggml/buildlink3.mk
new file mode 100644
index 0000000000..0a823c9475
--- /dev/null
+++ b/ggml/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= ggml
+
+.if !defined(GGML_BUILDLINK3_MK)
+GGML_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ggml+= ggml>=0.15.3
+BUILDLINK_PKGSRCDIR.ggml?= ../../wip/ggml
+
+.endif # GGML_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ggml
diff --git a/ggml/distinfo b/ggml/distinfo
new file mode 100644
index 0000000000..4e6e6f17ef
--- /dev/null
+++ b/ggml/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (ggml-0.15.3.tar.gz) = 7a4eeb168e4d9bf1f6a7aa589b91bc1ca4d9d31096c9143985f0628bb9a56fa0
+SHA512 (ggml-0.15.3.tar.gz) = 51dad3310aa28e3daf2689d3617c5f978b50469b4676d101ce7071d0dfbe8b1d04755cc2114cd8ef7ba6dd1466daf6362b0cd42ddf6c9f1a84c3bc43664ec56c
+Size (ggml-0.15.3.tar.gz) = 3227851 bytes
Home |
Main Index |
Thread Index |
Old Index