pkgsrc/chat/anope/options.mk
nia 218cbf8bdd 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.
2019-05-03 11:05:10 +00:00

45 lines
1.1 KiB
Makefile

# $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= gnutls
PLIST_VARS+= gnutls openssl mysql ldap pcre sqlite3
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnutls)
PLIST.gnutls= yes
ANOPE_EXTRAS+= m_ssl_gnutls.cpp
.include "../../security/gnutls/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
PLIST.openssl= yes
ANOPE_EXTRAS+= m_ssl_openssl.cpp
.include "../../security/openssl/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mmysql)
PLIST.mysql= yes
ANOPE_EXTRAS+= m_mysql.cpp
.include "../../mk/mysql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mldap)
PLIST.ldap= yes
ANOPE_EXTRAS+= m_ldap.cpp
ANOPE_EXTRAS+= m_ldap_authentication.cpp
.include "../../databases/openldap-client/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpcre)
PLIST.pcre= yes
ANOPE_EXTRAS+= m_regex_pcre.cpp
.include "../../devel/pcre/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Msqlite3)
PLIST.sqlite3= yes
ANOPE_EXTRAS+= m_sqlite.cpp
.include "../../databases/sqlite3/buildlink3.mk"
.endif