# -*- 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
# Note - when libtorrent is next updated, consider moving to the github release
# which is under the rtorrent umbrella at
# https://github.com/rakshasa/rtorrent/releases/download/v0.9.7/libtorrent-0.13.7.tar.gz
github.setup rakshasa libtorrent 0.13.7 v
conflicts libtorrent-devel
license {GPL-2+ OpenSSLException}
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.
checksums rmd160 e0a6f01eac616cec788cb81995318e7b9fc7baac \
sha256 7de1c2e2ebb23ff0f13891f1f865a2ac6899141d8e662b269156c3cb11518a4d \
autoreconf.cmd ./autogen.sh
# malformed object (unknown load command 2)
if {${os.platform} eq "darwin" && ${os.major} <= 10} {
depends_build-append port:cctools
path:lib/libssl.dylib:openssl \
configure.args --disable-debug \
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
if {${os.platform} eq "darwin" && ${os.major} <= 9} {
# currently broken, ticket #27289
return -code error "$name currently cannot be compiled on Mac OS X 10.5 or earlier."
# clear deps so users don't waste time installing them for a broken port