# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

PortGroup           github  1.0
PortGroup           cmake   1.1

github.setup        randy408 libspng 0.7.4 v
github.tarball_from archive
revision            1

homepage            https://libspng.org/

description         Simple, modern libpng alternative

long_description    libspng is a C library for reading and writing PNG \
                    files. It is a simpler, faster alternative to libpng \
                    with a focus on security and ease of use.

categories          graphics
license             BSD
maintainers         {@herbygillot gmail.com:herby.gillot} \
                    openmaintainer

cmake.build_type    Release

checksums           rmd160  a2321ed4ab2ac5558d09d1204b0583aca6e46d14 \
                    sha256  47ec02be6c0a6323044600a9221b049f63e1953faf816903e7383d4dc4234487 \
                    size    159230

depends_lib-append  port:zlib

configure.args-append \
                    -DBUILD_EXAMPLES=OFF

post-destroot {
    ln -s libspng.pc ${destroot}${prefix}/lib/pkgconfig/spng.pc
}

github.livecheck.regex {([0-9.]+)}
