# -*- 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        radare tiv 0.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
maintainers         nomaintainer

categories          graphics games
license             BSD
description         tiv: the terminal image viewer
long_description    Tiv implements its own rendering algorithms to display \
                    pictures loaded with the Gdk library to the terminal using \
                    ascii art and ansi256 in color and grayscale.

depends_build       port:pkgconfig \
                    path:bin/vala:vala

depends_lib         path:include/turbojpeg.h:libjpeg-turbo \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2

checksums           rmd160  12bd366bda7e28f33ad52fc6984ec43746abefbf \
                    sha256  f3b1e5540e417e60f1de071bb5bb238a33bcc90b5eefaa6d08e8611ee5971878 \
                    size    342079

use_configure       no

variant universal {}

build.args      CC="${configure.cc} [get_canonical_archflags]"

destroot {
    xinstall -m 775 ${worksrcpath}/tiv ${destroot}${prefix}/bin
}
