1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net-p2p/libtorrent-rasterbar-15/Makefile

87 lines
2.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: libtorrent-rasterbar-15
# Date created: 14 February 2010
# Whom: dougb@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.15.9
PORTREVISION?= 1
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
CATEGORIES?= net-p2p ipv6
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= libtorrent
MAINTAINER= dougb@FreeBSD.org
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
COMMENT?= A C++ library implementing a BitTorrent client
MAKE_JOBS_SAFE= yes
CONFLICTS+= libtorrent-rasterbar-0.1[46789].*
NO_LATEST_LINK= yes
2012-07-30 17:23:34 +00:00
BUILD_DEPENDS= pkgconf>0:${PORTSDIR}/devel/pkgconf
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
LIB_DEPENDS+= boost_date_time.4:${PORTSDIR}/devel/boost-libs \
GeoIP.5:${PORTSDIR}/net/GeoIP
USE_GNOME= gnomehack
USE_OPENSSL= yes
GNU_CONFIGURE= yes
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
CONFIGURE_ARGS+= --disable-debug \
--disable-static \
--enable-dht \
--enable-encryption \
--enable-pool-allocators \
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
--enable-deprecated-functions \
--with-boost=${LOCALBASE} \
--with-boost-system=boost_system \
--with-boost-filesystem=boost_filesystem \
--with-boost-thread=boost_thread \
--enable-geoip \
--with-libgeoip \
--with-openssl=${OPENSSLBASE} \
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
--with-zlib=system
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" && defined(USE_PYTHON)
CONFIGURE_ARGS+= --enable-python-binding \
2010-07-01 08:46:24 +00:00
--with-boost-python=boost_python
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
.else
CONFIGURE_ARGS+= --disable-python-binding
.endif
pre-patch:
@${MV} ${WRKSRC}/include/libtorrent/alloca.hpp \
${WRKSRC}/include/libtorrent/alloca.hpp.Dist
@${SED} -e 's#alloca.h#stdlib.h#g' \
${WRKSRC}/include/libtorrent/alloca.hpp.Dist > \
${WRKSRC}/include/libtorrent/alloca.hpp
@${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Dist
@${SED} -e 's#COMPILETIME_OPTIONS+="#COMPILETIME_OPTIONS="$$COMPILETIME_OPTIONS #g' \
${WRKSRC}/configure.Dist > ${WRKSRC}/configure
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
post-patch: slave-post-patch
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
.endif
.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes"
post-install: slave-post-install
.else
post-install:
Update to version 0.15.1, with numerous bug fixes: * fixed rare crash when purging the peer list * fixed race condition around m_abort in session_impl * fixed bug in web_peer_connection which could cause a hang when downloading from web servers * fixed bug in metadata extensions combined with encryption * refactored socket reading code to not use async. operations unnecessarily * some timer optimizations * removed the reuse-address flag on the listen socket * fixed bug where local peer discovery and DHT wouldn't be announced to without trackers * fixed bug in bdecoder when decoding invalid messages * added build warning when building with UNICODE but the standard library doesn't provide std::wstring * fixed add_node python binding * fixed issue where trackers wouldn't tried immediately when the previous one failed * fixed synchronization issue between download queue and piece picker * fixed bug in udp tracker scrape response parsing * fixed bug in the disk thread that could get triggered under heavy load * fixed bug in add_piece() that would trigger asserts * fixed vs 2010 build * recognizes more clients in identify_client() * fixed bug where trackers wouldn't be retried if they failed * slight performance fix in disk elevator algorithm * fixed potential issue where a piece could be checked twice * fixed build issue on windows related to GetCompressedSize() * fixed deadlock when starting torrents with certain invalid tracker URLs * fixed iterator bug in disk I/O thread * fixed FIEMAP support on linux * fixed strict aliasing warning on gcc * fixed inconsistency when creating torrents with symlinks * properly detect windows version to initialize half-open connection limit * fixed bug in url encoder where $ would not be encoded For the port: * Prepare for -python slave port for the python binding (In part from)[1] * Make LOCALBASE safe [2] * Python bindings require --enable-deprecated-functions * Stop building the static library * Patch is now incorporated into the distribution PR: ports/144337 [1] Submitted by: lioux [1] Submitted by: swell.k@gmail.com [2] Feature safe: yes
2010-07-01 07:16:03 +00:00
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.css ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.png ${DOCSDIR}
.endif
.include <bsd.port.post.mk>