# $Id: Portfile 52621 2009-06-20 00:37:53Z toby@macports.org $

PortSystem      1.0

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

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 development version of libTorrent.

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

checksums       md5 fe8155d364b220713074423100d4bf29 \
                sha1 05a60581c6b1a94e2a07d1a07e47b8c60d2e237c \
                rmd160 645ae77a23c77c1d2134431b182cb206ab254259

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.check regex
livecheck.url   ${homepage}
livecheck.regex ${real_name}-(\\d+(?:\\.\\d+)*)
