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 computing the nonequispaced discrete Fourier transform (NDFT) and its generalisations in one or more
 dimensions, of arbitrary input size, and of complex data."""

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

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

dependencies = [
    ('fftw/3.3.4.5', 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'
