easyblock = 'ConfigureMake'

name = 'libpng'
version = '1.6.12'

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

toolchain = {'name': 'system', 'version': ''}
toolchainopts = {'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

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

preconfigopts = 'export LDFLAGS="-L/apps/all/zlib/1.2.8/lib" CPPFLAGS="-I/apps/all/zlib/1.2.8/include" &&'

configopts = "--with-pic"

moduleclass = 'lib'
