From ce832fca59b9864f104526b8c3c2379553718c43 Mon Sep 17 00:00:00 2001 From: Scott Wittenburg Date: Thu, 14 Dec 2017 00:58:42 -0700 Subject: libharu: Make dependencies on zlib and libpng explicit (#6682) --- var/spack/repos/builtin/packages/libharu/package.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) -- cgit v1.2.3-70-g09d2