aboutsummaryrefslogtreecommitdiff
path: root/science/opensim-core/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/opensim-core/Makefile')
-rw-r--r--science/opensim-core/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/science/opensim-core/Makefile b/science/opensim-core/Makefile
new file mode 100644
index 000000000000..a82a54e8977d
--- /dev/null
+++ b/science/opensim-core/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME= OpenSim
+DISTVERSION= 4.0
+CATEGORIES= science
+PKGNAMESUFFIX= -core
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Software for modeling of musculoskeletal structures
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+LIB_DEPENDS= libdocopt.so:devel/docopt.cpp \
+ libSimTKcommon.so:science/simbody
+
+USES= blaslapack:openblas cmake:outsource compiler:c++11-lib fortran gl # fortran only for simbody/openblas
+USE_GITHUB= yes
+GH_ACCOUNT= ${PORTNAME:tl}-org
+GH_PROJECT= ${PORTNAME:tl}-core
+USE_GL= gl glu glut
+USE_XORG= xi xmu
+USE_LDCONFIG= yes
+
+CXXFLAGS+= -I${LOCALBASE}/include/docopt
+CONFIGURE_ENV+= SIMBODY_HOME=${LOCALBASE}
+CMAKE_OFF= OPENSIM_COPY_DEPENDENCIES DO_TESTING
+
+OPTIONS_DEFINE= DOCS
+DOCS_CMAKE_BOOL= INSTALL_DOCS
+PORTDOCS= *
+
+do-test: # 4 testcases are known to fail: https://github.com/opensim-org/opensim-core/issues/2379
+ @cd ${BUILD_WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DDO_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>