easyblock = 'ConfigureMake'

name = 'libpng'
version = '1.5.14'

homepage = 'http://www.libpng.org/pub/png/libpng.html'
description = "libpng is the official PNG reference library"

toolchain = {'name': 'ictce', 'version': '4.1.13'}

toolchainopts = {'optarch': True}
configopts = "--with-pic"

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

dependencies = [('zlib', '1.2.7')]

sanity_check_paths = {
    'files': ['bin/libpng-config', 'lib/libpng.a', 'lib/libpng.%s' % SHLIB_EXT, 'lib/pkgconfig/libpng.pc'],
    'dirs': ['include'],
}

moduleclass = 'lib'
