[SCM] Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. branch, master, updated. upstream/2.5.1_beta2_svn10284_dfsg-62-g6fe1e7e

Anton Gladky gladky.anton at gmail.com
Sat Dec 10 15:37:08 UTC 2011


The following commit has been merged in the master branch:
commit 6fe1e7ea70049263c2cdebf8c779d174b21af200
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Sat Dec 10 16:37:02 2011 +0100

    Replace patch for switching-off metis and tetgen by options.

diff --git a/debian/patches/series b/debian/patches/series
index dc5033e..ca223f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,4 @@
 change_shared_library_name.patch
 skip_license_file.patch
 fix_spelling_errors.patch
-switch_off_metis_and_tetgen.patch
 delete_gl2ps_from_source.patch
diff --git a/debian/patches/switch_off_metis_and_tetgen.patch b/debian/patches/switch_off_metis_and_tetgen.patch
deleted file mode 100644
index 89f8234..0000000
--- a/debian/patches/switch_off_metis_and_tetgen.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Description: Switch off some options.
-Author: Anton Gladky <gladky.anton at gmail.com>
-Last-Update: 2011-12-09
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -35,7 +35,7 @@
- option(ENABLE_MATHEX "Enable MathEx expression parser" ON)
- option(ENABLE_MED "Enable MED mesh and post-processing file formats" ON)
- option(ENABLE_MESH "Build the mesh module" ON)
--option(ENABLE_METIS "Enable Metis mesh partitioner" ON)
-+option(ENABLE_METIS "Enable Metis mesh partitioner" OFF)
- option(ENABLE_MMG3D "Enable 3D Mobile Mesh Generation" ON)
- option(ENABLE_MPEG_ENCODE "Enable built-in MPEG encoder" ON)
- option(ENABLE_MPI "Enable MPI parallelization" OFF)
-@@ -53,8 +53,8 @@
- option(ENABLE_SALOME "Enable Salome routines for CAD healing" ON)
- option(ENABLE_SLEPC "Enable SLEPc eigensolvers" ON)
- option(ENABLE_SOLVER "Enable solver components" ON)
--option(ENABLE_TAUCS "Enable Taucs linear algebra solver" ON)
--option(ENABLE_TETGEN "Enable Tetgen mesh generator" ON)
-+option(ENABLE_TAUCS "Enable Taucs linear algebra solver" OFF)
-+option(ENABLE_TETGEN "Enable Tetgen mesh generator" OFF)
- option(ENABLE_TETGEN_NEW "Enable experimental version of Tetgen" OFF)
- option(ENABLE_WRAP_JAVA "Build Java wrappers" OFF)
- option(ENABLE_WRAP_PYTHON "Build Python wrappers" ON)
diff --git a/debian/rules b/debian/rules
index b61f187..6f290bd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,15 @@ BUILDDIR = $(CURDIR)/debian/build
 %:
 	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR)
 
-extra_flags += -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -fopenmp" -DCMAKE_INCLUDE_PATH:="/usr/include/mpi"
+extra_flags += -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -fopenmp -lgl2ps -lGL -lglut" \
+-DCMAKE_INCLUDE_PATH:="/usr/include/mpi"\
+-DENABLE_METIS:=OFF\
+-DENABLE_TAUCS:=OFF
+
+# PETSC_DIR is the location of PETSc.
+export PETSC_DIR=/usr/lib/petscdir/3.1
+export PETSC_ARCH=linux-gnu-c-opt
+export SLEPC_DIR=/usr/lib/slepcdir/3.1
 
 override_dh_auto_clean:
 	rm -rf $(BUILDDIR)

-- 
Gmsh packaging. Gmsh is an automatic 3D finite element mesh generator. 



More information about the debian-science-commits mailing list