# $Id: Portfile 64041 2010-02-20 17:49:09Z rmsfisher@macports.org $

PortSystem      1.0

name            libtorrent
version         0.12.6
categories      net
platforms       darwin
maintainers     gmail.com:gardnermj
description     BitTorrent library

long_description \
    libTorrent is a BitTorrent library written in C++ for \
    *nix. It is designed to avoid redundant copying and \
    storing of data that other clients and libraries suffer from.

homepage        http://libtorrent.rakshasa.no/
master_sites    ${homepage}downloads/

checksums       md5 037499ed708aaf72988cee60e5a8d96b \
                sha1 bf7082f98bd6281493cba94a456697fb88c2c21b \
                rmd160 62f0c9737d4ca9621c42d673ea997f9d36875530

depends_build   port:zlib \
                port:pkgconfig

depends_lib     port:openssl \
                port:libsigcxx2

configure.args  --disable-debug \
                --enable-ipv6 \
                --with-kqueue

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
