# IT4Innovations 2018

easyblock = 'MakeCp'

name = 'ACTC'
version = '1.1'

homepage = 'https://sourceforge.net/projects/actc'
description = "ACTC converts independent triangles into triangle strips or fans."

toolchain = {'name': 'intel', 'version': '2017a'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

buildopts = 'CC="$CC" CFLAGS="$CFLAGS"'

files_to_copy = [
    (['tcsample', 'tctest', 'tctest2'], 'bin'),
    (['tc.h'], 'include/ac'),
    (['libactc.a'], 'lib'),
    'COPYRIGHT', 'manual.html', 'prims.gif', 'README',
]

sanity_check_paths = {
    'files': [
        'bin/tctest',
        'bin/tctest2',
        'bin/tcsample',
        'include/ac/tc.h',
        'lib/libactc.a',
        'COPYRIGHT',
        'manual.html',
        'prims.gif',
        'README'],
    'dirs': [],
}

modextrapaths = {'CPATH': 'include/ac'}

moduleclass = 'lib'
