123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- COMMENT= jabber server written in Erlang
- V= 23.04
- CATEGORIES= net
- HOMEPAGE= https://www.ejabberd.im/
- # GPLv2+
- PERMIT_PACKAGE= Yes
- GH_ACCOUNT= processone
- GH_PROJECT= ejabberd
- GH_TAGNAME= ${V}
- WANTLIB+= c m ${COMPILER_LIBCXX} crypto expat ssl
- WANTLIB += yaml-0
- MASTER_SITES0 https://github.com/
- MODULES= lang/erlang
- MAKE_FLAGS+= EJABBERDDIR=${PREFIX}/lib/ejabberd \
- LOGDIR=${EJLOGDIR} \
- ETCDIR=${SYSCONFDIR}/ejabberd \
- SPOOLDIR=${EJDBDIR}
- FAKE_FLAGS+= ETCDIR=${PREFIX}/share/examples/ejabberd
- AUTOCONF_VERSION = 2.69
- AUTOMAKE_VERSION = 1.16
- CONFIGURE_STYLE= autoreconf
- CONFIGURE_ARGS+= --enable-pgsql \
- --enable-mysql \
- --disable-sqlite \
- --enable-odbc \
- --enable-iconv \
- --disable-pam \
- --disable-tools \
- --disable-roster-gateway-workaround \
- --enable-mssql
- CONFIGURE_ENV+= HOME=${WRKDIST} \
- ERL=${MODERL_ERL} \
- ERLC=${MODERL_ERLC} \
- CFLAGS="-I/usr/local/include" \
- LDFLAGS="-L/usr/local/lib" \
- ac_cv_header_openssl_md2_h=no
- COMPILER= base-clang ports-gcc
- BUILD_DEPENDS+= devel/git \
- devel/libyaml
- LIB_DEPENDS+= devel/libyaml
- RUN_DEPENDS= shells/bash
- JABBERDUSER= _ejabberd
- JABBERDGROUP= _ejabberd
- EJDBDIR= ${VARBASE}/db/ejabberd
- EJLOGDIR= ${VARBASE}/log/ejabberd
- DEPS_VERSIONS= \
- BASE64URL_VSN 1.0.1 \
- CACHE_TAB_VSN 1.0.30 \
- EIMP_VSN 1.0.22 \
- EZLIB_VSN 1.0.12 \
- FAST_TLS_VSN 1.1.16 \
- FAST_XML_VSN 1.1.49 \
- FAST_YAML_VSN 1.0.36 \
- IDNA_VSN 6.0.0 \
- JIFFY_VSN 1.1.1 \
- JOSE_VSN 1.11.5 \
- MQTREE_VSN 1.0.15 \
- P1_ACME_VSN 1.0.22 \
- P1_MYSQL_VSN 1.0.21 \
- P1_OAUTH2_VSN 0.6.11 \
- P1_PGSQL_VSN 1.1.22 \
- P1_UTILS_VSN 1.0.25 \
- PKIX_VSN 1.0.9 \
- STRINGPREP_VSN 1.0.29 \
- STUN_VSN 1.2.7 \
- UNICODE_UTIL_COMPAT_VSN 0.3.1 \
- XMPP_VSN 1.6.2 \
- YCONF_VSN 1.0.15
- .for _n _v in ${DEPS_VERSIONS}
- ${_n} = ${_v}
- EJABBERD_${_n:S/_VSN//} = ${_n:S/_VSN//:L}-${_v}
- SUBST_VARS += EJABBERD_${_n:S/_VSN//}
- .endfor
- MODERL_BASEDIR_NOSLASH = ${MODERL_BASEDIR:C/\/$//}
- SUBST_VARS += V EJDBDIR EJLOGDIR JABBERDUSER VARBASE MODERL_BASEDIR_NOSLASH
- NO_TEST= Yes
- post-configure:
- # XXX get dependencies via download from github in the fetch phase
- cd ${WRKSRC} && ${GMAKE} deps
- patch -d "${WRKSRC}" \
- <./files/patch_deps_jiffy_c_src_doube-conversion_strtod.cc
- patch -d "${WRKSRC}" \
- <./files/patch-deps_xmpp_c_src_jid_c
- cd ${WRKSRC}/deps/fast_yaml && ${SETENV} ${CONFIGURE_ENV} \
- CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
- CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
- ./configure
- post-install:
- cd ${WRKDIST}/examples && \
- find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/{} \; && \
- find . ! -type d -exec ${SUBST_CMD} -c {} ${PREFIX}/share/examples/ejabberd/{} \;
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ejabberd/sql
- cd ${WRKSRC}/sql && \
- find . -name '*.sql' -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/ejabberd/sql/{} \;
- chmod o+x ${PREFIX}/sbin/ejabberdctl
- .include <bsd.port.mk>
|