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

name                hilite
version             1.5
categories          sysutils
platforms           darwin freebsd linux netbsd openbsd solaris sunos
license             GPL-2+
maintainers         nomaintainer
description         highlight stderr text in red
long_description    hilite is a tiny utility which executes the command you \
                    specify, highlighting anything printed to stderr. It is \
                    designed mainly for use with builds, to make warnings and \
                    errors stick out like a sore cliche.
homepage            https://sourceforge.net/projects/hilite/
master_sites        sourceforge:project/hilite/hilite/${version}

distfiles           hilite.c
checksums           rmd160  e969094546997199a98268af4333ec874c6dcf6e \
                    sha256  e15bdff2605e8d23832d6828a62194ca26dedab691c9d75df2877468c2f6aaeb \
                    size    2872

use_configure       no

extract {
    file mkdir ${worksrcpath}
    file copy ${distpath}/${distfiles} ${worksrcpath}/hilite.c
}
build {
    system -W ${worksrcpath} "${configure.cc} ${configure.cflags} [get_canonical_archflags cc] -I ${prefix}/include -o hilite hilite.c"
}
destroot {
    set bin_dir ${destroot}${prefix}/bin
    xinstall -m 0755 -d ${bin_dir}
    xinstall -m 0755 ${worksrcpath}/hilite ${bin_dir}
}
