diff options
author | Scott Wittenburg <scott.wittenburg@kitware.com> | 2017-12-14 00:58:42 -0700 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2017-12-14 08:58:42 +0100 |
commit | ce832fca59b9864f104526b8c3c2379553718c43 (patch) | |
tree | f97a6e25c1de696cb09e4686d83e8691ba962bf8 /var | |
parent | 5a66065dfaf9a68303cf05d70ea323848506af34 (diff) | |
download | spack-ce832fca59b9864f104526b8c3c2379553718c43.tar.gz spack-ce832fca59b9864f104526b8c3c2379553718c43.tar.bz2 spack-ce832fca59b9864f104526b8c3c2379553718c43.tar.xz spack-ce832fca59b9864f104526b8c3c2379553718c43.zip |
libharu: Make dependencies on zlib and libpng explicit (#6682)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libharu/package.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libharu/package.py b/var/spack/repos/builtin/packages/libharu/package.py index 3542582df8..7e0e049f98 100644 --- a/var/spack/repos/builtin/packages/libharu/package.py +++ b/var/spack/repos/builtin/packages/libharu/package.py @@ -40,12 +40,25 @@ class Libharu(AutotoolsPackage): version('master', branch='master', git='https://github.com/libharu/libharu.git') + depends_on('libpng') + depends_on('zlib') + def autoreconf(self, spec, prefix): """execute their autotools wrapper script""" if os.path.exists('./buildconf.sh'): bash = which('bash') bash('./buildconf.sh', '--force') + def configure_args(self): + """Point to spack-installed zlib and libpng""" + spec = self.spec + args = [] + + args.append('--with-zlib={0}'.format(spec['zlib'].prefix)) + args.append('--with-png={0}'.format(spec['libpng'].prefix)) + + return args + def url_for_version(self, version): url = 'https://github.com/libharu/libharu/archive/RELEASE_{0}.tar.gz' return url.format(version.underscored) |