PortSystem              1.0

name                    silc-client
version                 1.1.4
revision                1
categories              irc
license                 GPL-2
description             client for the silc-network.
long_description        silc-client is a client for the SILC (Secure Internet \
                        Live Conferencing) protocol. SILC provides secure \
                        conferencing services in the Internet over insecure channel.
homepage                http://silcnet.org/
platforms               darwin
maintainers             nomaintainer
master_sites            ${homepage}download/client/sources/
checksums               md5     03e9ef2eb4ce6267bf791c450b929fb7 \
                        sha1    043fd02ffc0bb420d411c4ca14ad307b48beaa06 \
                        rmd160  519ba59912da4bb514330ca8e87979844f957ad0
use_bzip2               yes
use_parallel_build      yes

patchfiles              patch-perl-common.h.diff \
                        patch-module.h.diff

depends_build           port:pkgconfig
depends_lib             port:gettext \
                        path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        path:bin/perl:perl5
configure.args          --without-silcd \
                        --with-docdir=${prefix}/share/${name} \
                        --with-helpdir=${prefix}/share/${name} \
                        --with-simdir=${prefix}/share/${name} \
                        --with-logsdir=${prefix}/var/log/${name} \
                        --disable-asm

post-destroot {
    file delete ${destroot}${prefix}/lib/perl5/5.8.8/darwin-2level/perllocal.pod
}

universal_variant       no

livecheck.type          regex
livecheck.url           ${homepage}
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
