graphviz: fixed build error due to specifying ltdl lib but not include. (#2609)
* graphviz: fixed build error due to specifying ltdl lib but not include. * graphviz: Fixed dependencies on libtool and expat.
This commit is contained in:
parent
394f010952
commit
a1a41bb4c7
@ -48,7 +48,8 @@ class Graphviz(AutotoolsPackage):
|
|||||||
depends_on("python")
|
depends_on("python")
|
||||||
depends_on("ghostscript")
|
depends_on("ghostscript")
|
||||||
depends_on("freetype")
|
depends_on("freetype")
|
||||||
depends_on("libtool", type='build')
|
depends_on("expat")
|
||||||
|
depends_on("libtool")
|
||||||
depends_on("pkg-config", type='build')
|
depends_on("pkg-config", type='build')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
@ -62,7 +63,6 @@ def configure_args(self):
|
|||||||
# include <X11/Xlib.h>
|
# include <X11/Xlib.h>
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
options.append('CFLAGS=-I/opt/X11/include')
|
options.append('CFLAGS=-I/opt/X11/include')
|
||||||
options.append('--with-ltdl-lib=%s/lib' % self.spec['libtool'].prefix)
|
|
||||||
|
|
||||||
# A hack to patch config.guess in the libltdl sub directory
|
# A hack to patch config.guess in the libltdl sub directory
|
||||||
shutil.copyfile('./config/config.guess', 'libltdl/config/config.guess')
|
shutil.copyfile('./config/config.guess', 'libltdl/config/config.guess')
|
||||||
|
Loading…
Reference in New Issue
Block a user