Changes: - Added a simple scheduler framework. - Don't send numwant in STOPPED messages as some trackers are stupid about it. - Reintroduced clearing of epoll event list when a socket is closed as it might cause race conditions. - Added cppUnit test framework. Tests will be added on rather unregular basis. - Logging for SCGI calls. - Fixed handling of errors when writing out session torrents, it should no longer hit an infinite loop. - Fixed a bug that would cause reading of a piece to hang rtorrent if the incoming data contains only data up to a file boundary, but not the next file's data. - Fixes a file handle leak in the execute_capture functions. - Fixed crash on empty bitfield in 'd.bitfield'. - Fixed the Object::flag_unordered code to handle initial zero-length keys. Ticket #1950. - Made torrent::Rate::rate_type uint64_t and added sanity checks due to reports of bad download/upload values being reported to some trackers. OK tron@ wiz@
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2010/01/01 19:36:31 snj Exp $
|
|
|
|
DISTNAME= libtorrent-0.12.6
|
|
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"
|