blob: 7003c66af60b7574becb1272f082b11172d6ee91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
PORTNAME= libtorrent
DISTVERSION= 0.16.6
CATEGORIES= net-p2p
MASTER_SITES= https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/
MAINTAINER= eduardo@FreeBSD.org
COMMENT= BitTorrent Library written in C++
WWW= https://github.com/rakshasa/libtorrent
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl
TEST_DEPENDS= cppunit>0:devel/cppunit
USES= compiler:c++17-lang cpe libtool localbase:ldflags pathfix \
pkgconfig ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug \
--with-kqueue \
--without-epoll
CONFIGURE_ENV= OPENSSL_CFLAGS="-I ${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
# This makes sure that /usr/local/lib appears before /usr/lib when
# linking libtorrent to avoid linking with base's libcrypto.
MAKE_ARGS= LDFLAGS="${LDFLAGS}"
INSTALL_TARGET= install-strip
TEST_TARGET= check
TESTING_UNSAFE= https://github.com/rakshasa/libtorrent/issues/292
.include <bsd.port.mk>
|