37 lines
966 B
Makefile
37 lines
966 B
Makefile
PORTNAME= libtorrent
|
|
DISTVERSION= 0.16.24
|
|
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_ARGS= CPPUNIT_LIBS="-L${LOCALBASE}/lib -lcppunit"
|
|
TEST_TARGET= check
|
|
|
|
.include <bsd.port.mk>
|