Index: head/science/simbody/Makefile =================================================================== --- head/science/simbody/Makefile (revision 508358) +++ head/science/simbody/Makefile (revision 508359) @@ -1,50 +1,54 @@ # $FreeBSD$ PORTNAME= simbody DISTVERSIONPREFIX= Simbody- DISTVERSION= 3.6.1 -PORTREVISION= 3 +PORTREVISION= 4 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 +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 +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 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: # 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 Index: head/science/simbody/files/patch-examples_CMakeLists.txt =================================================================== --- head/science/simbody/files/patch-examples_CMakeLists.txt (nonexistent) +++ head/science/simbody/files/patch-examples_CMakeLists.txt (revision 508359) @@ -0,0 +1,20 @@ +--- examples/CMakeLists.txt.orig 2018-06-12 01:04:33 UTC ++++ examples/CMakeLists.txt +@@ -67,7 +67,7 @@ if(WIN32) + set(EXAMPLES_INSTALL_BIN examples/bin/) + set(EXAMPLES_INSTALL_SRC examples/src/) + else() +- set(EXAMPLES_INSTALL_BIN ${CMAKE_INSTALL_LIBDIR}/simbody/examples/) # if this changes, change the corresponding ++ set(EXAMPLES_INSTALL_BIN ${FREEBSD_EXAMPLESDIR}) # if this changes, change the corresponding + # FULL version in file(RELATIVE_PATH ) command + set(EXAMPLES_INSTALL_SRC ${CMAKE_INSTALL_DOCDIR}/examples/src/) + # Use full paths for the following as it will be used to create a symlink +@@ -75,7 +75,7 @@ else() + set(EXAMPLES_SYMLINK_BIN ${CMAKE_INSTALL_FULL_DOCDIR}/examples) + file(RELATIVE_PATH EXAMPLE_INSTALL_BIN_REL_TO_DOC + ${EXAMPLES_SYMLINK_BIN} +- ${CMAKE_INSTALL_FULL_LIBDIR}/simbody/examples/) ++ ${FREEBSD_EXAMPLESDIR}) + endif() + + # Set RPATH for all example targets in this directory and in subdirectories. Property changes on: head/science/simbody/files/patch-examples_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property