freebsd-ports/science/opensim-core/Makefile
Steve Wills fb44dca45d Fix math/openblas and bump dependent ports
* Fix build on i386 [1]
* Fix science/code_saturne build with new openblas [2]
* Avoid installing private headers [3]
* Prevent build from optimizing for host by correcting build confg [4]
* Bump portrevision of dependent ports [5]

This is correcting issues from r523749 [1][2][4] and r515970 [3]

PR:		231371
Reported by:	build cluster [1]
Reported by:	Dima Pasechnik <dimpase+freebsd@gmail.com> [2]
Reported by:	many [5]
Reviewed by:	mat, bapt
Approved by:	implicit, since this is a build fix
2020-01-30 14:17:44 +00:00

55 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= OpenSim
DISTVERSION= 4.0-601
DISTVERSIONSUFFIX= -ga2574fcda
PORTREVISION= 2
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 compiler:c++11-lib fortran gl xorg # 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= PYTHON JAVA DOCS
OPTIONS_DEFAULT= PYTHON JAVA
OPTIONS_SUB= yes
PYTHON_CMAKE_BOOL= BUILD_PYTHON_WRAPPING
PYTHON_USES= python
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
JAVA_CMAKE_BOOL= BUILD_JAVA_WRAPPING
JAVA_CMAKE_ON= -DJAVA_AWT_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/libawt.so \
-DJAVA_JVM_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/server/libjvm.so \
-DJAVA_INCLUDE_PATH=${LOCALBASE}/openjdk8/include
JAVA_USE= JAVA=yes
JAVA_BUILD_DEPENDS= swig3.0:devel/swig30
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>