# -*- 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

github.setup        hpjansson chafa 1.14.5
github.tarball_from releases
revision            0

homepage            https://hpjansson.org/chafa

description         Terminal graphics for the 21st century

long_description    {*}${description}. Chafa is a command-line utility that \
                    converts all kinds of images, including animated GIFs, \
                    into sixel or ANSI/Unicode character output that can be \
                    displayed in a terminal. It is highly configurable, with \
                    support for alpha transparency and multiple color modes \
                    and color spaces, combining selectable ranges of Unicode \
                    characters to produce the desired output.

categories          graphics
license             LGPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin linux

checksums           rmd160  1b1dd8051a23944185690bb63b5e07474a30f4ec \
                    sha256  7b5b384d5fb76a641d00af0626ed2115fb255ea371d9bef11f8500286a7b09e5 \
                    size    993572

depends_build-append \
                    port:gtk-doc    \
                    bin:pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:ImageMagick \
                    port:gettext-runtime \
                    port:freetype \
                    port:libjpeg-turbo \
                    port:libjxl \
                    port:tiff \
                    port:webp

use_xz              yes

# smolscale.c:640:5: error: use of unknown
# builtin '__builtin_cpu_init'
# uses newer intrinsic functions
# https://trac.macports.org/ticket/66729
compiler.blacklist-append \
                    {*gcc-[3-4].*} {clang < 1001}
