maintainers {ciserlohn @ci42}
description ejabberd is an XMPP application server.
long_description ${description} ejabberd stands for "Erlang Jabber Daemon"
homepage http://www.process-one.net/en/ejabberd/
master_sites http://www.process-one.net/downloads/ejabberd/${version}/
checksums rmd160 e5a0b2fe95f41944ecf3e76b2e8fe23713b4edf3 \
sha256 fd35af176811a7285c3fc436921872c34a15fc0fb45fa3db975801c7be5c1f57 \
build.env-append CC=${configure.cc} \
CFLAGS=${configure.cflags} \
CXXFLAGS=${configure.cxxflags} \
LDFLAGS=${configure.ldflags}
depends_lib port:erlang \
path:lib/libssl.dylib:openssl \
# erlang is not universal
configure.args --with-expat=${prefix} \
# All ejabberd configuration files.
set conf_files {ejabberd.yml ejabberdctl.cfg inetrc}
destroot.keepdirs ${destroot}${prefix}/var/log/ejabberd/
set etc ${prefix}/etc/ejabberd
# Create sample configuration files so they don't get overwritten by an
foreach file ${conf_files} {
file rename ${destroot}${etc}/${file} ${destroot}${etc}/${file}.sample
variant odbc description {Enable ODBC support} {
depends_lib-append port:unixODBC
configure.args-append --enable-odbc