# -*- 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           muniversal 1.0
PortGroup           legacysupport 1.1

# posix_memalign
legacysupport.newest_darwin_requires_legacy 9

github.setup        sekrit-twc zimg 3.0.6 release-
github.tarball_from archive
revision            0

description         Scaling, colorspace conversion, and dithering library

long_description    The \"z\" library implements the commonly required image \
                    processing basics of scaling, colorspace conversion, and \
                    depth conversion. A simple API enables conversion between \
                    any supported formats to operate with minimal knowledge \
                    from the programmer. All library routines were designed \
                    from the ground-up with correctness, flexibility, and \
                    thread-safety as first priorities. Allocation, buffering, \
                    and I/O are cleanly separated from processing, allowing \
                    the programmer to adapt \"z\" to many scenarios.

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

checksums           rmd160  09d556d0b781285b20f9ce50291a61db21856db1 \
                    sha256  be89390f13a5c9b2388ce0f44a5e89364a20c1c57ce46d382b1fcc3967057577 \
                    size    326725

compiler.cxx_standard           2011
compiler.thread_local_storage   yes

# https://trac.macports.org/ticket/61230
compiler.blacklist-append {clang < 802}

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh
autoreconf.args

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool \
                    port:pkgconfig

configure.args      --disable-silent-rules
