libharu: Make dependencies on zlib and libpng explicit (#6682)
This commit is contained in:
parent
5a66065dfa
commit
ce832fca59
@ -40,12 +40,25 @@ class Libharu(AutotoolsPackage):
|
|||||||
version('master', branch='master',
|
version('master', branch='master',
|
||||||
git='https://github.com/libharu/libharu.git')
|
git='https://github.com/libharu/libharu.git')
|
||||||
|
|
||||||
|
depends_on('libpng')
|
||||||
|
depends_on('zlib')
|
||||||
|
|
||||||
def autoreconf(self, spec, prefix):
|
def autoreconf(self, spec, prefix):
|
||||||
"""execute their autotools wrapper script"""
|
"""execute their autotools wrapper script"""
|
||||||
if os.path.exists('./buildconf.sh'):
|
if os.path.exists('./buildconf.sh'):
|
||||||
bash = which('bash')
|
bash = which('bash')
|
||||||
bash('./buildconf.sh', '--force')
|
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):
|
def url_for_version(self, version):
|
||||||
url = 'https://github.com/libharu/libharu/archive/RELEASE_{0}.tar.gz'
|
url = 'https://github.com/libharu/libharu/archive/RELEASE_{0}.tar.gz'
|
||||||
return url.format(version.underscored)
|
return url.format(version.underscored)
|
||||||
|
Loading…
Reference in New Issue
Block a user