[SCM] Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. branch, master, updated. upstream/2.5.1_beta2_svn10664_dfsg-76-g9f07096
Anton Gladky
gladky.anton at gmail.com
Thu Jan 5 21:27:02 UTC 2012
The following commit has been merged in the master branch:
commit ba58a672df5d439db2c039d7756e6f6a447a3d6b
Author: Christophe Trophime <christophe.trophime at lncmi.cnrs.fr>
Date: Thu Jan 5 21:42:13 2012 +0100
Enable tetgen on systems, where it is available. Needs package-rebuilding.
diff --git a/debian/patches/series b/debian/patches/series
index ca223f5..db717f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ change_shared_library_name.patch
skip_license_file.patch
fix_spelling_errors.patch
delete_gl2ps_from_source.patch
+tetgen.patch
diff --git a/debian/patches/tetgen.patch b/debian/patches/tetgen.patch
new file mode 100644
index 0000000..4d4d070
--- /dev/null
+++ b/debian/patches/tetgen.patch
@@ -0,0 +1,26 @@
+Desctiption: enable tetgen on systems, where it is available. Needs package-rebuilding
+Author: Christophe Trophime <christophe.trophime at lncmi.cnrs.fr>
+Reviewed-by: Anton Gladky <gladky.anton at gmail.com>
+Last-Update: 2012-01-05
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -567,6 +567,18 @@
+ message("WARNING: By including Tetgen you have to comply with Tetgen's "
+ "special licensing requirements stated in contrib/Tetgen/LICENSE.")
+ endif(ENABLE_TETGEN_NEW AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/TetgenNew/tetgen.h)
++ if(ENABLE_TETGEN)
++ find_library(TETGEN_LIB tet PATH_SUFFIXES lib)
++ if(TETGEN_LIB)
++ find_path(TETGEN_INC "tetgen.h" PATH_SUFFIXES src include tetgen)
++ if(TETGEN_INC)
++ set_config_option(HAVE_TETGEN "Tetgen")
++ add_definitions(-DTETLIBRARY)
++ list(APPEND EXTERNAL_LIBRARIES ${TETGEN_LIB})
++ list(APPEND EXTERNAL_INCLUDES ${TETGEN_INC})
++ endif(TETGEN_INC)
++ endif(TETGEN_LIB)
++ endif(ENABLE_TETGEN)
+ endif(HAVE_MESH)
+
+ if(ENABLE_FOURIER_MODEL)
--
Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator.
More information about the debian-science-commits
mailing list