2008-03-07 16:51:44 +01:00
|
|
|
PORTNAME= znc
|
2020-09-10 00:22:24 +02:00
|
|
|
PORTVERSION= 1.8.2
|
2023-10-05 22:43:38 +02:00
|
|
|
PORTREVISION= 12
|
2019-10-09 13:50:48 +02:00
|
|
|
CATEGORIES= irc
|
2018-03-10 01:16:49 +01:00
|
|
|
MASTER_SITES= https://znc.in/releases/ \
|
|
|
|
https://znc.in/releases/archive/
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2021-12-05 22:56:23 +01:00
|
|
|
# Fix build with libressl
|
|
|
|
PATCH_SITES= https://github.com/znc/znc/commit/
|
|
|
|
PATCHFILES= dcb5f3df82fcfec48aab356252067dc897fb98cf.patch:-p1
|
|
|
|
|
2017-05-08 19:21:49 +02:00
|
|
|
MAINTAINER= dbaio@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Advanced IRC bouncer
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://wiki.znc.in/ZNC
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2014-02-07 21:09:51 +01:00
|
|
|
LICENSE= APACHE20
|
2015-11-05 11:43:53 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2011-10-23 17:52:36 +02:00
|
|
|
|
2023-06-15 00:00:28 +02:00
|
|
|
USES= compiler:c++11-lib cpe cmake:run iconv pathfix pkgconfig python
|
2018-03-10 01:16:49 +01:00
|
|
|
|
2013-06-27 14:36:31 +02:00
|
|
|
USE_RC_SUBR= znc
|
2018-03-10 01:16:49 +01:00
|
|
|
|
2016-11-23 12:43:13 +01:00
|
|
|
SUB_FILES= pkg-message
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2016-10-10 21:33:25 +02:00
|
|
|
PORTDOCS= README.md
|
|
|
|
|
2016-11-23 12:43:13 +01:00
|
|
|
USERS= znc
|
|
|
|
GROUPS= znc
|
|
|
|
|
2019-02-02 22:15:16 +01:00
|
|
|
OPTIONS_DEFINE= CHARSET CYRUS DEBUG DOCS IPV6 NLS OPENSSL PERL PYTHON TCL
|
|
|
|
OPTIONS_DEFAULT= CHARSET OPENSSL PERL PYTHON
|
2014-02-07 21:09:51 +01:00
|
|
|
OPTIONS_SUB= yes
|
2012-11-29 00:02:15 +01:00
|
|
|
|
2016-01-18 19:58:34 +01:00
|
|
|
CHARSET_DESC= Character encoding support via ICU
|
2014-02-07 21:09:51 +01:00
|
|
|
CYRUS_DESC= Cyrus SASL module
|
2012-11-29 00:02:15 +01:00
|
|
|
DEBUG_DESC= Debugging support
|
|
|
|
PERL_DESC= Perl scripting module
|
|
|
|
PYTHON_DESC= Python scripting module
|
|
|
|
TCL_DESC= Tcl scripting module
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2019-02-02 22:15:16 +01:00
|
|
|
CHARSET_CMAKE_BOOL= WANT_ICU
|
2016-06-20 14:51:32 +02:00
|
|
|
CHARSET_LIB_DEPENDS= libicuuc.so:devel/icu
|
2019-02-02 22:15:16 +01:00
|
|
|
CYRUS_CMAKE_BOOL= WANT_CYRUS
|
2016-04-01 16:08:37 +02:00
|
|
|
CYRUS_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
2019-02-02 22:15:16 +01:00
|
|
|
DEBUG_VARS= CMAKE_BUILD_TYPE=Debug
|
|
|
|
IPV6_CMAKE_BOOL= WANT_IPV6
|
|
|
|
NLS_CMAKE_BOOL= WANT_I18N
|
|
|
|
NLS_LIB_DEPENDS= libboost_locale.so:devel/boost-libs
|
|
|
|
NLS_USES= gettext
|
|
|
|
OPENSSL_CMAKE_BOOL= WANT_OPENSSL
|
|
|
|
OPENSSL_CMAKE_ON= -DOPENSSL_ROOT_DIR=${OPENSSLBASE}
|
2016-09-11 19:45:09 +02:00
|
|
|
OPENSSL_USES= ssl
|
2020-06-17 20:17:45 +02:00
|
|
|
PERL_BUILD_DEPENDS= swig>=3.0.0:devel/swig
|
2019-02-02 22:15:16 +01:00
|
|
|
PERL_CMAKE_BOOL= WANT_PERL WANT_SWIG
|
2016-01-18 19:58:34 +01:00
|
|
|
PERL_USE= perl5=build,run
|
2014-02-07 21:09:51 +01:00
|
|
|
PERL_USES= perl5
|
2019-02-02 22:15:16 +01:00
|
|
|
PYTHON_CMAKE_BOOL= WANT_PYTHON WANT_SWIG
|
|
|
|
PYTHON_CMAKE_ON= -DWANT_PYTHON_VERSION:STRING=python-${PYTHON_VER}
|
2020-06-17 20:17:45 +02:00
|
|
|
PYTHON_BUILD_DEPENDS= swig>=3.0.0:devel/swig
|
2018-05-09 00:59:27 +02:00
|
|
|
PYTHON_IMPLIES= CHARSET
|
2016-01-18 19:58:34 +01:00
|
|
|
PYTHON_USE= perl5=build
|
2019-02-02 22:15:16 +01:00
|
|
|
PYTHON_USES= perl5
|
|
|
|
TCL_CMAKE_BOOL= WANT_TCL
|
2016-01-18 19:58:34 +01:00
|
|
|
TCL_USES= tcl
|
2008-03-07 16:51:44 +01:00
|
|
|
|
2012-11-29 00:02:15 +01:00
|
|
|
post-patch:
|
2019-02-02 22:15:16 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|python3|python${PYTHON_VER}|g' \
|
|
|
|
${WRKSRC}/znc-buildmod.cmake.in
|
2012-11-29 00:02:15 +01:00
|
|
|
|
2016-01-18 19:58:34 +01:00
|
|
|
post-install-DOCS-on:
|
2016-09-11 19:45:09 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2012-11-29 00:02:15 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2014-02-07 21:09:51 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2012-11-29 00:02:15 +01:00
|
|
|
.endfor
|
2009-12-19 00:20:57 +01:00
|
|
|
|
2019-02-02 22:15:16 +01:00
|
|
|
post-install-NLS-off:
|
|
|
|
@${RM} -r ${STAGEDIR}${DATADIR}/translations
|
|
|
|
|
2016-11-23 12:43:13 +01:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
|
2011-05-26 06:03:46 +02:00
|
|
|
.include <bsd.port.mk>
|