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

PortSystem          1.0
PortGroup           github 1.0

github.setup        atextor icat 0.5 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

maintainers         nomaintainer

categories          textproc
license             BSD
description         icat (Image cat) outputs images in 256-color capable terminals.
long_description    {*}${description}

depends_lib         port:imlib2

checksums           rmd160  a2508ecef3f67173c74a369c58837f57234e2946 \
                    sha256  9692f40dfc5e18083eb63ee47b858481e72de0d1c177847a4893135241535541 \
                    size 46252

use_configure       no

variant universal {}

# Ensure we are UsingTheRightCompiler
build.args-append   GCC="${configure.cc} [get_canonical_archflags]" \
                    LDFLAGS+="-L${prefix}/lib -lImlib2"


destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
