# $Id: Portfile 61391 2009-12-10 09:36:08Z mnick@macports.org $

PortSystem      1.0

name            libtorrent-devel
set real_name   libtorrent
version         0.12.6
categories      net
platforms       darwin
maintainers     gmail.com:gardnermj
description     BitTorrent library (unstable release)

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. \
    This is the "unstable" release of libTorrent.

homepage        http://libtorrent.rakshasa.no/
master_sites    ${homepage}downloads/
distname        ${real_name}-${version}

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/${real_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 ${real_name}-(\\d+(?:\\.\\d+)*)
