fdfa741b07
- Add support for any number of custom download values identified by string keys. d.set_custom=key,value d.get_custom=key (returns "" if not set) d.get_custom_throw=key (returns error if not set) - With this patch, rtorrent will detect and complain about .torrent files with broken bencode representation (e.g. where the order of dictionary keys is not lexicographic). - Choose a different poll type using the RTORRENT_POLL env. variable (if it's implemented), probably only useful as RTORRENT_POLL=select. - Add the commands execute_capture and execute_capture_nothrow that work like their other counterparts but return the OUTPUT (stdout) of the given command. - Fixes the code that detects which peer was sending bad data. Peers are then automatically banned after sending three bad chunks. - Stops rtorrent from always creating and resizing ALL files, even those set to "off". Files will still be created, but with a size of zero, until a part of them is getting downloaded. This helps with filesystems that don't support sparse files (such as FAT, HFS+, and others). - Fix inefficient piece distribution due to linear chunk request strategy by randomizing position every few (on average 32) chunks, see ticket #190. - Enable custom throttles, both per-download or per-IP. See http://libtorrent.rakshasa.no/ticket/20 for info and instructions. - Fix crashes/errors due to rtorrent attempting to pass non-utf-8 strings to xmlrpc. - Added support for using posix_fallocate on newly resized files. - Include locally available chunks in the "chunks seen" statistics for completed/distributed copies. Patch by Josef Drexler. - Added 'd.get_bitfield' command for retrieving the bitfield in hex format. Patch by Thomas Rosner. - Fixed include headers for gcc-4.4.0. Patch by 'kloeri'.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.35 2009/10/29 11:42:30 tron Exp $
|
|
|
|
DISTNAME= libtorrent-0.12.5
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${HOMEPAGE:=downloads/}
|
|
|
|
OWNER= tron@NetBSD.org
|
|
HOMEPAGE= http://libtorrent.rakshasa.no/
|
|
COMMENT= BitTorrent library written in C++ for *nix
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
GCC_REQD+= 3.3
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
|
|
CONFIGURE_ARGS+= --with-kqueue
|
|
.endif
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
# See http://libtorrent.rakshasa.no/ticket/96
|
|
.if !empty(CC_VERSION:Mgcc-4.*)
|
|
CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
|
|
-fno-inline -fforce-addr
|
|
.endif
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.if !exists(${BUILDLINK_PREFIX.openssl}/lib/pkgconfig/openssl.pc)
|
|
OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include
|
|
OPENSSL_LIBS= -L${BUILDLINK_PREFIX.openssl}/lib \
|
|
-W,-lR${BUILDLINK_PREFIX.openssl}/lib
|
|
|
|
CONFIGURE_ENV+= OPENSSL_CFLAGS=${OPENSSL_CFLAGS:Q}
|
|
CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LIBS:Q}
|
|
.endif
|
|
|
|
.include "../../devel/libsigc++/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|