easyblock = 'ConfigureMake'

name = 'NFFT'
version = '3.3.0'

homepage = 'https://www-user.tu-chemnitz.de/~potts/nfft/'
description = """The NFFT (nonequispaced fast Fourier transform or nonuniform fast Fourier transform) is a C subroutine
 library for local_computing the nonequispaced discrete Fourier transform (NDFT) and its generalisations in one or more
 dimensions, of arbitrary input size, and of local_complex data."""

toolchain = {'name': 'CrayGNU', 'version': '2015.06'}

source_urls = ['https://www-user.tu-chemnitz.de/~potts/nfft/download/']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('fftw/3.3.4.3', EXTERNAL_MODULE),
]

sanity_check_paths = {
    'files': [
        'include/nfft3.h',
        'include/nfft3mp.h',
        'lib/libnfft3.a',
        'lib/libnfft3.%s' %
        SHLIB_EXT],
    'dirs': ['lib/pkgconfig'],
}

moduleclass = 'lib'