git: 9ecc74ab460e - main - biology/fermi-lite: port to armv7/aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Oct 2024 12:43:55 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=9ecc74ab460e4ad157885c16661871b58cc98352 commit 9ecc74ab460e4ad157885c16661871b58cc98352 Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2024-10-15 14:48:45 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-10-28 12:41:48 +0000 biology/fermi-lite: port to armv7/aarch64 This applies the sse2neon header on armv7 and aarch64 to implement the SSE intrinsics. Approved by: yuri (maintainer timeout, two weeks) Differential Revision: https://reviews.freebsd.org/D47128 --- biology/fermi-lite/Makefile | 8 ++++++-- biology/fermi-lite/files/patch-ksw.c | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/biology/fermi-lite/Makefile b/biology/fermi-lite/Makefile index 5a2a8f5817e0..003ba3006bae 100644 --- a/biology/fermi-lite/Makefile +++ b/biology/fermi-lite/Makefile @@ -11,10 +11,14 @@ WWW= https://github.com/lh3/fermi-lite LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 ONLY_FOR_ARCHS_REASON= Use of the <emmintrin.h> header in ksw.c which is only for SSE2 -USES= gmake +armv7_BUILD_DEPENDS= ${LOCALBASE}/include/sse2neon.h:devel/sse2neon +aarch64_BUILD_DEPENDS= ${armv7_BUILD_DEPENDS} +BUILD_DEPENDS+= ${${ARCH}_BUILD_DEPENDS} + +USES= gmake localbase USE_LDCONFIG= yes USE_GITHUB= yes diff --git a/biology/fermi-lite/files/patch-ksw.c b/biology/fermi-lite/files/patch-ksw.c new file mode 100644 index 000000000000..ec5348eedc45 --- /dev/null +++ b/biology/fermi-lite/files/patch-ksw.c @@ -0,0 +1,14 @@ +--- ksw.c.orig 2024-10-15 14:34:34 UTC ++++ ksw.c +@@ -25,7 +25,11 @@ + + #include <stdlib.h> + #include <stdint.h> ++#if defined(__arm__) || defined(__aarch64__) ++#include <sse2neon.h> ++#else + #include <emmintrin.h> ++#endif + #include "ksw.h" + + #ifdef __GNUC__