diff options
author | Denis Davydov <davydden@gmail.com> | 2016-05-15 18:34:50 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-05-15 18:34:50 +0200 |
commit | a045154b5eda7c4d44d3e3b24fe4369c38b1aed4 (patch) | |
tree | 1b2cf183fdc00d938acd2c0afcdcc6fe4065bdb6 /var | |
parent | 21d4f3a3564c5633ccbce8e75648fa36a2e57388 (diff) | |
download | spack-a045154b5eda7c4d44d3e3b24fe4369c38b1aed4.tar.gz spack-a045154b5eda7c4d44d3e3b24fe4369c38b1aed4.tar.bz2 spack-a045154b5eda7c4d44d3e3b24fe4369c38b1aed4.tar.xz spack-a045154b5eda7c4d44d3e3b24fe4369c38b1aed4.zip |
graphviz: add missing dependency and fix installation on darwin
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/graphviz/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/graphviz/package.py b/var/spack/repos/builtin/packages/graphviz/package.py index 203e7b7f3c..a527d7ae50 100644 --- a/var/spack/repos/builtin/packages/graphviz/package.py +++ b/var/spack/repos/builtin/packages/graphviz/package.py @@ -23,6 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## from spack import * +import sys class Graphviz(Package): """Graph Visualization Software""" @@ -42,12 +43,20 @@ class Graphviz(Package): depends_on("swig") depends_on("python") depends_on("ghostscript") + depends_on("pkg-config") def install(self, spec, prefix): options = ['--prefix=%s' % prefix] if not '+perl' in spec: options.append('--disable-perl') + # On OSX fix the compiler error: + # In file included from tkStubLib.c:15: + # /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found + # include <X11/Xlib.h> + if sys.platform == 'darwin': + options.append('CFLAGS=-I/opt/X11/include') + configure(*options) make() make("install") |