name = 'Boost'
version = '1.64.0'

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

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

source_urls = [SOURCEFORGE_SOURCE]
sources = ['%%(namelower)s_%s.tar.gz' % '_'.join(version.split('.'))]
patches = [
    'Boost-%(version)s_fix-include-array_wrapper.patch',
    'Boost-%(version)s_fix-boost-serialization-detail-get_data.patch',
]
checksums = [
    '0445c22a5ef3bd69f5dfb48354978421a85ab395254a26b1ffb0aa1bfd63a108',  # boost_1_64_0.tar.gz
    'aaf0657246d9cde4857954b6d1b9f9454370896b2077294461357d47951ca891',  # Boost-1.64.0_fix-include-array_wrapper.patch
    # Boost-1.64.0_fix-boost-serialization-detail-get_data.patch
    '5a569ac999bc3b6bf6386f2e37249f86137eec39a3649ab8a454479ca1ac7d9f',
]

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

configopts = '--without-libraries=python'

# also build boost_mpi
boost_mpi = True

moduleclass = 'devel'
