Skip to content

Commit

Permalink
science/precice: New port: Coupling library for partitioned multi-phy…
Browse files Browse the repository at this point in the history
…sics simulations
  • Loading branch information
yurivict committed Jun 20, 2022
1 parent da639fa commit 672f96d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions science/Makefile
Expand Up @@ -242,6 +242,7 @@
SUBDIR += phonopy
SUBDIR += plumed
SUBDIR += pnetcdf
SUBDIR += precice
SUBDIR += pulseview
SUBDIR += py-DendroPy
SUBDIR += py-GPy
Expand Down
33 changes: 33 additions & 0 deletions science/precice/Makefile
@@ -0,0 +1,33 @@
PORTNAME= precice
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.0
CATEGORIES= science # physics

MAINTAINER= yuri@FreeBSD.org
COMMENT= Coupling library for partitioned multi-physics simulations

LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libmpicxx.so:net/mpich \
libpetsc.so:science/PETSc

USES= cmake:noninja,testing compiler:c++14-lang eigen:3 gnome pkgconfig # fails with ninja: phony target 'binprecice' names itself as an input; ignoring
USE_GNOME= libxml2
USE_LDCONFIG= yes

USE_GITHUB= yes

CMAKE_OFF= BUILD_TESTING PRECICE_ENABLE_FORTRAN PRECICE_PythonActions

OPTIONS_DEFINE= EXAMPLES

PORTEXAMPLES= *

# several tests are known to fail, see https://github.com/precice/precice/issues/1331

post-install: # remove files which aren't docs
@${RM} -r ${STAGEDIR}${PREFIX}/share/doc

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions science/precice/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1655718589
SHA256 (precice-precice-v2.4.0_GH0.tar.gz) = 762e603fbcaa96c4fb0b378b7cb6789d09da0cf6193325603e5eeb13e4c7601c
SIZE (precice-precice-v2.4.0_GH0.tar.gz) = 1596029
11 changes: 11 additions & 0 deletions science/precice/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2022-06-20 10:08:50 UTC
+++ CMakeLists.txt
@@ -461,7 +461,7 @@ endif()

# Install examples
install(DIRECTORY examples
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/precice
+ DESTINATION share/examples/precice
PATTERN ".gitignore" EXCLUDE
)

5 changes: 5 additions & 0 deletions science/precice/pkg-descr
@@ -0,0 +1,5 @@
preCICE is an open-source coupling library for partitioned
multi-physics simulations, including, but not restricted to
fluid-structure interaction and conjugate heat transfer simulations.

WWW: https://precice.org/
16 changes: 16 additions & 0 deletions science/precice/pkg-plist
@@ -0,0 +1,16 @@
bin/binprecice
bin/precice-tools
include/precice/SolverInterface.hpp
include/precice/SolverInterfaceC.h
include/precice/Tooling.hpp
include/precice/types.hpp
lib/cmake/precice/preciceConfig.cmake
lib/cmake/precice/preciceConfigVersion.cmake
lib/cmake/precice/preciceTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/precice/preciceTargets.cmake
lib/libprecice.so
lib/libprecice.so.2
lib/libprecice.so.2.4.0
libdata/pkgconfig/libprecice.pc
share/lintian/overrides/libprecice2
share/man/man1/precice-tools.1.gz

0 comments on commit 672f96d

Please sign in to comment.