git: 863b69df3894 - main - net-mgmt/aircrack-ng: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 09 Jan 2026 22:44:59 UTC
The branch main has been updated by pkubaj:

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

commit 863b69df38942c988ddcb00c49b0ec84421f6755
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-01-09 15:06:07 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-01-09 22:44:48 +0000

    net-mgmt/aircrack-ng: fix build on powerpc64
    
    simd-intrinsics.c:2912:25: error: '__builtin_altivec_vsrd' requires the '-mcpu=power8' and '-mvsx' options
---
 net-mgmt/aircrack-ng/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index 728cb786aeaa..053da2bcd07d 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -50,6 +50,12 @@ SQLITE_DESC=	Use SQLite for storing pre-computed key tables
 SQLITE_USES=	sqlite
 SQLITE_CONFIGURE_OFF=	--without-sqlite3
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
+CFLAGS+=	-mcpu=power8
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH:Mpowerpc*}