freebsd-ports/net-p2p/libtorrent-rasterbar2/Makefile
Yuri Victorovich a06d311b30 net-p2p/libtorrent-rasterbar2: Update 2.0.8 → 2.0.9
Reported by:	portscout
2023-05-25 00:09:55 -07:00

67 lines
1.8 KiB
Makefile

PORTNAME= libtorrent-rasterbar
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.9
CATEGORIES= net-p2p
#MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= 2
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ library implementing a BitTorrent client
WWW= https://libtorrent.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libboost_chrono.so:devel/boost-libs \
libboost_random.so:devel/boost-libs \
libboost_system.so:devel/boost-libs
USES= cmake:testing compiler:c++11-lib iconv:wchar_t libtool \
localbase:ldflags pathfix pkgconfig python:test shebangfix ssl
USE_LDCONFIG= yes
SHEBANG_GLOB= *.py
USE_GITHUB= yes
GH_ACCOUNT= arvidn
GH_PROJECT= libtorrent
GH_TUPLE= arvidn:try_signal:751a7e5:try_signal/deps/try_signal \
arvidn:libsimulator:64fb5b4:libsimulator/simulation/libsimulator \
paullouisageneau:boost-asio-gnutls:a57d4d3:asio/deps/asio-gnutls
USE_CXXSTD= c++17 # prevent boost-related SEGV, see bug#264278
LDFLAGS+= ${ICONV_LIB}
DOCFILES= AUTHORS ChangeLog
PORTDOCS= ${DOCFILES} docs/*
PORTEXAMPLES= *.cpp
CMAKE_TESTING_ON= build_tests
OPTIONS_DEFINE= DOCS EXAMPLES LOGGING
OPTIONS_DEFAULT= LOGGING
OPTIONS_SUB= yes
LOGGING_DESC= Enable logging to disk
EXAMPLES_CMAKE_BOOL= build_examples
LOGGING_CMAKE_BOOL= logging
CONFLICTS_INSTALL= libtorrent-rasterbar
post-patch:
@${REINPLACE_CMD} -e 's|"python3"|"${PYTHON_CMD:T}"|' \
${WRKSRC}/test/setup_transfer.cpp
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}
${RM} ${STAGEDIR}${DOCSDIR}/docs/._*
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>