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': 'GCCcore', 'version': '6.4.0'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['3a1303291629b9de6008c3c9d7b020a4b854802408fb3f8222ec492808c8b44d']

builddependencies = [
    # use same binutils version that was used when building GCCcore toolchain
    ('binutils', '2.28'),
]

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'
