Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Apr 2026 06:45:25 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 097b8e780932 - main - misc/ollama: Fix package on non-x86 architectures
Message-ID:  <69ce1085.20cac.772d7539@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=097b8e78093252bee1b7794095de394bb0729f52

commit 097b8e78093252bee1b7794095de394bb0729f52
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-01 20:28:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-02 06:45:22 +0000

    misc/ollama: Fix package on non-x86 architectures
    
    x86-specific shared libs are excluded.
    
    Reported by:    fallout
---
 misc/ollama/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/misc/ollama/Makefile b/misc/ollama/Makefile
index 88dfe4931b8a..931a55926ef5 100644
--- a/misc/ollama/Makefile
+++ b/misc/ollama/Makefile
@@ -34,20 +34,24 @@ JSON_VERSION=		3.11.3
 PLIST_FILES=	bin/${PORTNAME} \
 		bin/ollama-limit-gpu-layers
 
+XARCH!=		uname -p
+
 OPTIONS_GROUP=		BACKENDS
 OPTIONS_GROUP_BACKENDS=	CPU VULKAN MLX
 OPTIONS_DEFAULT=	CPU VULKAN MLX
 
 CPU_DESC=		Build CPU backend shared libraries for various SIMD instruction sets
 CPU_PLIST_FILES=	lib/ollama/libggml-base.so \
-			lib/ollama/libggml-base.so.0 \
-			lib/ollama/libggml-cpu-alderlake.so \
+			lib/ollama/libggml-base.so.0
+.if ${XARCH} == "amd64" || ${XARCH} == "i386"
+CPU_PLIST_FILES+=	lib/ollama/libggml-cpu-alderlake.so \
 			lib/ollama/libggml-cpu-haswell.so \
 			lib/ollama/libggml-cpu-icelake.so \
 			lib/ollama/libggml-cpu-sandybridge.so \
 			lib/ollama/libggml-cpu-skylakex.so \
 			lib/ollama/libggml-cpu-sse42.so \
 			lib/ollama/libggml-cpu-x64.so
+.endif
 
 VULKAN_DESC=		Build Vulkan GPU backend shared library
 VULKAN_BUILD_DEPENDS=	glslc:graphics/shaderc \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69ce1085.20cac.772d7539>