2008-03-07 16:51:44 +01:00
|
|
|
# New ports collection makefile for: znc
|
|
|
|
# Date created: 6 March 2008
|
|
|
|
# Whom: elvstone@gmail.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= znc
|
2012-04-21 21:03:42 +02:00
|
|
|
PORTVERSION= 0.206
|
2008-03-07 16:51:44 +01:00
|
|
|
CATEGORIES= irc ipv6
|
2011-05-26 06:03:46 +02:00
|
|
|
MASTER_SITES= http://znc.in/releases/
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2008-08-25 18:42:58 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2008-03-07 16:51:44 +01:00
|
|
|
COMMENT= An advanced IRC bouncer
|
|
|
|
|
2011-10-23 17:52:36 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-05-26 06:03:46 +02:00
|
|
|
FETCH_ARGS?= -Fpr
|
2008-03-07 16:51:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2010-06-12 17:55:35 +02:00
|
|
|
USE_GNOME= gnomehack pkgconfig
|
2009-08-30 12:41:41 +02:00
|
|
|
WANT_PERL= yes
|
2008-03-07 16:51:44 +01:00
|
|
|
|
|
|
|
OPTIONS= DEBUG "Enable debugging" off \
|
2011-10-23 17:52:36 +02:00
|
|
|
IPV6 "Enable IPv6 support" on \
|
2009-12-19 00:20:57 +01:00
|
|
|
CARES "Use c-ares resolver library" off \
|
2008-03-07 16:51:44 +01:00
|
|
|
OPENSSL "Enable OpenSSL support" on \
|
2009-12-19 00:20:57 +01:00
|
|
|
EXTRA "Build extra modules" off \
|
|
|
|
PERL "Enable Perl module support" on \
|
|
|
|
TCL "Enable TCL module support" off \
|
2010-03-09 00:14:29 +01:00
|
|
|
TCLALLOWALL "Allow non-admin users to load TCL module" off \
|
2011-05-26 06:03:46 +02:00
|
|
|
PYTHON "Enable Python module support" off \
|
2011-10-23 17:52:36 +02:00
|
|
|
SASL "Enable SASL module support (requires EXTRA)" off
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2011-05-26 06:03:46 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-03-07 16:51:44 +01:00
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2009-12-19 00:20:57 +01: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 16:51:44 +01: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)
|
2010-12-17 10:29:13 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-perl
|
2008-03-07 16:51:44 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
PLIST_SUB+= PERL=""
|
2011-05-26 06:03:46 +02:00
|
|
|
BUILD_DEPENDS+= swig>=1.3.40:${PORTSDIR}/devel/swig13
|
2008-03-07 16:51:44 +01:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-12-19 00:20:57 +01:00
|
|
|
.if defined(WITH_TCL)
|
|
|
|
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
|
|
|
|
|
2010-03-09 00:14:29 +01:00
|
|
|
.if defined(WITH_TCLALLOWALL)
|
|
|
|
.if defined(WITHOUT_TCL)
|
2011-10-23 17:52:36 +02:00
|
|
|
IGNORE= tcl allow all support requires TCL. Please re-run 'make config' and enable TCL
|
2010-03-09 00:14:29 +01:00
|
|
|
.endif
|
|
|
|
CXXFLAGS+= -DMOD_MODTCL_ALLOW_EVERYONE
|
|
|
|
.endif
|
|
|
|
|
2011-05-26 06:03:46 +02:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= 3.1
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
PLIST_SUB+= PYTHON=""
|
2011-10-23 17:52:36 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-python=python-${PYTHON_VER}
|
2011-05-26 06:03:46 +02:00
|
|
|
BUILD_DEPENDS+= swig>=1.3.40:${PORTSDIR}/devel/swig13
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-03-07 16:51:44 +01:00
|
|
|
.if defined(WITH_SASL)
|
2011-10-23 17:52:36 +02:00
|
|
|
.if defined(WITHOUT_EXTRA)
|
|
|
|
IGNORE= sasl module requires EXTRA. Please re-run 'make config' and enable EXTRA
|
|
|
|
.endif
|
2008-03-07 16:51:44 +01:00
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
CONFIGURE_ARGS+= --enable-sasl
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-03-07 16:51:44 +01:00
|
|
|
PLIST_SUB+= SASL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SASL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-12-19 00:20:57 +01:00
|
|
|
.if defined(WITH_EXTRA)
|
2010-06-12 17:55:35 +02:00
|
|
|
USE_ICONV= yes
|
2009-12-19 00:20:57 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-extra
|
|
|
|
PLIST_SUB+= EXTRA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXTRA="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
MAN1= znc.1 znc-buildmod.1 znc-config.1
|
|
|
|
|
2011-05-26 06:03:46 +02:00
|
|
|
.include <bsd.port.mk>
|