git: 21c0bf840c4b - main - security/botan2: Enable OpenMP support

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 05 Aug 2022 12:41:41 UTC
The branch main has been updated by fluffy:

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

commit 21c0bf840c4b8987bb0cf274199c2eb633c63a9f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-08-05 12:40:07 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-08-05 12:41:13 +0000

    security/botan2: Enable OpenMP support
    
    PR:     265622
---
 security/botan2/Makefile | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/security/botan2/Makefile b/security/botan2/Makefile
index 351d619c5419..3d1aa96d8efb 100644
--- a/security/botan2/Makefile
+++ b/security/botan2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	botan
 DISTVERSION=	2.19.2
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://botan.randombit.net/releases/
 PKGNAMESUFFIX=	2
@@ -43,13 +44,26 @@ PLIST_SUB=	SHLIBVER=${_SHLIBVER} \
 		SOABIVER=${_SOABIVER}
 PORTDOCS=	*
 
-OPTIONS_DEFINE=		DOCS MANPAGES PYTHON SQLITE3
-OPTIONS_DEFAULT=	MANPAGES
-OPTIONS_SUB=		yes
+OPTIONS_DEFINE=			DOCS MANPAGES PYTHON SQLITE3
+OPTIONS_DEFINE_aarch64=		OPENMP
+OPTIONS_DEFINE_amd64=		OPENMP
+OPTIONS_DEFINE_i386=		OPENMP
+OPTIONS_DEFINE_powerpc64=	OPENMP
+OPTIONS_DEFINE_powerpc64le=	OPENMP
+OPTIONS_DEFINE_riscv64=		OPENMP
+OPTIONS_DEFAULT=		MANPAGES
+OPTIONS_DEFAULT_aarch64=	OPENMP
+OPTIONS_DEFAULT_amd64=		OPENMP
+OPTIONS_DEFAULT_powerpc64=	OPENMP
+OPTIONS_DEFAULT_powerpc64le=	OPENMP
+OPTIONS_DEFAULT_riscv64=	OPENMP
+OPTIONS_SUB=			yes
 
 MANPAGES_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
 MANPAGES_CONFIGURE_WITH=	sphinx
 
+OPENMP_CONFIGURE_WITH=	openmp
+
 PYTHON_USES=		python:3.6+
 PYTHON_USES_OFF=	python:3.6+,build
 PYTHON_CONFIGURE_ON=	--with-python-versions=${PYTHON_VER}