Lines 1-6
Link Here
|
1 |
PORTNAME= nzbget |
1 |
PORTNAME= nzbget |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 24.3 |
3 |
DISTVERSION= 24.4 |
4 |
PORTREVISION= 1 |
4 |
PORTREVISION= 1 |
5 |
CATEGORIES= news |
5 |
CATEGORIES= news |
6 |
|
6 |
|
Lines 15-24
LIB_DEPENDS= libboost_json.so:devel/boost-libs \
Link Here
|
15 |
RUN_DEPENDS= 7-zip>0:archivers/7-zip \ |
15 |
RUN_DEPENDS= 7-zip>0:archivers/7-zip \ |
16 |
unrar>0:archivers/unrar |
16 |
unrar>0:archivers/unrar |
17 |
|
17 |
|
18 |
USES= cmake:testing python:build ssl |
18 |
# Since v24.4 nzbget maintainers switched from libpar2 to a fork of par2cmdline-turbo which is in its own repository. |
|
|
19 |
# See https://github.com/nzbgetcom/nzbget/blob/v24.4/cmake/par2-turbo.cmake for the version to pull |
20 |
PAR2CMDLINE_TURBO_VERSION=1.1.1-nzbget |
21 |
|
22 |
USES= cmake:testing ssl |
19 |
USE_GITHUB= yes |
23 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= nzbgetcom |
24 |
GH_ACCOUNT= nzbgetcom |
21 |
GH_PROJECT= nzbget |
25 |
GH_PROJECT= nzbget par2cmdline-turbo:par2 |
|
|
26 |
GH_TAGNAME= ${DISTVERSIONPREFIX}${PAR2CMDLINE_TURBO_VERSION}:par2 |
22 |
USE_RC_SUBR= nzbget |
27 |
USE_RC_SUBR= nzbget |
23 |
|
28 |
|
24 |
BINMODE= 0755 |
29 |
BINMODE= 0755 |
Lines 26-31
BINMODE= 0755
Link Here
|
26 |
SUB_FILES= pkg-message |
31 |
SUB_FILES= pkg-message |
27 |
|
32 |
|
28 |
OPTIONS_DEFINE= DOCS NCURSES PAR2 |
33 |
OPTIONS_DEFINE= DOCS NCURSES PAR2 |
|
|
34 |
OPTIONS_SUB= yes |
29 |
OPTIONS_DEFAULT= NCURSES PAR2 |
35 |
OPTIONS_DEFAULT= NCURSES PAR2 |
30 |
|
36 |
|
31 |
PAR2_DESC= PAR 2.0 compatible file verification and repair. Disable if you have trouble when compiling par2 module |
37 |
PAR2_DESC= PAR 2.0 compatible file verification and repair. Disable if you have trouble when compiling par2 module |
Lines 42-47
CMAKE_TESTING_ON= ENABLE_TESTS
Link Here
|
42 |
CMAKE_ARGS+= -DDISABLE_SIGCHLD_HANDLER=ON |
48 |
CMAKE_ARGS+= -DDISABLE_SIGCHLD_HANDLER=ON |
43 |
.endif |
49 |
.endif |
44 |
|
50 |
|
|
|
51 |
# We need to manually extract par2cmdline-turbo source repository as the cmake option FETCHCONTENT_FULLY_DISCONNECTED is ON by default for ports |
52 |
post-extract-PAR2-on: |
53 |
${MKDIR} ${BUILD_WRKSRC}/_deps |
54 |
${MV} ${WRKDIR}/par2cmdline-turbo-${PAR2CMDLINE_TURBO_VERSION} ${BUILD_WRKSRC}/_deps/par2-turbo-src |
55 |
|
56 |
# par2cmdline-turbo assets are staged outside of ${STAGEDIR}${PREFIX} so we need to move them |
57 |
# Remove empty leftover directories so that check-plist target does not show them orphaned. |
58 |
post-stage-PAR2-on: |
59 |
${MV} ${STAGEDIR}${BUILD_WRKSRC}/lib/*.a ${STAGEDIR}${PREFIX}/lib |
60 |
${FIND} ${STAGEDIR} -depth -type d -not -path "${STAGEDIR}${PREFIX}*" -empty -delete |
61 |
|
45 |
post-install: |
62 |
post-install: |
46 |
${INSTALL_DATA} ${WRKSRC}/nzbget.conf \ |
63 |
${INSTALL_DATA} ${WRKSRC}/nzbget.conf \ |
47 |
${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample |
64 |
${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample |