diff options
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) |