mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
e6e74bcab0
- adopt the port; - silent portlint. Approved by: rene (mentor) Differential Revision: https://reviews.freebsd.org/D18489
91 lines
2.4 KiB
Makefile
91 lines
2.4 KiB
Makefile
# Created by: mat
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= anope
|
|
PORTVERSION= 2.0.6
|
|
CATEGORIES= irc
|
|
|
|
MAINTAINER= egypcio@FreeBSD.org
|
|
COMMENT= Set of IRC services for IRC networks
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/docs/COPYING
|
|
|
|
USES= cmake:outsource localbase:ldflags shebangfix
|
|
USE_GITHUB= yes
|
|
USE_RC_SUBR= anope
|
|
|
|
CMAKE_ARGS= -DINSTDIR:STRING="${PREFIX}/anope"
|
|
SHEBANG_FILES= ${WRKSRC}/src/tools/*.sh
|
|
CFLAGS_amd64= -fPIC
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= GNUTLS LDAP MYSQL NLS OPENSSL PCRE POSIX REDIS SASL SQLITE STATS TRE
|
|
OPTIONS_DEFAULT= MYSQL OPENSSL POSIX
|
|
OPTIONS_SUB= yes
|
|
POSIX_DESC= POSIX Regex Module
|
|
STATS_DESC= Channel Statistics Module
|
|
TRE_DESC= Tre Regex Module
|
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
|
|
MYSQL_USES= mysql
|
|
|
|
NLS_USES= gettext
|
|
|
|
OPENSSL_USES= ssl
|
|
|
|
REDIS_RUN_DEPENDS= redis:databases/redis
|
|
|
|
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
|
|
|
|
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
|
|
|
SQLITE_USES= sqlite
|
|
|
|
TRE_LIB_DEPENDS= libtre.so:textproc/libtre
|
|
|
|
post-patch-GNUTLS-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_ssl_gnutls.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-LDAP-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_ldap.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_ldap_authentication.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_ldap_oper.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-MYSQL-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_mysql.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sql_authentication.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sql_log.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sql_oper.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-OPENSSL-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_ssl_openssl.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-SQLITE-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sqlite.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-PCRE-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_regex_pcre.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-POSIX-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_regex_posix.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-SASL-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-aes.cpp ${WRKSRC}/modules/
|
|
${LN} -s ${WRKSRC}/modules/extra/m_sasl_dh-blowfish.cpp ${WRKSRC}/modules/
|
|
|
|
post-patch-STATS-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/stats ${WRKSRC}/modules/
|
|
|
|
post-patch-TRE-on:
|
|
${LN} -s ${WRKSRC}/modules/extra/m_regex_tre.cpp ${WRKSRC}/modules/
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/anope/data/backups
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/anope/logs
|
|
|
|
.include <bsd.port.mk>
|