ncl: capture more dependencies (#3902)

* ncl: add depends_on statements for bison, flex and libiconv

* ncl: depends on flex for building and linking

* ncl: links with -ll, so requires flex with variant '+lex'

* ncl: depends on szip; external hdf5 may not provide it
This commit is contained in:
Milton Woods 2017-04-19 21:55:22 +10:00 committed by Adam J. Stewart
parent b00a12565c
commit 9b6b91b0b9

View file

@ -58,6 +58,11 @@ class Ncl(Package):
depends_on('netcdf') depends_on('netcdf')
depends_on('cairo') depends_on('cairo')
# Extra dependencies that may be missing from build system:
depends_on('bison', type='build')
depends_on('flex+lex')
depends_on('libiconv')
# Also, the manual says that ncl requires zlib, but that comes as a # Also, the manual says that ncl requires zlib, but that comes as a
# mandatory dependency of libpng, which is a mandatory dependency of cairo. # mandatory dependency of libpng, which is a mandatory dependency of cairo.
@ -75,6 +80,7 @@ class Ncl(Package):
# szip support. We introduce this restriction with the following dependency # szip support. We introduce this restriction with the following dependency
# statement. # statement.
depends_on('hdf5+szip') depends_on('hdf5+szip')
depends_on('szip')
# In Spack, we also do not have an option to compile netcdf without DAP # In Spack, we also do not have an option to compile netcdf without DAP
# support, so we will tell the ncl configuration script that we have it. # support, so we will tell the ncl configuration script that we have it.