diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2019-06-21 20:54:51 +0900 |
---|---|---|
committer | Elizabeth Fischer <elizabeth.fischer@columbia.edu> | 2019-06-21 07:54:51 -0400 |
commit | 9955b15f4e7579b394416ef1e3c398167c6828cc (patch) | |
tree | 18e88760ed839d5c2deb17f7790c7bc6505852bb | |
parent | 894d01e482d973e3da30f943e17ba2b5d7b599a8 (diff) | |
download | spack-9955b15f4e7579b394416ef1e3c398167c6828cc.tar.gz spack-9955b15f4e7579b394416ef1e3c398167c6828cc.tar.bz2 spack-9955b15f4e7579b394416ef1e3c398167c6828cc.tar.xz spack-9955b15f4e7579b394416ef1e3c398167c6828cc.zip |
mpe2 use autotools and add libx11 dependency. (#11807)
-rw-r--r-- | var/spack/repos/builtin/packages/mpe2/package.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/mpe2/package.py b/var/spack/repos/builtin/packages/mpe2/package.py index bb898dff43..5b31776119 100644 --- a/var/spack/repos/builtin/packages/mpe2/package.py +++ b/var/spack/repos/builtin/packages/mpe2/package.py @@ -6,7 +6,7 @@ from spack import * -class Mpe2(Package): +class Mpe2(AutotoolsPackage): """Message Passing Extensions (MPE): Parallel, shared X window graphics""" homepage = "http://www.mcs.anl.gov/research/projects/perfvis/software/MPE/" @@ -17,18 +17,17 @@ class Mpe2(Package): patch('mpe2.patch') depends_on("mpi") + depends_on("libx11") provides("mpe") - def install(self, spec, prefix): - configure("--prefix=" + prefix, - "--x-includes=/usr/X11R6/include", - "--x-libraries=/usr/X11R6/lib", - "--enable-mpe_graphics=yes", - "--disable-f77", - "--enable-viewers=no", - "--enable-slog2=no", - "--with-mpicc=mpicc") - - make() - make("install") + def configure_args(self): + args = [] + + args.append('--enable-mpe_graphics=yes') + args.append('--disable-f77') + args.append('--enable-viewers=no') + args.append('--enable-slog2=no') + args.append('--with-mpicc=%s' % self.spec['mpi'].mpicc) + + return args |