summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rwxr-xr-xscience/netgen/BUILD3
-rwxr-xr-xscience/netgen/CONFIGURE1
-rwxr-xr-xscience/netgen/DEPENDS41
-rwxr-xr-xscience/netgen/DETAILS18
-rw-r--r--science/netgen/HISTORY3
6 files changed, 67 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ba13635535..3fd890d551 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
2019-09-20 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* devel/pybind11: new spell, a C++11/Python binding generator
+ * science/netgen: new spell, a multiphysics finite element software
2019-09-18 Ismael Luceno <ismael@sourcemage.org>
* audio-libs/portmidi: new spell, Platform Independent Library for
diff --git a/science/netgen/BUILD b/science/netgen/BUILD
new file mode 100755
index 0000000000..a659540447
--- /dev/null
+++ b/science/netgen/BUILD
@@ -0,0 +1,3 @@
+OPTS+=" -DUSE_PYTHON=OFF" &&
+OPTS+=" -DUSE_GUI=OFF" &&
+default_build
diff --git a/science/netgen/CONFIGURE b/science/netgen/CONFIGURE
new file mode 100755
index 0000000000..b2f02c3032
--- /dev/null
+++ b/science/netgen/CONFIGURE
@@ -0,0 +1 @@
+source $GRIMOIRE/CMAKE_CONFIGURE
diff --git a/science/netgen/DEPENDS b/science/netgen/DEPENDS
new file mode 100755
index 0000000000..4d14434a98
--- /dev/null
+++ b/science/netgen/DEPENDS
@@ -0,0 +1,41 @@
+. "${GRIMOIRE}/CMAKE_DEPENDS" &&
+depends -sub CXX gcc &&
+depends tcl &&
+depends tk &&
+depends zlib &&
+
+optional_depends oce \
+ "-DUSE_OCC=ON" \
+ "-DUSE_OCC=OFF" \
+ "use OpenCascade geometry kernel" &&
+
+#optional_depends libx11 \
+# "-DUSE_GUI=ON" \
+# "-DUSE_GUI=OFF" \
+# "build GUI" &&
+#
+#if is_depends_enabled $SPELL libx11; then
+# depends togl1 &&
+# depends tcl &&
+# depends tk
+#fi &&
+
+optional_depends openmpi \
+ "-DUSE_MPI=ON" \
+ "-DUSE_MPI=OFF" \
+ "use OpenMPI for parallel execution" &&
+
+if is_depends_enabled $SPELL openmpi; then
+ depends metis "--with-metis=${TRACK_ROOT}/usr"
+fi &&
+
+optional_depends JPEG \
+ "-DUSE_JPEG=ON" \
+ "-DUSE_JPEG=OFF" \
+ "allow for snapshots using some jpeg library" &&
+
+optional_depends LIBAVCODEC \
+ "-DUSE_MPEG=ON" \
+ "-DUSE_MPEG=OFF" \
+ "allow for video recording using some avcodec library"
+
diff --git a/science/netgen/DETAILS b/science/netgen/DETAILS
new file mode 100755
index 0000000000..a506772a85
--- /dev/null
+++ b/science/netgen/DETAILS
@@ -0,0 +1,18 @@
+source "${GRIMOIRE}/CMAKE_FUNCTIONS"
+ SPELL=netgen
+ VERSION=6.2.1810
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE_URL[0]=https://github.com/NGSolve/netgen/archive/v${VERSION}.tar.gz
+ SOURCE_HASH=sha512:b57ad0d170eb214e80f6c15f18f4175117d6f43cd94b7830edc996b29a4bdf9ea8f8714e72e5bb3be15a95b7fa3c4ca6005b2896673221d5a418fdf3d33048f5
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE="https://ngsolve.org/"
+ LICENSE[0]=GPL
+ ENTERED=20170120
+ SHORT="an automatic 3d tetrahedral mesh generator"
+cat << EOF
+NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from
+constructive solid geometry (CSG) or boundary representation (BRep) from
+STL file format. The connection to a geometry kernel allows the handling
+of IGES and STEP files. NETGEN contains modules for mesh optimization and
+hierarchical mesh refinement.
+EOF
diff --git a/science/netgen/HISTORY b/science/netgen/HISTORY
new file mode 100644
index 0000000000..2fc8df383c
--- /dev/null
+++ b/science/netgen/HISTORY
@@ -0,0 +1,3 @@
+2019-09-20 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * BUILD, CONFIGURE, DEPENDS, DETAILS: spell created
+