# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 102751 2013-02-07 22:55:36Z g5pw@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        radare tiv 0.1
maintainers         g5pw openmaintainer

categories          graphics games
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.

platforms           darwin

depends_build       port:pkgconfig

depends_lib         port:jpeg \
                    port:gdk-pixbuf2 \
                    port:vala

checksums           rmd160  12bd366bda7e28f33ad52fc6984ec43746abefbf \
                    sha256  f3b1e5540e417e60f1de071bb5bb238a33bcc90b5eefaa6d08e8611ee5971878

use_configure       no

variant universal {}

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

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