summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-05-03 11:05:10 +0000
committernia <nia@pkgsrc.org>2019-05-03 11:05:10 +0000
commitfdd27e48cd6214e2f216b8b780ec9077f1d0a3bb (patch)
tree7df9b49fc87d34cec4fe71272d1b5760f5ac4471
parent1ae27183cdd61aabcf08ed67bfbe0c60fc3f2e46 (diff)
downloadpkgsrc-fdd27e48cd6214e2f216b8b780ec9077f1d0a3bb.tar.gz
chat/anope: Use gettext-lib and msgfmt. Default to gnutls over openssl.
Without gettext-lib and msgfmt being available, package creation fails because the locale files aren't generated. Similar reasoning for gnutls as inspircd - anope is based on an old version of inspircd and is also GPLv2 with no exception for OpenSSL. gnutls is the recommended TLS library for both.
-rw-r--r--chat/anope/Makefile6
-rw-r--r--chat/anope/options.mk4
2 files changed, 6 insertions, 4 deletions
diff --git a/chat/anope/Makefile b/chat/anope/Makefile
index d071409b4f5..6b2476a584d 100644
--- a/chat/anope/Makefile
+++ b/chat/anope/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2019/04/07 19:30:13 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2019/05/03 11:05:10 nia Exp $
DISTNAME= anope-2.0.6-source
PKGNAME= ${DISTNAME:S/-source//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_GITHUB:=anope/}
GITHUB_PROJECT= anope
@@ -14,6 +14,7 @@ COMMENT= Modular set of IRC services
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
+USE_TOOLS+= msgfmt
USE_CMAKE= yes
CMAKE_ARGS+= -DPROGRAM_NAME=anope
@@ -108,4 +109,5 @@ post-install:
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/anope/stats.standalone.example.conf \
${DESTDIR}${DOCDIR}/stats.standalone.example.conf
+.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/anope/options.mk b/chat/anope/options.mk
index a499a938983..184331ee4bc 100644
--- a/chat/anope/options.mk
+++ b/chat/anope/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.2 2019/02/05 19:10:50 nia Exp $
+# $NetBSD: options.mk,v 1.3 2019/05/03 11:05:10 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.anope
PKG_SUPPORTED_OPTIONS= gnutls openssl mysql ldap pcre sqlite3
-PKG_SUGGESTED_OPTIONS= openssl
+PKG_SUGGESTED_OPTIONS= gnutls
PLIST_VARS+= gnutls openssl mysql ldap pcre sqlite3
.include "../../mk/bsd.options.mk"