aboutsummaryrefslogtreecommitdiff
path: root/devel/json-fortran/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/json-fortran/Makefile')
-rw-r--r--devel/json-fortran/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/json-fortran/Makefile b/devel/json-fortran/Makefile
index c013f28d0338..773b0f98e4b1 100644
--- a/devel/json-fortran/Makefile
+++ b/devel/json-fortran/Makefile
@@ -21,4 +21,13 @@ CMAKE_OFF= JSONFORTRAN_ENABLE_TESTS
CMAKE_TESTING_ON= JSONFORTRAN_ENABLE_TESTS ENABLE_TESTS
CMAKE_TESTING_TARGET= check
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${FORTRAN_DEFAULT} == flang
+PLIST_SUB+= LIBSUFFIX=llvmflang
+TESTING_UNSAFE= https://github.com/llvm/llvm-project/issues/161568
+.else
+PLIST_SUB+= LIBSUFFIX=gnu
+.endif
+
+.include <bsd.port.post.mk>