# IT4Innovations
# LK 2023

easyblock = "CMakeMake"

name = "PNGwriter"
version = "0.7.0"

homepage = 'https://github.com/pngwriter/pngwriter/'
description = """PNGwriter is a very easy to use open source graphics library 
that uses PNG as its output format. The interface has been designed to be as 
simple and intuitive as possible. It supports plotting and reading pixels in 
the RGB (red, green, blue), HSV (hue, saturation, value/brightness) and CMYK 
(cyan, magenta, yellow, black) colour spaces, basic shapes, scaling, bilinear 
interpolation, full TrueType antialiased and rotated text support, bezier 
curves, opening existing PNG images and more. Documentation in English 
(and Spanish up to v0.5.4). Runs under Linux, Unix, Mac OS X and Windows. 
Requires libpng and optionally FreeType2 for the text support."""

toolchain = {'name': 'GCC', 'version': '10.3.0'}

source_urls = ['https://github.com/pngwriter/pngwriter/archive/refs/tags/']
sources = ['%(version)s.tar.gz']
checksums = ['82d46eef109f434f95eba9cf5908710ae4e75f575fd3858178ad06e800152825']

builddependencies = [('CMake', '3.20.1')]

dependencies = [
    ('freetype', '2.10.4'),
    ('libpng', '1.6.37'),
]

separate_build_dir = True

sanity_check_paths = {
    'files': ['include/pngwriter.h', 'lib/libPNGwriter.a'],
    'dirs': ['include', 'lib']
}

moduleclass = 'lib'
