# -*- 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 101666 2013-01-16 16:36:59Z g5pw@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        atextor icat 0.4 v

maintainers         g5pw

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

platforms           darwin

depends_lib         port:imlib2

checksums           rmd160  f80193296546950031a22b182626be3a7399ebc6 \
                    sha256  887678f5232dda6ede734f0e4d2872b760aa06c7c619b1261e6055ebbee3c0b0

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
}
