aboutsummaryrefslogtreecommitdiff
path: root/math/ascent/Makefile
blob: c84c5f860994e7c803bec31bf8e5a20aafc942aa (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=	ascent
DISTVERSIONPREFIX=	v
DISTVERSION=	0.7.0
CATEGORIES=	math
PKGNAMESUFFIX=	-simulation-engine

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++ simulation engine and differential equation solver
WWW=		https://github.com/AnyarInc/Ascent

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake compiler:c++17-lang
USE_GITHUB=	yes
GH_ACCOUNT=	AnyarInc
GH_PROJECT=	Ascent

CMAKE_OFF=	BUILD_UNIT_TESTS BUILD_EXAMPLES

NO_BUILD=	yes
NO_ARCH=	yes

do-install:
	@cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${BUILD_WRKSRC}/unit_tests/ascent_test

.include <bsd.port.mk>