git: ee93a2ebb651 - 2021Q4 - devel/volk: Fix build on armv7.

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Mon, 08 Nov 2021 11:52:09 UTC
The branch 2021Q4 has been updated by mikael:

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

commit ee93a2ebb651edbbf0408ddd93b61db831a2c4b1
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2021-10-25 22:05:14 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-11-08 11:52:01 +0000

    devel/volk: Fix build on armv7.
    
    This port does not build on armv7 due to inline assembly unsupported by clang.
    Fix the build by compiling with gcc on armv7.
    
    PR:             259447
    Approved by:    portmgr (build fix blanket)
    
    (cherry picked from commit 79ede500f770ed197458e9ae7cf87b2961c4dc16)
---
 devel/volk/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/volk/Makefile b/devel/volk/Makefile
index f1387a155ba5..11a8063d61c6 100644
--- a/devel/volk/Makefile
+++ b/devel/volk/Makefile
@@ -13,9 +13,15 @@ BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/mako/__init__.py:textproc/py-mako@${PY_FLAVO
 
 USES=		cmake compiler:c++11-lang python:3.5+
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == armv7
+USE_GCC=	yes
+.endif
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	gnuradio
 
 USE_LDCONFIG=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>