]> https://gitweb.dealii.org/ - candi.git/commitdiff
add gmsh
authorTimo Heister <timo.heister@gmail.com>
Fri, 9 Nov 2018 16:24:47 +0000 (11:24 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 9 Nov 2018 20:41:32 +0000 (15:41 -0500)
this is a dependency starting with deal.II 9.0.

This needs to also go on the dealii-9.0 branch

deal.II-toolchain/packages/gmsh.package [new file with mode: 0644]

diff --git a/deal.II-toolchain/packages/gmsh.package b/deal.II-toolchain/packages/gmsh.package
new file mode 100644 (file)
index 0000000..0784a93
--- /dev/null
@@ -0,0 +1,43 @@
+# see http://gmsh.info/src/
+VERSION=3.0.6
+CHECKSUM=78bbfdd695b29cfef18a99f93226afc5
+
+NAME=gmsh-${VERSION}-source
+PACKING=.tgz
+SOURCE=http://gmsh.info/src/
+EXTRACTSTO=gmsh-${VERSION}-source
+
+BUILDCHAIN=cmake
+
+BUILDDIR=${BUILD_PATH}/${EXTRACTSTO}
+INSTALL_PATH=${INSTALL_PATH}/gmsh-${VERSION}
+
+CONFOPTS=" -D ENABLE_MPI=OFF \
+          -D CMAKE_BUILD_TYPE=Release"
+
+# options we might consider setting:
+# -D ENABLE_METIS=OFF
+# -D ENABLE_FLTK=OFF
+# -D ENABLE_OCC=OFF
+# -D ENABLE_PETSC=OFF
+# -D ENABLE_SLEPC=OFF
+# -D ENABLE_COMPRESSED_IO=O
+# the following two sadly don't install the .so correctly:
+# -D ENABLE_BUILD_SHARED=ON
+# -D ENABLE_BUILD_DYNAMIC=ON
+
+
+package_specific_register () {
+    export GMSH_DIR=${INSTALL_PATH}
+    export PATH=${INSTALL_PATH}/bin:$PATH
+}
+
+package_specific_conf () {
+    # Generate configuration file
+    CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
+    rm -f $CONFIG_FILE
+    echo "
+export GMSH_DIR=${INSTALL_PATH}
+export PATH=${INSTALL_PATH}/bin:\$PATH
+" >> $CONFIG_FILE
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.