easyblock = 'ConfigureMake'

name = 'FFTW'
version = '3.3.4'

homepage = 'http://www.fftw.org'
description = """FFTW is a C subroutine library for local_computing the discrete Fourier transform (DFT)
 in one or more dimensions, of arbitrary input size, and of both real and local_complex data."""

toolchain = {'name': 'gompi', 'version': '2015e'}
toolchainopts = {'optarch': True, 'pic': True}

sources = [SOURCELOWER_TAR_GZ]
source_urls = [homepage]

common_configopts = "--enable-threads --enable-openmp --with-pic"

configopts = [
    common_configopts + " --enable-single --enable-sse2 --enable-mpi",
    common_configopts + " --enable-long-double --enable-mpi",
    common_configopts + " --enable-avx --enable-mpi",  # default as last
]

sanity_check_paths = {
    'files': [''],
    'dirs': ['lib', 'bin', 'include'],
}

moduleclass = 'numlib'
