git: 9124172c0506 - main - devel/bloomberg-bde: tidy ports Makefile

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Tue, 12 Sep 2023 13:48:04 UTC
The branch main has been updated by adridg:

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

commit 9124172c050698257c1da6a4de81c3c36d480e5c
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2023-09-12 13:46:25 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2023-09-12 13:46:25 +0000

    devel/bloomberg-bde: tidy ports Makefile
    
    - the build system uses -march=westmere, so restrict
      to that kind of architecture
    - while here pet portlint
    
    No bump to PORTREVISION because it still builds in the
    same places and I dont' feel that a one-bit change to
    COMMENT is worth re-packaging.
---
 devel/bloomberg-bde/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devel/bloomberg-bde/Makefile b/devel/bloomberg-bde/Makefile
index a8b024f93213..aa7c77ff8b3b 100644
--- a/devel/bloomberg-bde/Makefile
+++ b/devel/bloomberg-bde/Makefile
@@ -5,11 +5,14 @@ CATEGORIES=	devel
 PKGNAMEPREFIX=	bloomberg-
 
 MAINTAINER=	adridg@FreeBSD.org
-COMMENT=	foundational C++ libraries used at Bloomberg
+COMMENT=	Foundational C++ libraries used at Bloomberg
 WWW=		https://github.com/bloomberg/bde
 
 LICENSE=	APACHE20
 
+ONLY_FOR_ARCHS=	amd64 i386
+ONLY_FOR_ARCHS_REASON=	Build uses -march=westmere
+
 USES=		cmake python:build pkgconfig
 
 USE_GITHUB=	yes
@@ -42,7 +45,7 @@ post-stage:
 _test_label=	bsla.t
 
 do-test:
-		cd ${TEST_WRKSRC} && ninja `ctest -N -L ${_test_label} | awk '/Test *#/{print $$3}'`
+		cd ${TEST_WRKSRC} && ninja `ctest -N -L ${_test_label} | ${AWK} '/Test *#/{print $$3}'`
 		cd ${TEST_WRKSRC} && ctest -L ${_test_label}
 
 .include <bsd.port.mk>