mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
da3162c7c9
Per discussion with bapt on helping pkg handle the changing of these deps and avoiding impossible upgrade senarios. PR: 246767 Reviewed by: manu, bapt Approved by: x11 Differential Revision: https://reviews.freebsd.org/D30824
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
PORTNAME= simbody
|
|
DISTVERSIONPREFIX= Simbody-
|
|
DISTVERSION= 3.7
|
|
PORTREVISION= 4
|
|
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>
|