From eb8aaf9b194023c52d919ef730d868e7b6fd3638 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 9 Nov 2018 11:24:47 -0500 Subject: [PATCH] add gmsh 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 | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 deal.II-toolchain/packages/gmsh.package diff --git a/deal.II-toolchain/packages/gmsh.package b/deal.II-toolchain/packages/gmsh.package new file mode 100644 index 0000000..0784a93 --- /dev/null +++ b/deal.II-toolchain/packages/gmsh.package @@ -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 +} -- 2.39.5