name = 'Boost'
version = '1.63.0'

homepage = 'http://www.boost.org/'
description = """Boost provides free peer-reviewed portable C++ source libraries."""

toolchain = {'name': 'foss', 'version': '2017a'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = ['%%(namelower)s_%s.tar.gz' % '_'.join(version.split('.'))]

local_pythonversion = '2.7.13'
versionsuffix = '-Python-%s' % local_pythonversion

dependencies = [
    ('bzip2', '1.0.6', '', True),
    ('zlib', '1.2.11', '', True),
    ('Python', local_pythonversion, '', True)
]

configopts = '--with-python=$EBROOTPYTHON/bin/python'
buildopts = '-fPIC &&'

# also build boost_mpi
boost_mpi = True

moduleclass = 'devel'
