View | Details | Raw Unified | Return to bug 224060 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-p2p/libtorrent-rasterbar/Makefile (-7 / +15 lines)
Lines 2-14 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libtorrent-rasterbar
4
PORTNAME=	libtorrent-rasterbar
5
PORTVERSION=	1.1.4
5
DISTVERSIONPREFIX=	${GH_PROJECT}-
6
PORTREVISION=	3
6
DISTVERSION=	1_1_5-41
7
DISTVERSIONSUFFIX=	-g43d7f980d
7
CATEGORIES?=	net-p2p ipv6
8
CATEGORIES?=	net-p2p ipv6
8
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/
9
10
PATCH_SITES=	https://github.com/arvidn/libtorrent/commit/
11
PATCHFILES=	7eb3cf6bc6db.patch:-p1
12
9
13
MAINTAINER=	rezny@FreeBSD.org
10
MAINTAINER=	rezny@FreeBSD.org
14
COMMENT?=	C++ library implementing a BitTorrent client
11
COMMENT?=	C++ library implementing a BitTorrent client
Lines 21-27 LIB_DEPENDS+= libboost_chrono.so:devel/boost-libs \ Link Here
21
18
22
BROKEN_powerpc64=	fails to build: client_test.cpp: undefined reference to std::__cxx11::basic_string
19
BROKEN_powerpc64=	fails to build: client_test.cpp: undefined reference to std::__cxx11::basic_string
23
20
24
USES+=		compiler:c++11-lib iconv:wchar_t libtool pathfix pkgconfig ssl
21
USE_GITHUB=	yes
22
GH_ACCOUNT=	arvidn
23
GH_PROJECT=	libtorrent
24
25
USES+=		autoreconf:build compiler:c++11-lib iconv:wchar_t libtool pathfix pkgconfig ssl
25
USE_CXXSTD=	c++11
26
USE_CXXSTD=	c++11
26
GNU_CONFIGURE=	yes
27
GNU_CONFIGURE=	yes
27
USE_LDCONFIG=	yes
28
USE_LDCONFIG=	yes
Lines 44-49 PORTDOCS= ${DOCFILES} docs/* Link Here
44
PORTEXAMPLES=	*.cpp
45
PORTEXAMPLES=	*.cpp
45
46
46
OPTIONS_DEFINE=	DEBUG DOCS EXAMPLES LOGGING TEST
47
OPTIONS_DEFINE=	DEBUG DOCS EXAMPLES LOGGING TEST
48
OPTIONS_DEFAULT=LOGGING
47
OPTIONS_SUB=	yes
49
OPTIONS_SUB=	yes
48
LOGGING_DESC=	Enable disk stat logging and logging to disk
50
LOGGING_DESC=	Enable disk stat logging and logging to disk
49
51
Lines 63-68 CONFIGURE_ARGS+= --disable-python-binding Link Here
63
post-patch:
65
post-patch:
64
	@${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \
66
	@${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \
65
		${WRKSRC}/Jamfile
67
		${WRKSRC}/Jamfile
68
	@${REINPLACE_CMD} -e '/LIBTORRENT_VERSION/s/".*"/"${PORTVERSION}"/' \
69
		-e '/LIBTORRENT_REVISION/s/".*"/"${GH_TAGNAME:C/.*-g//}"/' \
70
		${WRKSRC}/include/libtorrent/version.hpp
71
72
pre-configure:
73
	@(cd ${WRKSRC} && ./autotool.sh)
66
74
67
post-configure:
75
post-configure:
68
	${FIND} ${WRKSRC} -name Makefile -o -name link_flags | \
76
	${FIND} ${WRKSRC} -name Makefile -o -name link_flags | \
(-)b/net-p2p/libtorrent-rasterbar/distinfo (-5 / +3 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1500241161
1
TIMESTAMP = 1514045210
2
SHA256 (libtorrent-rasterbar-1.1.4.tar.gz) = ccf42367803a6df7edcf4756d1f7d0a9ce6158ec33b851b3b58fd470ac4eeba6
2
SHA256 (arvidn-libtorrent-libtorrent-1_1_5-41-g43d7f980d_GH0.tar.gz) = 0087e4c4ea0f8dc4940ddd48e51de3f813b8ab108eaf3ca1834cafccf0a12d04
3
SIZE (libtorrent-rasterbar-1.1.4.tar.gz) = 3917557
3
SIZE (arvidn-libtorrent-libtorrent-1_1_5-41-g43d7f980d_GH0.tar.gz) = 2891751
4
SHA256 (7eb3cf6bc6db.patch) = d343654786f02112b0787d999f3c569bcb9bb31dfc2be52aa26007b5f5e3ca0b
5
SIZE (7eb3cf6bc6db.patch) = 1180
(-)a/net-p2p/libtorrent-rasterbar/files/patch-include_libtorrent_config.hpp (-15 lines)
Removed Link Here
1
--- include/libtorrent/config.hpp.orig	2017-07-02 16:18:10 UTC
2
+++ include/libtorrent/config.hpp
3
@@ -195,12 +195,6 @@ POSSIBILITY OF SUCH DAMAGE.
4
 #define TORRENT_USE_EXECINFO 1
5
 #endif
6
 
7
-#else // __APPLE__
8
-// FreeBSD has a reasonable iconv signature
9
-// unless we're on glibc
10
-#ifndef __GLIBC__
11
-# define TORRENT_ICONV_ARG(x) (x)
12
-#endif
13
 #endif // __APPLE__
14
 
15
 #define TORRENT_HAVE_MMAP 1

Return to bug 224060