git: 3d27c0e8d92e - main - audio/mpg123: enable altivec on compatible CPUs

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 19 Jun 2023 13:18:09 UTC
The branch main has been updated by pkubaj:

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

commit 3d27c0e8d92eca2f7484b0b3f9b466f2d4cf46ad
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-06-19 12:31:39 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-06-19 13:18:07 +0000

    audio/mpg123: enable altivec on compatible CPUs
---
 audio/mpg123/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile
index 7135d974295e..f4f8898e4677 100644
--- a/audio/mpg123/Makefile
+++ b/audio/mpg123/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mpg123
 DISTVERSION=	1.31.3
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	SF \
 		https://www.mpg123.de/download/
@@ -44,6 +45,8 @@ OPTCPU_CONFIGURE_OFF=	--with-cpu=generic_fpu
 
 .if ${ARCH} == "amd64"
 CONFIGURE_ARGS+=	--with-cpu=x86-64
+.elif defined(MACHINE_CPU) && ${MACHINE_CPU:Maltivec}
+CONFIGURE_ARGS+=	--with-cpu=altivec
 .endif
 
 .include <bsd.port.post.mk>