git: cfcbfc362d38 - main - misc/astc-encoder: fix build on non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 18:16:27 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cfcbfc362d38f8463582141b157e7474c8da8362
commit cfcbfc362d38f8463582141b157e7474c8da8362
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-09 10:28:39 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:15:23 +0000
misc/astc-encoder: fix build on non-x86
Build the portable none backend where SSE2 does not exist.
---
misc/astc-encoder/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/misc/astc-encoder/Makefile b/misc/astc-encoder/Makefile
index 1929bd31e2f2..6ea3ffd9e78e 100644
--- a/misc/astc-encoder/Makefile
+++ b/misc/astc-encoder/Makefile
@@ -18,7 +18,7 @@ GH_ACCOUNT= ARM-software
GH_TUPLE= google:googletest:e2239ee:googletest/Source/GoogleTest
CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} # only for tests
-CMAKE_ON= ASTCENC_ISA_SSE2
+CMAKE_ON= ASTCENC_ISA_${ASTCENC_ISA:tu}
CMAKE_OFF= ASTCENC_UNITTEST \
ASTCENC_ISA_SSE41 \
ASTCENC_ISA_SVE_256 \
@@ -29,8 +29,16 @@ CMAKE_TESTING_ON= ASTCENC_UNITTEST
LDFLAGS+= -pthread
-PLIST_FILES= bin/astcenc-sse2
+PLIST_FILES= bin/astcenc-${ASTCENC_ISA}
# tests as of 5.7.0: 100% tests passed, 0 tests failed out of 1
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+ASTCENC_ISA= sse2
+.else
+ASTCENC_ISA= none
+.endif
+
.include <bsd.port.mk>