aboutsummaryrefslogtreecommitdiff
path: root/math/piranha/Makefile
blob: f930695d3fa86878e45fc8e57dba9b4d1a6a8e43 (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
34
35
36
PORTNAME=	piranha
DISTVERSIONPREFIX=	v
DISTVERSION=	0.11
PORTREVISION=	8
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Piranha computer algebra system
WWW=		https://github.com/bluescarni/piranha

LICENSE=	GPLv3 LGPL3
LICENSE_COMB=	dual
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING.gpl3
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING.lgpl3

# build only checks that boost, gmp, mpfr headers are installed, and in the runtime they are included, shared libs are never used directly
BUILD_DEPENDS=	${HEADER_DEPENDS}
RUN_DEPENDS=	${HEADER_DEPENDS}

USES=		cmake compiler:c++14-lang
USE_GITHUB=	yes
GH_ACCOUNT=	bluescarni
NO_BUILD=	yes
NO_ARCH=	yes

HEADER_DEPENDS=	${LOCALBASE}/include/boost/numeric/conversion/cast.hpp:devel/boost-libs \
		${LOCALBASE}/include/gmp.h:math/gmp \
		${LOCALBASE}/include/mpfr.h:math/mpfr

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test

.include <bsd.port.mk>