# -*- 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        saitoha libsixel 1.8.7-r1 v
revision            0
categories          graphics devel
maintainers         nomaintainer
license             MIT

description         Encoder/decoder implementation for DEC SIXEL graphics
long_description    {*}${description} and some converter programs.

checksums           rmd160  b2b106ad1c5e17d8d2288d469ecff648a174aa5e \
                    sha256  36eaa897ddff788fef818114f810b0d341f078cf3379c30e9ccc0bbcd6eb67c5 \
                    size    4901699
github.tarball_from archive

use_autoreconf      yes

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:curl \
                    path:lib/libjpeg.dylib:libjpeg-turbo \
                    port:libpng

# stb_image.h:974: error: thread-local storage not supported for this target
compiler.thread_local_storage yes

configure.args-append \
                    --disable-python \
                    --disable-silent-rules \
                    --enable-img2sixel \
                    --enable-sixel2png \
                    --with-libcurl \
                    --with-jpeg \
                    --with-png \
                    --without-gd \
                    --without-gdk-pixbuf2
