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

Collapse All | Expand All

(-)Makefile (-2 / +7 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	libtorrent
3
PORTNAME=	libtorrent
4
PORTVERSION=	0.13.6
4
PORTVERSION=	0.13.6
5
PORTREVISION=	1
5
CATEGORIES=	net-p2p
6
CATEGORIES=	net-p2p
6
MASTER_SITES=	http://rtorrent.net/downloads/
7
MASTER_SITES=	http://rtorrent.net/downloads/
7
8
Lines 16-22 Link Here
16
USES=		compiler:c++11-lang libtool pathfix pkgconfig ssl
17
USES=		compiler:c++11-lang libtool pathfix pkgconfig ssl
17
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
18
CONFIGURE_ARGS=	--disable-debug
19
CONFIGURE_ARGS=	--disable-debug
19
CONFIGURE_ENV=	OPENSSL_LIBS="-L${OPENSSLBASE}/lib -ssl -crypto" OPENSSL_CFLAGS="-I${OPENSSLBASE}/include"
20
CONFIGURE_ENV=	OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" OPENSSL_CFLAGS="-I\
21
								${OPENSSLINC}"
20
INSTALL_TARGET=	install-strip
22
INSTALL_TARGET=	install-strip
21
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
22
24
Lines 24-29 Link Here
24
OPTIONS_DEFAULT=KQUEUE
26
OPTIONS_DEFAULT=KQUEUE
25
KQUEUE_DESC=	Use kqueue(2) support
27
KQUEUE_DESC=	Use kqueue(2) support
26
28
29
# This makes sure that /usr/local/lib appears before /usr/lib when
30
# linking libtorrent to avoid linking with base's libcrypto.
31
MAKE_ARGS=	LDFLAGS="${LDFLAGS}"
32
27
IPV6_CONFIGURE_ENABLE=	ipv6
33
IPV6_CONFIGURE_ENABLE=	ipv6
28
KQUEUE_CONFIGURE_WITH=	kqueue
34
KQUEUE_CONFIGURE_WITH=	kqueue
29
35
Lines 43-49 Link Here
43
.endif
49
.endif
44
50
45
post-patch:
51
post-patch:
46
	@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
47
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
52
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
48
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
53
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
49
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \
54
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \

Return to bug 211223