void-packages/srcpkgs/ejabberd/template
2019-04-02 02:29:42 -04:00

31 lines
1 KiB
Bash

# Template file for 'ejabberd'
pkgname=ejabberd
version=19.02
revision=1
build_style=gnu-configure
configure_args="--enable-odbc --enable-mysql --enable-pgsql --enable-pam
--enable-redis --enable-elixir $(vopt_enable sqlite)"
conf_files="/etc/ejabberd/*"
hostmakedepends="automake erlang git elixir"
makedepends="libressl-devel libyaml-devel expat-devel zlib-devel pam-devel
$(vopt_if sqlite sqlite-devel) gd-devel"
depends="erlang"
short_desc="Robust and massively scalable XMPP platform"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-2"
homepage="https://www.process-one.net/en/ejabberd/"
distfiles="https://github.com/processone/ejabberd/archive/${version}.tar.gz"
checksum=cce54840c6555d78426d0e75f7e2b4b5b85ea560f1076d59432f7e145ba9af55
build_options="sqlite"
build_options_default="sqlite"
if [ "$CROSS_BUILD" ]; then
makedepends+=" erlang"
configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
broken="configure: error: cannot run test program while cross compiling"
fi
pre_configure() {
autoreconf -fi
}