summaryrefslogtreecommitdiff
path: root/devel/json-fortran/Makefile
blob: 773b0f98e4b1b64f6f1042209a071f2b815ad911 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PORTNAME=	json-fortran
DISTVERSION=	9.0.2
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Modern Fortran JSON API
WWW=		https://github.com/jacobwilliams/json-fortran/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_aarch64=	compilation fails: Cannot find an intrinsic module named 'ieee_arithmetic'

USES=		cmake:testing fortran

USE_GITHUB=	yes
GH_ACCOUNT=	jacobwilliams

CMAKE_ON=	USE_GNU_INSTALL_CONVENTION
CMAKE_OFF=	JSONFORTRAN_ENABLE_TESTS
CMAKE_TESTING_ON=	JSONFORTRAN_ENABLE_TESTS ENABLE_TESTS
CMAKE_TESTING_TARGET=	check

.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>