blob: bcdff953a0b1582a3365ce39bd9c1e07cff7bc80 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
PORTNAME= simbody
DISTVERSIONPREFIX= Simbody-
DISTVERSION= 3.7
PORTREVISION= 3
CATEGORIES= science biology
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
PATCHFILES= 1b306f66bcd15e9bf6b27882e2daa6375ac4cd2e.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
CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so -DFREEBSD_EXAMPLESDIR=${EXAMPLESDIR}
OPTIONS_DEFINE= DOCS VISUALIZER EXAMPLE_PROGRAMS # EXAMPLE_PROGRAMS significanly increases the build time and package size, so it is not called EXAMPLES to prevent it from being installed by default
OPTIONS_DEFAULT= VISUALIZER
OPTIONS_SUB= yes
DOCS_CMAKE_BOOL= INSTALL_DOCS
VISUALIZER_DESC= Build the visualizer component
VISUALIZER_CMAKE_BOOL= BUILD_VISUALIZER
VISUALIZER_USES= gl xorg
VISUALIZER_USE= GL=gl,glu,glut XORG=xi,xmu
EXAMPLE_PROGRAMS_DESC= Build and install example programs
EXAMPLE_PROGRAMS_CMAKE_BOOL= BUILD_EXAMPLES
PORTDOCS= *
# this port installs examples into ${EXAMPLESDIR} when EXAMPLE_PROGRAMS=ON, but check-plist doesn't complain for some reason
post-install-DOCS-on: # https://github.com/simbody/simbody/issues/652
@${RMDIR} ${STAGEDIR}${DOCSDIR}/api
do-test:
@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>
|