diff options
Diffstat (limited to 'irc/znc/Makefile')
-rw-r--r-- | irc/znc/Makefile | 98 |
1 files changed, 46 insertions, 52 deletions
diff --git a/irc/znc/Makefile b/irc/znc/Makefile index 78c734284177..4d5fb8a36639 100644 --- a/irc/znc/Makefile +++ b/irc/znc/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= znc -PORTVERSION= 0.206 +PORTVERSION= 1.0 CATEGORIES= irc ipv6 MASTER_SITES= http://znc.in/releases/ @@ -11,40 +11,35 @@ COMMENT= An advanced IRC bouncer LICENSE= GPLv2 -FETCH_ARGS?= -Fpr +FETCH_ARGS= -Fpr GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GNOME= gnomehack pkgconfig +USE_PKGCONFIG= build +USE_ICONV= yes WANT_PERL= yes -OPTIONS= DEBUG "Enable debugging" off \ - IPV6 "Enable IPv6 support" on \ - CARES "Use c-ares resolver library" off \ - OPENSSL "Enable OpenSSL support" on \ - EXTRA "Build extra modules" off \ - PERL "Enable Perl module support" on \ - TCL "Enable TCL module support" off \ - TCLALLOWALL "Allow non-admin users to load TCL module" off \ - PYTHON "Enable Python module support" off \ - SASL "Enable SASL module support (requires EXTRA)" off +NO_OPTIONS_SORT= yes + +OPTIONS_DEFINE= DEBUG IPV6 OPENSSL CYRUS PERL PYTHON TCL +OPTIONS_DEFAULT= OPENSSL PERL + +DEBUG_DESC= Debugging support +PERL_DESC= Perl scripting module +PYTHON_DESC= Python scripting module +TCL_DESC= Tcl scripting module +CYRUS_DESC= Cyrus SASL module .include <bsd.port.options.mk> -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .endif -.if defined(WITHOUT_IPV6) +.if empty(PORT_OPTIONS:MIPV6) CONFIGURE_ARGS+= --disable-ipv6 .endif -.if defined(WITH_CARES) -LIB_DEPENDS+= cares.2:${PORTSDIR}/dns/c-ares -.else -CONFIGURE_ARGS+= --disable-c-ares -.endif - -.if defined(WITH_OPENSSL) +.if ${PORT_OPTIONS:MOPENSSL} .include "${PORTSDIR}/Mk/bsd.openssl.mk" CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} PLIST_SUB+= OPENSSL="" @@ -53,16 +48,16 @@ CONFIGURE_ARGS+= --disable-openssl PLIST_SUB+= OPENSSL="@comment " .endif -.if defined(WITH_PERL) +.if ${PORT_OPTIONS:MPERL} CONFIGURE_ARGS+= --enable-perl USE_PERL5= yes PLIST_SUB+= PERL="" -BUILD_DEPENDS+= swig>=1.3.40:${PORTSDIR}/devel/swig13 +BUILD_DEPENDS+= swig>=2.0.4:${PORTSDIR}/devel/swig20 .else PLIST_SUB+= PERL="@comment " .endif -.if defined(WITH_TCL) +.if ${PORT_OPTIONS:MTCL} USE_TCL= 84+ .include "${PORTSDIR}/Mk/bsd.tcl.mk" CONFIGURE_ARGS+= --enable-tcl --with-tcl=${TCL_LIBDIR} @@ -72,44 +67,43 @@ CONFIGURE_ARGS+= --without-tcl PLIST_SUB+= TCL="@comment " .endif -.if defined(WITH_TCLALLOWALL) -.if defined(WITHOUT_TCL) -IGNORE= tcl allow all support requires TCL. Please re-run 'make config' and enable TCL -.endif -CXXFLAGS+= -DMOD_MODTCL_ALLOW_EVERYONE -.endif - -.if defined(WITH_PYTHON) -USE_PYTHON= 3.1 +.if ${PORT_OPTIONS:MPYTHON} +USE_PYTHON= 3.1-3.2 USE_PERL5_BUILD= yes PLIST_SUB+= PYTHON="" CONFIGURE_ARGS+= --enable-python=python-${PYTHON_VER} -BUILD_DEPENDS+= swig>=1.3.40:${PORTSDIR}/devel/swig13 +BUILD_DEPENDS+= swig>=2.0.4:${PORTSDIR}/devel/swig20 .else PLIST_SUB+= PYTHON="@comment " .endif -.if defined(WITH_SASL) -.if defined(WITHOUT_EXTRA) -IGNORE= sasl module requires EXTRA. Please re-run 'make config' and enable EXTRA -.endif -LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 -CONFIGURE_ARGS+= --enable-sasl +.if ${PORT_OPTIONS:MCYRUS} +LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2 +CONFIGURE_ARGS+= --enable-cyrus LDFLAGS+= -L${LOCALBASE}/lib -PLIST_SUB+= SASL="" -.else -PLIST_SUB+= SASL="@comment " -.endif - -.if defined(WITH_EXTRA) -USE_ICONV= yes -CONFIGURE_ARGS+= --enable-extra -PLIST_SUB+= EXTRA="" +PLIST_SUB+= CYRUS="" .else -PLIST_SUB+= EXTRA="@comment " +PLIST_SUB+= CYRUS="@comment " .endif MANCOMPRESSED= yes -MAN1= znc.1 znc-buildmod.1 znc-config.1 +MAN1= znc.1 znc-buildmod.1 + +PORTDOCS= README.md + +post-patch: + @${REINPLACE_CMD} -e \ + 's#$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#' \ + ${WRKSRC}/Makefile.in + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}" + @${CAT} ${PKGMESSAGE} +.endif .include <bsd.port.mk> |