1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/news/nzbget/Makefile
Guido Falsi ca001e95b8 - Update to 15.0
- Add 7Z option

PR:		200457
Submitted by:	toxic at doobie.com (maintainer)
2015-05-26 22:32:22 +00:00

64 lines
1.6 KiB
Makefile

# Created by: Lewis Thompson <purple@lewiz.net>
# $FreeBSD$
PORTNAME= nzbget
PORTVERSION= 15.0
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
MAINTAINER= toxic@doobie.com
COMMENT= Binary newsreader supporting NZB files
LICENSE= GPLv2
LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2
USES= ncurses pkgconfig shebangfix
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
python_OLD_CMD= /usr/bin/env python
OPTIONS_DEFINE= 7Z PYTHON RAR DOCS
OPTIONS_SINGLE= TLSLIB
OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL
OPTIONS_DEFAULT= GNUTLS 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:${PORTSDIR}/archivers/p7zip
PYTHON_USES= python:run
RAR_RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
OPENSSL_CONFIGURE_ON= --with-tlslib=OpenSSL \
--with-openssl-includes=${OPENSSLINC} \
--with-openssl-libraries=${OPENSSLLIB}
OPENSSL_USE= OPENSSL=yes
GNUTLS_CONFIGURE_ON= --with-tlslib=GnuTLS
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls \
libgcrypt.so:${PORTSDIR}/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>