2008-03-07 15:51:44 +00:00
|
|
|
# New ports collection makefile for: znc
|
|
|
|
# Date created: 6 March 2008
|
|
|
|
# Whom: elvstone@gmail.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= znc
|
2009-12-24 21:49:29 +00:00
|
|
|
PORTVERSION= 0.078
|
2008-03-07 15:51:44 +00:00
|
|
|
CATEGORIES= irc ipv6
|
2009-08-27 15:04:16 +00:00
|
|
|
MASTER_SITES= SF
|
2008-03-07 15:51:44 +00:00
|
|
|
|
2008-08-25 16:42:58 +00:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2008-03-07 15:51:44 +00:00
|
|
|
COMMENT= An advanced IRC bouncer
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2009-06-06 16:25:50 +00:00
|
|
|
USE_GNOME= gnomehack
|
2009-08-30 10:41:41 +00:00
|
|
|
WANT_PERL= yes
|
2008-03-07 15:51:44 +00:00
|
|
|
|
|
|
|
OPTIONS= DEBUG "Enable debugging" off \
|
|
|
|
IPV6 "Enable IPv6 support" off \
|
2009-12-18 23:20:57 +00:00
|
|
|
CARES "Use c-ares resolver library" off \
|
2008-03-07 15:51:44 +00:00
|
|
|
OPENSSL "Enable OpenSSL support" on \
|
2009-12-18 23:20:57 +00:00
|
|
|
MODULES "Build modules" on \
|
|
|
|
EXTRA "Build extra modules" off \
|
|
|
|
PERL "Enable Perl module support" on \
|
|
|
|
TCL "Enable TCL module support" off \
|
|
|
|
SASL "Enable SASL module support" off
|
2008-03-07 15:51:44 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2009-12-18 23:20:57 +00:00
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CARES)
|
|
|
|
LIB_DEPENDS+= cares.2:${PORTSDIR}/dns/c-ares
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-c-ares
|
2008-03-07 15:51:44 +00:00
|
|
|
.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)
|
2009-12-18 23:20:57 +00:00
|
|
|
.if defined(WITHOUT_MODULES)
|
|
|
|
IGNORE= perl support requires MODULES. Please re-run 'make config' and enable MODULES
|
|
|
|
.endif
|
2008-03-07 15:51:44 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-12-18 23:20:57 +00:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
.if defined(WITHOUT_MODULES)
|
|
|
|
IGNORE= tcl support requires MODULES. Please re-run 'make config' and enable MODULES
|
|
|
|
.endif
|
|
|
|
USE_TCL= 84+
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-tcl --with-tcl=${TCL_LIBDIR}
|
|
|
|
PLIST_SUB+= TCL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tcl
|
|
|
|
PLIST_SUB+= TCL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-03-07 15:51:44 +00:00
|
|
|
.if defined(WITH_SASL)
|
2009-12-18 23:20:57 +00:00
|
|
|
.if defined(WITHOUT_MODULES)
|
|
|
|
IGNORE= sasl support requires MODULES. Please re-run 'make config' and enable MODULES
|
|
|
|
.endif
|
2008-03-07 15:51:44 +00:00
|
|
|
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
|
|
|
|
|
2009-12-18 23:20:57 +00:00
|
|
|
.if defined(WITHOUT_MODULES)
|
|
|
|
CONFIGURE_ARGS+= --disable-modules
|
|
|
|
PLIST_SUB+= MODULES="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MODULES=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXTRA)
|
|
|
|
.if defined(WITHOUT_MODULES)
|
|
|
|
IGNORE= extra modules requires MODULES. Please re-run 'make config' and enable MODULES
|
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-extra
|
|
|
|
PLIST_SUB+= EXTRA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXTRA="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
MAN1= znc.1 znc-buildmod.1 znc-config.1
|
|
|
|
|
2008-03-07 15:51:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|