2004-04-17 21:26:30 +00:00
|
|
|
# New ports collection makefile for: nzbget
|
|
|
|
# Date created: 13 April 2004
|
|
|
|
# Whom: Lewis Thompson <purple@lewiz.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nzbget
|
2012-05-16 07:39:27 +00:00
|
|
|
PORTVERSION= 0.8.0
|
2004-04-17 21:26:30 +00:00
|
|
|
CATEGORIES= news
|
2009-08-22 00:32:25 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
|
2004-04-17 21:26:30 +00:00
|
|
|
|
2008-09-03 07:09:46 +00:00
|
|
|
MAINTAINER= toxic@doobie.com
|
2004-04-17 21:26:30 +00:00
|
|
|
COMMENT= A binary newsreader supporting NZB files
|
|
|
|
|
2011-07-21 00:21:51 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2004-04-17 21:26:30 +00:00
|
|
|
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
|
2010-05-02 00:26:08 +00:00
|
|
|
sigc-2:${PORTSDIR}/devel/libsigc++20
|
2004-04-17 21:26:30 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2004-04-17 21:26:30 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2008-09-04 01:01:56 +00:00
|
|
|
OPTIONS= PARCHECK "Enable autopar/parcheck (Requires libpar2)" On
|
2010-05-02 00:26:08 +00:00
|
|
|
OPTIONS+= TLSCHECK "Use GNUTLS for SSL" On
|
|
|
|
OPTIONS+= OSSLCHECK "Use OpenSSL for SSL" Off
|
2008-09-04 01:01:56 +00:00
|
|
|
|
2008-10-16 13:06:46 +00:00
|
|
|
PLIST_FILES= bin/nzbget
|
2008-09-04 01:01:56 +00:00
|
|
|
PORTDOCS= README
|
|
|
|
PORTEXAMPLES= nzbget.conf.example
|
2004-04-17 21:26:30 +00:00
|
|
|
|
2008-04-03 02:12:52 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-09-04 01:01:56 +00:00
|
|
|
.if defined (WITHOUT_PARCHECK)
|
|
|
|
CONFIGURE_ARGS+= --disable-parcheck
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-parcheck
|
|
|
|
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2
|
2008-04-03 02:12:52 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-02 00:26:08 +00:00
|
|
|
.if defined (WITH_OSSLCHECK)
|
|
|
|
CONFIGURE_ARGS+= --with-tlslib=OpenSSL
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined (WITH_TLSCHECK)
|
|
|
|
CONFIGURE_ARGS+= --with-tlslib=GnuTLS
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
2011-07-21 00:21:51 +00:00
|
|
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
2010-05-02 00:26:08 +00:00
|
|
|
.endif
|
|
|
|
|
2008-10-16 13:06:46 +00:00
|
|
|
post-install:
|
2008-09-04 01:01:56 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${EXAMPLESDIR}
|
|
|
|
.endif
|
2004-04-17 21:26:30 +00:00
|
|
|
|
2008-04-03 02:12:52 +00:00
|
|
|
.include <bsd.port.post.mk>
|