# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        randy408 libspng 0.7.4 v
revision            0
categories          graphics
license             BSD
maintainers         nomaintainer
description         Simple, modern libpng alternative
long_description    ${name} is a C library for reading and writing \
                    Portable Network Graphics (PNG) format files \
                    with a focus on security and ease of use.
homepage            https://libspng.org
checksums           rmd160  a2321ed4ab2ac5558d09d1204b0583aca6e46d14 \
                    sha256  47ec02be6c0a6323044600a9221b049f63e1953faf816903e7383d4dc4234487 \
                    size    159230
github.tarball_from archive

compiler.c_standard 1999

depends_lib-append  port:zlib

configure.args-append \
                    -DBUILD_EXAMPLES=OFF \
                    -DSPNG_SHARED=ON \
                    -DSPNG_STATIC=ON
