git: 5c2d0ddc86a0 - main - misc/llama-cpp: Fix version printout
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Apr 2025 18:45:21 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5c2d0ddc86a018dc636643678eb2a78f732915e6
commit 5c2d0ddc86a018dc636643678eb2a78f732915e6
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-04-11 14:47:00 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-04-11 18:45:18 +0000
misc/llama-cpp: Fix version printout
---
misc/llama-cpp/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/misc/llama-cpp/Makefile b/misc/llama-cpp/Makefile
index 96a6522e97ae..400276f95a9e 100644
--- a/misc/llama-cpp/Makefile
+++ b/misc/llama-cpp/Makefile
@@ -1,6 +1,7 @@
PORTNAME= llama-cpp
DISTVERSIONPREFIX= b
DISTVERSION= 5106
+PORTREVISION= 1
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
@@ -53,6 +54,11 @@ VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader
BINARY_ALIAS= git=false \
python=${PYTHON_CMD} # for tests
+post-patch: # set version in the code
+ @${REINPLACE_CMD} \
+ -e "s|set(BUILD_NUMBER 0)|set(BUILD_NUMBER ${DISTVERSION})|" \
+ ${WRKSRC}/cmake/build-info.cmake
+
do-test-ci: # build of tests fails, see https://github.com/ggerganov/llama.cpp/issues/10955
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} bash ci/run.sh ./tmp/results ./tmp/mnt