blob: 3c3618f17cf4061d51658beb7d69279b924ca5bb (
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
|
# New ports collection makefile for: znc
# Date created: 6 March 2008
# Whom: elvstone@gmail.com
#
# $FreeBSD$
#
PORTNAME= znc
PORTVERSION= 0.056
CATEGORIES= irc ipv6
MASTER_SITES= SF
MAINTAINER= elvstone@gmail.com
COMMENT= An advanced IRC bouncer
GNU_CONFIGURE= yes
USE_GMAKE= yes
OPTIONS= DEBUG "Enable debugging" off \
IPV6 "Enable IPv6 support" off \
OPENSSL "Enable OpenSSL support" on \
PERL "Enable Perl support" on \
SASL "Enable SASL support" off
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
.if defined(WITH_OPENSSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
PLIST_SUB+= OPENSSL=""
.else
CONFIGURE_ARGS+= --disable-openssl
PLIST_SUB+= OPENSSL="@comment "
.endif
.if defined(WITH_PERL)
USE_PERL5= yes
PLIST_SUB+= PERL=""
.else
CONFIGURE_ARGS+= --disable-perl
PLIST_SUB+= PERL="@comment "
.endif
.if defined(WITH_SASL)
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --enable-sasl
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB+= SASL=""
.else
PLIST_SUB+= SASL="@comment "
.endif
.include <bsd.port.post.mk>
|