diff options
Diffstat (limited to 'misc/ggml/Makefile')
-rw-r--r-- | misc/ggml/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/misc/ggml/Makefile b/misc/ggml/Makefile new file mode 100644 index 000000000000..b332c2d881c5 --- /dev/null +++ b/misc/ggml/Makefile @@ -0,0 +1,36 @@ +PORTNAME= ggml +DISTVERSION= g20250828 +CATEGORIES= misc # machine-learning + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tensor library for machine learning +WWW= https://github.com/ggerganov/ggml + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing compiler:c++17-lang python:run shebangfix +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= ggerganov +GH_TAGNAME= 83835ff + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= GGML_BUILD_TESTS GGML_BUILD_EXAMPLES +CMAKE_TESTING_ON= GGML_BUILD_TESTS + +BINARY_ALIAS= git=false + +OPTIONS_DEFINE= VULKAN +OPTIONS_DEFAULT= VULKAN +OPTIONS_SUB= yes + +VULKAN_CMAKE_BOOL= GGML_VULKAN +VULKAN_BUILD_DEPENDS= glslc:graphics/shaderc \ + vulkan-headers>0:graphics/vulkan-headers +VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader + +# tests as of g20250828: 100% tests passed, 0 tests failed out of 21 + +.include <bsd.port.mk> |