5b3f924561
Changes: The feature-bind branch is still not ready, so here's more bug-fixes and pull requests merged. Please consider donating (https://rakshasa.github.io/rtorrent/donate.html) to help fund the development of this client. * Close log files when reusing a name. (pyroscope) * Increased max timeout for tracker requests. * Set max piece size 512mb. * Switch to C++11 MRT RNG for random bytes. (lps-rocks) * Added support for openssl 1.1. * Fix honoring throttle.min_peers* settings in rtorrent. (chros) * Improved failed tracker bencode parsing. (chros) * Added example rtorrent.rc. (g0tmi1k) * Added a temporary name filter. (Toff) * Added 'log.close' command. * Added 'd.tracker_announce.force' command. * Added 'event.system.startup_done/shutdown' commands/events. (chros) * Added 'd.custom.if_z' command. (pyroscope) * Added 'd.multicall.filtered' command. (pyroscope) * Added 'event.view.hide/show' commands. (pyroscope)
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.61 2019/07/30 09:19:59 nia Exp $
|
|
|
|
DISTNAME= libtorrent-0.13.8
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://rtorrent.net/downloads/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/rakshasa/libtorrent
|
|
COMMENT= BitTorrent library written in C++ for *nix
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LANGUAGES= c c++11
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
LDFLAGS+= -lz
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${MACHINE_ARCH} == "alpha" || \
|
|
${MACHINE_ARCH} == "i386" || \
|
|
${MACHINE_ARCH} == "powerpc" || \
|
|
${MACHINE_ARCH} == "x86_64"
|
|
GCC_REQD+= 4.1.3
|
|
.else
|
|
GCC_REQD+= 4.2.1
|
|
.endif
|
|
|
|
# configure check is fooled by trap & emulate of unaligned access on alpha
|
|
.if (${MACHINE_ARCH} == "alpha")
|
|
CONFIGURE_ARGS+= --enable-aligned
|
|
.endif
|
|
|
|
.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-[45].*)
|
|
CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
|
|
-fno-inline -fforce-addr
|
|
.endif
|
|
|
|
.if empty(MACHINE_ARCH:M*64*) && ${MACHINE_ARCH} != "alpha"
|
|
CONFIGURE_ARGS+= --disable-instrumentation
|
|
.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 \
|
|
-Wl,-R${BUILDLINK_PREFIX.openssl}/lib
|
|
|
|
CONFIGURE_ENV+= OPENSSL_CFLAGS=${OPENSSL_CFLAGS:Q}
|
|
CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LIBS:Q}
|
|
.endif
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../devel/libsigc++/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|