Files
ports/science/pagmo2/Makefile
T
Thierry Thomas 0b5864f66c - Upgrade math/eigen3 to 3.3.8;
- Add some dependencies which might be detected by Find_Package but not registered;

- Bump PORTREVISION of consumers.

PR:		250833
Submitted by:	/me
Approved by:	tcberner@ (KDE / maintainer) + exp-run
2020-12-12 17:04:37 +00:00

40 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= pagmo2
DISTVERSIONPREFIX= v
DISTVERSION= 2.15.0-102
PORTREVISION= 1
DISTVERSIONSUFFIX= -gdecda188
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 PAGMO_ENABLE_IPO
post-install: # Workaround for https://github.com/esa/pagmo2/issues/445 breaking misc/dartsim
@${REINPLACE_CMD} 's|;NLOPT::header;IPOPT::header||' ${STAGEDIR}${PREFIX}/lib/cmake/pagmo/pagmo_export.cmake
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>