Skip to content
Snippets Groups Projects
Commit a045154b authored by Denis Davydov's avatar Denis Davydov
Browse files

graphviz: add missing dependency and fix installation on darwin

parent 21d4f3a3
Branches
Tags
No related merge requests found
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
from spack import * from spack import *
import sys
class Graphviz(Package): class Graphviz(Package):
"""Graph Visualization Software""" """Graph Visualization Software"""
...@@ -42,12 +43,20 @@ class Graphviz(Package): ...@@ -42,12 +43,20 @@ class Graphviz(Package):
depends_on("swig") depends_on("swig")
depends_on("python") depends_on("python")
depends_on("ghostscript") depends_on("ghostscript")
depends_on("pkg-config")
def install(self, spec, prefix): def install(self, spec, prefix):
options = ['--prefix=%s' % prefix] options = ['--prefix=%s' % prefix]
if not '+perl' in spec: if not '+perl' in spec:
options.append('--disable-perl') 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) configure(*options)
make() make()
make("install") make("install")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment