diff options
-rw-r--r-- | var/spack/packages/cgm/package.py | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/var/spack/packages/cgm/package.py b/var/spack/packages/cgm/package.py index 7f32458c72..05d6395c5a 100644 --- a/var/spack/packages/cgm/package.py +++ b/var/spack/packages/cgm/package.py @@ -1,7 +1,9 @@ from spack import * class Cgm(Package): - """The Common Geometry Module, Argonne (CGMA) is a code library which provides geometry functionality used for mesh generation and other applications.""" + """The Common Geometry Module, Argonne (CGMA) is a code library + which provides geometry functionality used for mesh generation and + other applications.""" homepage = "http://trac.mcs.anl.gov/projects/ITAPS/wiki/CGM" url = "http://ftp.mcs.anl.gov/pub/fathom/cgm13.1.1.tar.gz" @@ -9,14 +11,20 @@ class Cgm(Package): version('13.1.0', 'a6c7b22660f164ce893fb974f9cb2028') version('13.1' , '95f724bda04919fc76818a5b7bc0b4ed') - depends_on("openmpi") + depends_on("mpi") + + def patch(self): + filter_file('^(#include "CGMParallelConventions.h")', + '//\1', + 'geom/parallel/CGMReadParallel.cpp') + def install(self, spec, prefix): configure("--with-mpi", - "--prefix=%s" % prefix, - "CFLAGS=-static", - "CXXFLAGS=-static", - "FCFLAGS=-static") + "--prefix=%s" % prefix, + "CFLAGS=-static", + "CXXFLAGS=-static", + "FCFLAGS=-static") make() make("install") |