2012-11-13 21:45:57 +00:00
|
|
|
# Created by: elvstone@gmail.com
|
2008-03-07 15:51:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= znc
|
2014-02-07 20:09:51 +00:00
|
|
|
PORTVERSION= 1.2
|
2008-03-07 15:51:44 +00:00
|
|
|
CATEGORIES= irc ipv6
|
2011-05-26 04:03:46 +00:00
|
|
|
MASTER_SITES= http://znc.in/releases/
|
2008-03-07 15:51:44 +00:00
|
|
|
|
2012-11-13 21:45:57 +00:00
|
|
|
MAINTAINER= jase@FreeBSD.org
|
2008-03-07 15:51:44 +00:00
|
|
|
COMMENT= An advanced IRC bouncer
|
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
LICENSE= APACHE20
|
2011-10-23 15:52:36 +00:00
|
|
|
|
2008-03-07 15:51:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-06-27 12:36:31 +00:00
|
|
|
USE_RC_SUBR= znc
|
2013-09-17 06:12:35 +00:00
|
|
|
USES= pkgconfig iconv gmake
|
2008-03-07 15:51:44 +00:00
|
|
|
|
2012-11-28 23:02:15 +00:00
|
|
|
NO_OPTIONS_SORT= yes
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DEBUG IPV6 OPENSSL CYRUS PERL PYTHON TCL
|
|
|
|
OPTIONS_DEFAULT= OPENSSL PERL
|
2014-02-07 20:09:51 +00:00
|
|
|
OPTIONS_SUB= yes
|
2012-11-28 23:02:15 +00:00
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
CYRUS_DESC= Cyrus SASL module
|
2012-11-28 23:02:15 +00:00
|
|
|
DEBUG_DESC= Debugging support
|
|
|
|
PERL_DESC= Perl scripting module
|
|
|
|
PYTHON_DESC= Python scripting module
|
|
|
|
TCL_DESC= Tcl scripting module
|
2008-03-07 15:51:44 +00:00
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
CYRUS_CONFIGURE_ON= --enable-cyrus
|
|
|
|
CYRUS_LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
CYRUS_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
DEBUG_CONFIGURE_ON= --enable-debug
|
|
|
|
IPV6_CONFIGURE_OFF= --disable-ipv6
|
|
|
|
PERL_BUILD_DEPENDS= swig>=2.0.11:${PORTSDIR}/devel/swig20
|
|
|
|
PERL_CONFIGURE_ENABLE= perl
|
|
|
|
PERL_CONFIGURE_ON= --enable-swig
|
|
|
|
PERL_USES= perl5
|
|
|
|
PYTHON_BUILD_DEPENDS= swig>=2.0.11:${PORTSDIR}/devel/swig20
|
|
|
|
PYTHON_CONFIGURE_ON= --enable-python=python-${PYTHON_VER} --enable-swig
|
|
|
|
PYTHON_USES= perl5
|
|
|
|
OPENSSL_CONFIGURE_OFF= --disable-openssl
|
|
|
|
TCL_CONFIGURE_ENABLE= tcl
|
2008-03-07 15:51:44 +00:00
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-12-18 23:20:57 +00:00
|
|
|
|
2012-11-28 23:02:15 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2008-03-07 15:51:44 +00:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
|
|
|
.endif
|
|
|
|
|
2012-11-28 23:02:15 +00:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-17 06:12:35 +00:00
|
|
|
USE_PERL5+= run build
|
2008-03-07 15:51:44 +00:00
|
|
|
.endif
|
|
|
|
|
2012-11-28 23:02:15 +00:00
|
|
|
.if ${PORT_OPTIONS:MTCL}
|
2014-02-20 10:09:24 +00:00
|
|
|
USES+= tcl
|
2014-02-07 20:09:51 +00:00
|
|
|
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR}
|
2009-12-18 23:20:57 +00:00
|
|
|
.endif
|
|
|
|
|
2012-11-28 23:02:15 +00:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
2014-02-07 20:09:51 +00:00
|
|
|
USE_PYTHON= 3.1-
|
|
|
|
USE_PERL5+= build
|
2011-05-26 04:03:46 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
PORTDOCS= README.md
|
2009-12-18 23:20:57 +00:00
|
|
|
|
2014-02-07 20:09:51 +00:00
|
|
|
pre-configure:
|
|
|
|
# No need to cast to char** in AM_ICONV, fixes charset/iconv detection
|
|
|
|
# and by extension, successfully builds charset module
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's#(char \*\*)##g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
# Instead of using bundled swig generated files, delete them to force
|
|
|
|
# regeneration using swig 2.0.11+ (fixes port compilation using clang)
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
|
|
|
@${RM} ${WRKSRC}/modules/modperl/ZNC.cpp
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
|
|
@${RM} ${WRKSRC}/modules/modpython/_znc_core.cpp
|
|
|
|
.endif
|
2012-11-28 23:02:15 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's#$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2014-02-07 20:09:51 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's#/usr/local#${LOCALBASE}#' ${WRKSRC}/configure
|
2012-11-28 23:02:15 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-02-07 20:09:51 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2012-11-28 23:02:15 +00:00
|
|
|
.for f in ${PORTDOCS}
|
2014-02-07 20:09:51 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2012-11-28 23:02:15 +00:00
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
|
|
|
|
.endif
|
2009-12-18 23:20:57 +00:00
|
|
|
|
2011-05-26 04:03:46 +00:00
|
|
|
.include <bsd.port.mk>
|