Lines 1-23
Link Here
|
1 |
PORTNAME= libtorrent-rasterbar |
1 |
PORTNAME= libtorrent-rasterbar |
2 |
DISTVERSION= 1.2.16 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781 |
2 |
DISTVERSION= 1.2.18 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781 |
3 |
PORTREVISION= 2 |
3 |
PORTREVISION= 0 |
4 |
PORTEPOCH= 2 |
4 |
PORTEPOCH= 2 |
5 |
CATEGORIES= net-p2p |
5 |
CATEGORIES= net-p2p |
6 |
MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/ |
6 |
MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/ |
7 |
|
7 |
|
8 |
MAINTAINER= yuri@FreeBSD.org |
8 |
MAINTAINER= yuri@FreeBSD.org |
9 |
COMMENT= C++ library implementing a BitTorrent client |
9 |
COMMENT= C++ library implementing a BitTorrent client |
10 |
WWW= https://libtorrent.org/ |
10 |
WWW= https://libtorrent.org/ |
11 |
|
11 |
|
12 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE= BSD3CLAUSE |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
14 |
|
15 |
LIB_DEPENDS= libboost_chrono.so:devel/boost-libs \ |
15 |
LIB_DEPENDS= libboost_chrono.so:devel/boost-libs \ |
16 |
libboost_random.so:devel/boost-libs \ |
16 |
libboost_random.so:devel/boost-libs \ |
17 |
libboost_system.so:devel/boost-libs |
17 |
libboost_system.so:devel/boost-libs |
18 |
|
18 |
|
19 |
USES= cmake compiler:c++11-lib iconv:wchar_t libtool localbase:ldflags pathfix pkgconfig python:test shebangfix ssl |
19 |
USES= cmake compiler:c++11-lib iconv:wchar_t libtool localbase:ldflags pathfix pkgconfig python:test shebangfix ssl |
20 |
SHEBANG_FILES= test/socks.py test/web_server.py |
20 |
SHEBANG_FILES= test/socks.py test/web_server.py |
21 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
22 |
|
22 |
|
23 |
USE_CXXSTD= c++17 # prevent boost-related SEGV, see bug#264278 |
23 |
USE_CXXSTD= c++17 # prevent boost-related SEGV, see bug#264278 |
Lines 31-70
DOCFILES= AUTHORS ChangeLog
Link Here
|
31 |
PORTDOCS= ${DOCFILES} docs/* |
31 |
PORTDOCS= ${DOCFILES} docs/* |
32 |
PORTEXAMPLES= *.cpp |
32 |
PORTEXAMPLES= *.cpp |
33 |
|
33 |
|
34 |
OPTIONS_DEFINE= DOCS EXAMPLES LOGGING |
34 |
OPTIONS_DEFINE= DOCS EXAMPLES LOGGING |
35 |
OPTIONS_DEFAULT= LOGGING |
35 |
OPTIONS_DEFAULT= LOGGING |
36 |
OPTIONS_SUB= yes |
36 |
OPTIONS_SUB= yes |
37 |
LOGGING_DESC= Enable logging to disk |
37 |
LOGGING_DESC= Enable logging to disk |
38 |
|
38 |
|
39 |
EXAMPLES_CMAKE_BOOL= build_examples |
39 |
EXAMPLES_CMAKE_BOOL= build_examples |
40 |
LOGGING_CMAKE_BOOL= logging |
40 |
LOGGING_CMAKE_BOOL= logging |
41 |
|
41 |
|
42 |
PORTSCOUT= limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does |
42 |
PORTSCOUT= limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does |
43 |
|
43 |
|
44 |
CONFLICTS_INSTALL= libtorrent-rasterbar2 |
44 |
CONFLICTS_INSTALL= libtorrent-rasterbar2 |
45 |
|
45 |
|
46 |
post-patch: |
46 |
post-patch: |
47 |
@${REINPLACE_CMD} -e 's|return "python3";|return "${PYTHON_CMD}";|' \ |
47 |
@${REINPLACE_CMD} -e 's|return "python3";|return "${PYTHON_CMD}";|' \ |
48 |
${WRKSRC}/test/setup_transfer.cpp |
48 |
${WRKSRC}/test/setup_transfer.cpp |
49 |
|
49 |
|
50 |
post-install: |
50 |
post-install: |
|
|
51 |
# py-bindings seems to link this exact name after v1.2.14 |
52 |
# TODO: figure out how to make symlinks in Jamfile |
53 |
/bin/ln -s libtorrent-rasterbar.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.10.0.0 |
51 |
@${RM} ${STAGEDIR}${PREFIX}/include/libtorrent/Makefile* |
54 |
@${RM} ${STAGEDIR}${PREFIX}/include/libtorrent/Makefile* |
52 |
# Workaround for -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES being set in |
55 |
# Workaround for -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES being set in |
53 |
# Mk/Uses/cmake.mk |
56 |
# Mk/Uses/cmake.mk |
54 |
# References: https://mariadb.atlassian.net/browse/MDEV-9388 |
57 |
# References: https://mariadb.atlassian.net/browse/MDEV-9388 |
55 |
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206169 |
58 |
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206169 |
56 |
@${REINPLACE_CMD} 's/-l-pthread/-lpthread/' \ |
59 |
@${REINPLACE_CMD} 's/-l-pthread/-lpthread/' \ |
57 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig/libtorrent-rasterbar.pc |
60 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig/libtorrent-rasterbar.pc |
58 |
|
61 |
|
59 |
post-install-DOCS-on: |
62 |
post-install-DOCS-on: |
60 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
63 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
61 |
${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
64 |
${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
62 |
cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR} |
65 |
cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR} |
63 |
${RM} ${STAGEDIR}${DOCSDIR}/docs/._* |
66 |
${RM} ${STAGEDIR}${DOCSDIR}/docs/._* |
64 |
|
67 |
|
65 |
post-install-EXAMPLES-on: |
68 |
post-install-EXAMPLES-on: |
66 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
69 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
67 |
${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \ |
70 |
${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \ |
68 |
${STAGEDIR}${EXAMPLESDIR} |
71 |
${STAGEDIR}${EXAMPLESDIR} |
69 |
|
72 |
|
70 |
do-test: |
73 |
do-test: |