samtools: fixing build issue due to change in 1.14 (#28024)

This commit is contained in:
snehring 2021-12-15 23:34:22 -06:00 committed by GitHub
parent 42677ded8e
commit e99aff93e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,11 @@ def install(self, spec, prefix):
make('prefix={0}'.format(prefix), 'install')
# Install dev headers and libs for legacy apps depending on them
mkdir(prefix.include)
mkdir(prefix.lib)
install('sam.h', prefix.include)
install('bam.h', prefix.include)
install('libbam.a', prefix.lib)
# per https://github.com/samtools/samtools/releases/tag/1.14
# these have been removed (bam.h still exists but paired down)
if spec.satisfies('@:1.13'):
mkdir(prefix.include)
mkdir(prefix.lib)
install('sam.h', prefix.include)
install('bam.h', prefix.include)
install('libbam.a', prefix.lib)