summaryrefslogtreecommitdiff
path: root/misc/ggml/Makefile
blob: db050b78c5585af9aa4b09cbc0060f0e1452d029 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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

BROKEN_i386=	compilation fails: LLVM ERROR: out of memory

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>