git: 272f304654b0 - main - science/qiskit-aer: Broken where OpenMP is missing

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 28 Feb 2025 19:31:51 UTC
The branch main has been updated by yuri:

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

commit 272f304654b084b4841603e88b9b7189eaabb8ec
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-28 15:00:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-28 19:31:49 +0000

    science/qiskit-aer: Broken where OpenMP is missing
    
    Reported by:    fallout
---
 science/qiskit-aer/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/science/qiskit-aer/Makefile b/science/qiskit-aer/Makefile
index a1b70b1e7462..ef595842d8e7 100644
--- a/science/qiskit-aer/Makefile
+++ b/science/qiskit-aer/Makefile
@@ -12,6 +12,9 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BROKEN_i386=	undefined reference to `__atomic_load' # '
+.if !exists(/usr/include/omp.h)
+BROKEN=		requires OpenMP support that is missing on this architecture
+.endif
 
 BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
 		pybind11>0:devel/pybind11