ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= simbody
|
|
DISTVERSIONPREFIX= Simbody-
|
|
DISTVERSION= 3.6.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= science biology
|
|
|
|
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
|
|
PATCHFILES= 1b306f66bcd15e9bf6b27882e2daa6375ac4cd2e.patch:-p1 \
|
|
eaff90b304291ab9ffdf60d7abfb48e23e102ecb.patch:-p1
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Multibody dynamics library for (bio)mechanical systems simulation
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
LIB_DEPENDS= libopenblas.so:math/openblas
|
|
|
|
USES= blaslapack:openblas cmake compiler:c++11-lang fortran # fortran only for openblas
|
|
USE_GITHUB= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_OFF= BUILD_TESTING BUILD_EXAMPLES
|
|
CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so
|
|
|
|
OPTIONS_DEFINE= DOCS VISUALIZER
|
|
OPTIONS_DEFAULT= VISUALIZER
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_CMAKE_BOOL= INSTALL_DOCS
|
|
|
|
VISUALIZER_CMAKE_BOOL= BUILD_VISUALIZER
|
|
VISUALIZER_USES= gl
|
|
VISUALIZER_USE= GL=gl,glu,glut XORG=xi,xmu
|
|
|
|
PORTDOCS= *
|
|
|
|
post-install-DOCS-on: # https://github.com/simbody/simbody/issues/652
|
|
@${RMDIR} ${STAGEDIR}${DOCSDIR}/api
|
|
|
|
do-test: # one test is known to fail: https://github.com/simbody/simbody/issues/653
|
|
@cd ${BUILD_WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING=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>
|