easyblock = 'ConfigureMake'

name = 'FRC_align'
version = '20130521'

homepage = 'https://github.com/vezzi/FRC_align'
description = """Computes FRC from SAM/BAM file and not from afg files."""

toolchain = {'name': 'ictce', 'version': '4.1.13'}

git_commit_id = '77a4bc7b8b'
sources = ['%s.tar.gz' % git_commit_id]
source_urls = ['https://github.com/vezzi/FRC_align/archive']

dependencies = [
    ('Boost', '1.51.0'),
    ('bzip2', '1.0.6'),
    ('zlib', '1.2.7'),
    ('ncurses', '5.9'),
]

preconfigopts = 'cd src/samtools && make LIBPATH="-L$EBROOTZLIB/lib -L$EBROOTNCURSES/lib" && cd - && '
preconfigopts += 'BOOST_ROOT=$EBROOTBOOST'
buildopts = 'BOOST_LDFLAGS="-L$EBROOTBZIP2/lib -L$EBROOTZLIB/lib -L$EBROOTBOOST/lib" '
buildopts += 'BOOST_IOSTREAMS_LIBS="-lboost_iostreams"'

sanity_check_paths = {
    'files': ['bin/FRC', 'bin/FRC_debug'],
    'dirs': [],
}

moduleclass = 'bio'
