git: 276a151ebc8d - main - multimedia/mplayer: Fix build on armv6, armv7

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Thu, 04 Nov 2021 00:30:31 UTC
The branch main has been updated by riggs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=276a151ebc8de073077485d09de58d8b7e554d47

commit 276a151ebc8de073077485d09de58d8b7e554d47
Author:     Thomas Zander <riggs@FreeBSD.org>
AuthorDate: 2021-11-04 00:27:26 +0000
Commit:     Thomas Zander <riggs@FreeBSD.org>
CommitDate: 2021-11-04 00:30:29 +0000

    multimedia/mplayer: Fix build on armv6, armv7
    
    Details:
    - Add dependency on binutils, as -no-integrated-as is used on both
      armv6 and armv7
    
    PR:             259401
    Reported by:    fuz@fuz.su
    MFH:            2021Q4
---
 multimedia/mplayer/Makefile.options | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/multimedia/mplayer/Makefile.options b/multimedia/mplayer/Makefile.options
index 8ee48882a7b3..e331ec3cc2d8 100644
--- a/multimedia/mplayer/Makefile.options
+++ b/multimedia/mplayer/Makefile.options
@@ -46,8 +46,10 @@ EXTRA_PATCHES+=	${FILESDIR}/extra-patch-clang-version
 CFLAGS_i386+=	-mstack-alignment=16 -mstackrealign
 .endif # ${CHOSEN_COMPILER_TYPE} == clang
 
-CFLAGS_armv6+=	-no-integrated-as
-CFLAGS_armv7+=	-no-integrated-as
+.if ${ARCH:Marmv?}
+BUILD_DEPENDS+=	as:devel/binutils@native
+CFLAGS+=	-no-integrated-as
+.endif
 
 LDFLAGS_i386+=	-Wl,-z,notext