summaryrefslogtreecommitdiff
path: root/science/pagmo2/Makefile
blob: 9936071fc89d597c992cb27673ad2e55890bcc3f (plain)
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
# $FreeBSD$

PORTNAME=	pagmo2
DISTVERSIONPREFIX=	v
DISTVERSION=	2.11.4
PORTREVISION=	1
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Platform to perform parallel computations of optimization tasks

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

LIB_DEPENDS=	libboost_serialization.so:devel/boost-libs \
		libipopt.so:math/ipopt \
		libnlopt.so:math/nlopt \
		libtbb.so:devel/tbb

USES=		cmake compiler:c++11-lang eigen:3,build,run
USE_GITHUB=	yes
GH_ACCOUNT=	esa
USE_LDCONFIG=	yes

CMAKE_ON=	PAGMO_WITH_EIGEN3 PAGMO_WITH_NLOPT PAGMO_WITH_IPOPT

do-test: # tests fail to build: https://github.com/esa/pagmo2/issues/273
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DPAGMO_BUILD_TESTS:BOOL=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>