Lines 1-22
Link Here
|
1 |
# New ports collection makefile for: nzbget |
1 |
# Created by: Lewis Thompson <purple@lewiz.net> |
2 |
# Date created: 13 April 2004 |
|
|
3 |
# Whom: Lewis Thompson <purple@lewiz.net> |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= nzbget |
4 |
PORTNAME= nzbget |
9 |
PORTVERSION= 0.8.0 |
5 |
PORTVERSION= 9.1 |
10 |
CATEGORIES= news |
6 |
CATEGORIES= news |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} |
12 |
|
8 |
|
13 |
MAINTAINER= toxic@doobie.com |
9 |
MAINTAINER= toxic@doobie.com |
14 |
COMMENT= A binary newsreader supporting NZB files |
10 |
COMMENT= Binary Usenet newsreader supporting NZB files |
15 |
|
11 |
|
16 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
|
|
18 |
|
13 |
|
19 |
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \ |
14 |
LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 \ |
20 |
sigc-2:${PORTSDIR}/devel/libsigc++20 |
15 |
sigc-2:${PORTSDIR}/devel/libsigc++20 |
21 |
|
16 |
|
22 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
Lines 27-67
Link Here
|
27 |
CFLAGS+= ${PTHREAD_CFLAGS} |
22 |
CFLAGS+= ${PTHREAD_CFLAGS} |
28 |
USE_GMAKE= yes |
23 |
USE_GMAKE= yes |
29 |
|
24 |
|
30 |
OPTIONS= PARCHECK "Enable autopar/parcheck (Requires libpar2)" On |
25 |
PAR_DESC= Support verifying/repairing with par2 files |
31 |
OPTIONS+= TLSCHECK "Use GNUTLS for SSL" On |
26 |
OPTIONS_DEFINE= PAR |
32 |
OPTIONS+= OSSLCHECK "Use OpenSSL for SSL" Off |
27 |
OPTIONS_SINGLE= TLSLIB |
|
|
28 |
OPTIONS_SINGLE_TLSLIB= GNUTLS OPENSSL |
29 |
OPTIONS_DEFAULT= PAR GNUTLS |
33 |
|
30 |
|
|
|
31 |
.include <bsd.port.options.mk> |
32 |
|
34 |
PLIST_FILES= bin/nzbget |
33 |
PLIST_FILES= bin/nzbget |
35 |
PORTDOCS= README |
34 |
PORTDOCS= README |
36 |
PORTEXAMPLES= nzbget.conf.example |
35 |
PORTEXAMPLES= nzbget.conf.example |
37 |
|
36 |
|
38 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.options.mk> |
39 |
|
38 |
|
40 |
.if defined (WITHOUT_PARCHECK) |
39 |
.if ${PORT_OPTIONS:MPAR} |
41 |
CONFIGURE_ARGS+= --disable-parcheck |
40 |
CONFIGURE_ARGS+= --enable-parcheck --disable-libpar2-bugfixes-check |
|
|
41 |
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2 |
42 |
.else |
42 |
.else |
43 |
CONFIGURE_ARGS+= --enable-parcheck |
43 |
CONFIGURE_ARGS+= --disable-parcheck |
44 |
LIB_DEPENDS+= par2:${PORTSDIR}/archivers/libpar2 |
|
|
45 |
.endif |
44 |
.endif |
46 |
|
45 |
|
47 |
.if defined (WITH_OSSLCHECK) |
46 |
.if ${PORT_OPTIONS:MOPENSSL} |
48 |
CONFIGURE_ARGS+= --with-tlslib=OpenSSL |
47 |
CONFIGURE_ARGS+= --with-tlslib=OpenSSL |
49 |
.endif |
48 |
.endif |
50 |
|
49 |
|
51 |
.if defined (WITH_TLSCHECK) |
50 |
.if ${PORT_OPTIONS:MGNUTLS} |
52 |
CONFIGURE_ARGS+= --with-tlslib=GnuTLS |
51 |
CONFIGURE_ARGS+= --with-tlslib=GnuTLS |
53 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
52 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
54 |
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt |
53 |
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt |
55 |
.endif |
54 |
.endif |
56 |
|
55 |
|
57 |
post-install: |
56 |
post-install: |
58 |
.if !defined(NOPORTDOCS) |
57 |
.if ${PORT_OPTIONS:MDOCS} |
59 |
${MKDIR} ${DOCSDIR} |
58 |
${MKDIR} ${DOCSDIR} |
60 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
61 |
.endif |
60 |
.endif |
62 |
.if !defined(NOPORTEXAMPLES) |
61 |
.if ${PORT_OPTIONS:MEXAMPLES} |
63 |
${MKDIR} ${EXAMPLESDIR} |
62 |
${MKDIR} ${EXAMPLESDIR} |
64 |
${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${EXAMPLESDIR} |
63 |
${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${EXAMPLESDIR} |
65 |
.endif |
64 |
.endif |
66 |
|
65 |
|
67 |
.include <bsd.port.post.mk> |
66 |
.include <bsd.port.mk> |