git: 71f98f5a30bf - main - misc/astc-encoder: use NEON on aarch64, big-endian mode on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 10 Oct 2026 18:16:40 UTC
The branch main has been updated by pkubaj:

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

commit 71f98f5a30bf9f5264bcffdf1d2af013e32a4234
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-10 12:41:21 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:15:36 +0000

    misc/astc-encoder: use NEON on aarch64, big-endian mode on powerpc64
    
    The none backend only produces correct output on big-endian hosts with
    ASTCENC_BIG_ENDIAN.
---
 misc/astc-encoder/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/misc/astc-encoder/Makefile b/misc/astc-encoder/Makefile
index 6ea3ffd9e78e..8d686b75ae5d 100644
--- a/misc/astc-encoder/Makefile
+++ b/misc/astc-encoder/Makefile
@@ -37,8 +37,13 @@ PLIST_FILES=	bin/astcenc-${ASTCENC_ISA}
 
 .if ${ARCH} == amd64 || ${ARCH} == i386
 ASTCENC_ISA=	sse2
+.elif ${ARCH} == aarch64
+ASTCENC_ISA=	neon
 .else
 ASTCENC_ISA=	none
 .endif
+.if ${ARCH} == powerpc64
+CMAKE_ON+=	ASTCENC_BIG_ENDIAN
+.endif
 
 .include <bsd.port.mk>