aboutsummaryrefslogtreecommitdiff
path: root/news/nzbget/Makefile
blob: 20807b0566dfc9e0c552e6851f8d12d6ca270dd7 (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
PORTNAME=	nzbget
PORTVERSION=	21.1
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	news

MAINTAINER=	alexis.praga@free.fr
COMMENT=	Binary newsreader supporting NZB files
WWW=		http://nzbget.net/

LICENSE=	GPLv2

LIB_DEPENDS=	libxml2.so:textproc/libxml2

USES=		autoreconf compiler:c++14-lang cpe gmake localbase ncurses \
		pkgconfig python:build shebangfix ssl
USE_GITHUB=	yes
USE_RC_SUBR=	nzbget

SHEBANG_FILES=	scripts/*.py

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libcurses-includes=${NCURSESINC} \
		--with-libcurses-libraries=${NCURSESLIB} \
		--with-tlslib=OpenSSL \
		--with-openssl-includes=${OPENSSLINC} \
		--with-openssl-libraries=${OPENSSLLIB}

BINMODE=	0755

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DOCS OPTIMIZED_FLAGS
OPTIMIZED_FLAGS_DESC=	Enable optimized CPU instructions (SSE2/SSE3/NEON/etc)
OPTIMIZED_FLAGS_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-disable-optimized-flags.patch

.include <bsd.port.options.mk>

.if (${ARCH} == "i386")
CONFIGURE_ARGS+=	--disable-sigchld-handler
.endif

.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
CXXFLAGS+=	-DOPENSSL_API_COMPAT=0x10100000L
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/nzbget.conf \
		${STAGEDIR}${PREFIX}/etc/nzbget.conf.sample

.include <bsd.port.mk>