git: 53e7f25f518b - main - devel/kokkos: Add options OPENMP, SERIAL

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 00:11:47 UTC
The branch main has been updated by yuri:

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

commit 53e7f25f518bc60d946b0c47f2a388acd2feac83
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-27 00:00:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-27 00:11:44 +0000

    devel/kokkos: Add options OPENMP, SERIAL
---
 devel/kokkos/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/devel/kokkos/Makefile b/devel/kokkos/Makefile
index 9748e9bcdbc7..0ce34529bf31 100644
--- a/devel/kokkos/Makefile
+++ b/devel/kokkos/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kokkos
 DISTVERSION=	3.6.01
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -22,6 +23,14 @@ CMAKE_TESTING_ON=	Kokkos_ENABLE_TESTS
 
 LDFLAGS+=	-lexecinfo
 
+OPTIONS_DEFINE=		OPENMP SERIAL
+OPTIONS_DEFAULT=	OPENMP SERIAL # both choices are assumed by science/nlcglib
+
+OPENMP_CMAKE_BOOL=	Kokkos_ENABLE_OPENMP
+
+SERIAL_DESC=		Enable serial backend
+SERIAL_CMAKE_BOOL=	Kokkos_ENABLE_SERIAL
+
 post-install: # workaround for https://github.com/kokkos/kokkos/issues/4983
 	${RM} ${STAGEDIR}${PREFIX}/include/CMakeLists.txt