blob: 717167ef100393e7a1dcb9d292e1aa0a829f9461 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Created by: Lewis Thompson <purple@lewiz.net>
# $FreeBSD$
PORTNAME= nzbget
PORTVERSION= 17.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= news
MAINTAINER= toxic@doobie.com
COMMENT= Binary newsreader supporting NZB files
LICENSE= GPLv2
LIB_DEPENDS= libxml2.so:textproc/libxml2
USES= ncurses pkgconfig shebangfix compiler:c++14-lang
USE_RC_SUBR= nzbget
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libcurses-includes=${NCURSESINC} \
--with-libcurses-libraries=${NCURSESLIB}
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread
BINMODE= 0755
SHEBANG_FILES= scripts/*.py
SUB_FILES= pkg-message
USE_GITHUB= yes
OPTIONS_DEFINE= 7Z PYTHON RAR DOCS
OPTIONS_SINGLE= TLSLIB
OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL
OPTIONS_DEFAULT= OPENSSL PAR PYTHON RAR 7Z
7Z_DESC= Support extraction of 7z archives
PYTHON_DESC= Support for python post-processing scripts
RAR_DESC= Support extraction of rar archives
7Z_RUN_DEPENDS= 7z:archivers/p7zip
PYTHON_USES= python:run
RAR_RUN_DEPENDS= unrar:archivers/unrar
OPENSSL_CONFIGURE_ON= --with-tlslib=OpenSSL \
--with-openssl-includes=${OPENSSLINC} \
--with-openssl-libraries=${OPENSSLLIB}
OPENSSL_USES= ssl
GNUTLS_CONFIGURE_ON= --with-tlslib=GnuTLS
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
libgcrypt.so:security/libgcrypt
.include <bsd.port.options.mk>
.if (${ARCH} == "i386")
CONFIGURE_ARGS+= --disable-sigchld-handler
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/nzbget.conf \
${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample
.include <bsd.port.mk>
|