-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
science/spheral: New port: Environment for hydrodynamical & gravitati…
…onal numerical simulations
- Loading branch information
Showing
6 changed files
with
765 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
PORTNAME= spheral | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 2022.6.1-680 | ||
DISTVERSIONSUFFIX= -g23ce0f156 | ||
CATEGORIES= science # physics | ||
|
||
MAINTAINER= yuri@FreeBSD.org | ||
COMMENT= Environment for hydrodynamical & gravitational numerical simulations | ||
WWW= https://github.com/LLNL/spheral | ||
|
||
LICENSE= BSD3CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/License.txt | ||
|
||
BUILD_DEPENDS= ${LOCALBASE}/include/polyclipper2d.hh:math/polyclipper | ||
LIB_DEPENDS= libaxom.so:science/axom \ | ||
libboost_filesystem.so:devel/boost-libs \ | ||
libconduit.so:science/conduit \ | ||
libhdf5.so:science/hdf5 \ | ||
libosdCPU.so:graphics/opensubdiv \ | ||
libpolytope.so:science/polytope \ | ||
libqhull_r.so:math/qhull \ | ||
libsiloh5.so:science/silo | ||
|
||
USES= cmake compiler:c++14-lang eigen:3 fortran mpi:mpich python | ||
USE_LDCONFIG= yes | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= LLNL | ||
GH_TUPLE= llnl:blt:ddd5a0c:blt/cmake/blt \ | ||
llnl:uberenv:126f8de:uberenv/scripts/devtools/uberenv | ||
|
||
CMAKE_ARGS= -Daneos_DIR=${LOCALBASE} \ | ||
-Daxom_DIR=${LOCALBASE} \ | ||
-Dboost_DIR=${LOCALBASE} \ | ||
-Dconduit_DIR=${LOCALBASE} \ | ||
-Deigen_DIR=${LOCALBASE} \ | ||
-Dhdf5_DIR=${LOCALBASE} \ | ||
-Dopensubdiv_DIR=${LOCALBASE} \ | ||
-Dpython_DIR=${LOCALBASE} \ | ||
-Dpolytope_DIR=${LOCALBASE} \ | ||
-Dpybind11_DIR=${LOCALBASE} \ | ||
-Dqhull_DIR=${LOCALBASE} \ | ||
-Dsilo_DIR=${LOCALBASE} \ | ||
-Dzlib_DIR=/usr | ||
CMAKE_OFF= ENABLE_TESTS ENABLE_DOCS \ | ||
ENABLE_ANEOS | ||
CMAKE_ON= ENABLE_CXXONLY # disable Python support which is still for Python-2.7, see https://github.com/LLNL/spheral/issues/183 | ||
|
||
CXXFLAGS+= -I${LOCALBASE}/include/eigen3 | ||
|
||
BINARY_ALIAS= git=false python=${PYTHON_CMD} | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} -e 's|\.a|.so|; s|qhullstatic|qhull_r|; s|python2\.7|python${PYTHON_VER}|g' ${WRKSRC}/cmake/tpl/*.cmake | ||
@${CHMOD} +x ${WRKSRC}/src/helpers/InstantiationGenerator.py | ||
|
||
post-install: | ||
# workaround for https://github.com/LLNL/spheral/issues/188 | ||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake | ||
@${MV} ${STAGEDIR}${PREFIX}/Spheral/lib/cmake/* ${STAGEDIR}${PREFIX}/lib/cmake | ||
@${RM} -r ${STAGEDIR}${PREFIX}/Spheral | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TIMESTAMP = 1670638084 | ||
SHA256 (LLNL-spheral-v2022.6.1-680-g23ce0f156_GH0.tar.gz) = 2287693db6e2b9c78cc8fc20b96e0b25571e660c371fec6f1cb2f14743629a82 | ||
SIZE (LLNL-spheral-v2022.6.1-680-g23ce0f156_GH0.tar.gz) = 6529830 | ||
SHA256 (llnl-blt-ddd5a0c_GH0.tar.gz) = 5c235a9b160f1cc3f6ce4d7c80bf72772ac10839909f4f96075d08b3edd8f540 | ||
SIZE (llnl-blt-ddd5a0c_GH0.tar.gz) = 1220052 | ||
SHA256 (llnl-uberenv-126f8de_GH0.tar.gz) = 6a403e722dc023d87dd69f8235fa631ab96a7b1ff328929b9c969e7c113ce9f7 | ||
SIZE (llnl-uberenv-126f8de_GH0.tar.gz) = 25345 |
8 changes: 8 additions & 0 deletions
8
science/spheral/files/patch-src_helpers_InstantiationGenerator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- src/helpers/InstantiationGenerator.py.orig 2022-12-03 09:54:19 UTC | ||
+++ src/helpers/InstantiationGenerator.py | ||
@@ -1,3 +1,5 @@ | ||
+#!/usr/bin/env python | ||
+ | ||
#------------------------------------------------------------------------------- | ||
# IntantiationGenerator | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Silo is a library for reading and writing a wide variety of scientific | ||
data to binary, disk files. The files Silo produces and the data within | ||
them can be easily shared and exchanged between wholly independently | ||
developed applications running on disparate computing platforms. | ||
Consequently, Silo facilitates the development of general purpose tools | ||
for processing scientific data. |
Oops, something went wrong.