# -*- 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
# $Id: Portfile 119756 2014-05-05 18:07:51Z mk@macports.org $

PortSystem          1.0

name                icoutils
version             0.31.0
revision            4
categories          graphics
platforms           darwin
license             GPL-3
maintainers         jonahb.com:jonah mk
description         Programs for extracting and converting Windows icons
long_description    The icoutils are a set of command-line programs for \
                    extracting and converting images in Microsoft Windows(R) \
                    icon and cursor files. These files usually have the \
                    extension .ico or .cur, but they can also be embedded in \
                    executables and libraries (.dll-files).
homepage            http://www.nongnu.org/icoutils/

master_sites        http://gnu.mirrors.pair.com/savannah/savannah/icoutils/

checksums           rmd160  21668170f86a9981a4f9488cb0bb211fcebf8f53 \
                    sha256  a895d9d74a418d65d39a667e58ae38be79c9e726711384551d36531696f3af71

use_bzip2           yes

patchfiles          patch-common-llist.c.diff \
                    patch-lib-error.c.diff

depends_lib         port:libpng
depends_run         port:perl5.16 \
                    port:p5.16-libwww-perl

post-patch {
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|" ${worksrcpath}/extresso/extresso.in
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|" ${worksrcpath}/extresso/genresscript.in
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)\\.tar"

