git: e2e9ddc21c7a - main - misc/koboldcpp: Ignore portable flavor on arm64; Try again on 32-bit platforms

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Jan 2025 18:56:04 UTC
The branch main has been updated by yuri:

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

commit e2e9ddc21c7a1b3fcb06fd303a44fc2c3aebfb20
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-01-09 14:41:39 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-01-09 18:56:01 +0000

    misc/koboldcpp: Ignore portable flavor on arm64; Try again on 32-bit platforms
    
    Reported by:    fallout (portable flavor on arm64)
---
 misc/koboldcpp/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/misc/koboldcpp/Makefile b/misc/koboldcpp/Makefile
index 35033ca40e38..d69b4a67c72b 100644
--- a/misc/koboldcpp/Makefile
+++ b/misc/koboldcpp/Makefile
@@ -10,8 +10,8 @@ WWW=		https://github.com/lostruins/koboldcpp
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-BROKEN_armv7=	compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129
-BROKEN_i386=	compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129
+#BROKEN_armv7=	compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129
+#BROKEN_i386=	compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129
 
 FLAVORS=	default portable
 FLAVOR?=	${FLAVORS:[1]}
@@ -66,4 +66,10 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/${embd} ${STAGEDIR}${DATADIR}
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64 && ${FLAVOR} == portable
+IGNORE=	portable flavor isn't defined on aarch64 because it is based on AVX2, etc. (?)
+.endif
+
+.include <bsd.port.post.mk>