landry a11d494514 Enable posix module, otherwise the default config doesn't work.
While here enable compression module since we enforce dependency on
luazlib. We dont enable libevent use by default since it seems broken
(reported as https://code.google.com/p/lxmppd/issues/detail?id=452)

ok MAINTAINER jasper@
2014-11-27 08:12:51 +00:00

58 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2014/11/27 08:12:51 landry Exp $
SHARED_ONLY= Yes
COMMENT= communications server for Jabber/XMPP written in Lua
DISTNAME= prosody-0.9.6
CATEGORIES= net
MASTER_SITES= http://prosody.im/downloads/source/
REVISION = 0
HOMEPAGE= http://prosody.im/
MAINTAINER= Henrik Friedrichsen <henrik@diff.cc>
# MIT
PERMIT_PACKAGE_CDROM= Yes
USE_GMAKE= Yes
MODULES= lang/lua
LIB_DEPENDS= devel/libidn
MODLUA_RUN_DEPENDS+= archivers/luazlib \
databases/luadbi \
devel/luaevent \
devel/luafs \
security/luasec \
textproc/luaexpat>=1.3.0
WANTLIB+= crypto idn
SUBST_VARS+= FLAVOR MAKE_PROGRAM
NO_TEST= Yes
CONFIGURE_STYLE=simple
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
--sysconfdir="${SYSCONFDIR}/prosody" \
--datadir="/var/prosody" \
--with-lua="${LOCALBASE}" \
--with-lua-include="${MODLUA_INCL_DIR}" \
--c-compiler="${CC}" \
--linker="${CC}" \
--ldflags="-I/usr/include -I${LOCALBASE}/include -L/usr/lib -L${LOCALBASE}/lib -shared" \
--cflags="${CFLAGS} -I${LOCALBASE}/include -fPIC"
FAKE_FLAGS+= CONFIG=${DESTDIR}${PREFIX}/share/examples/prosody
pre-configure:
${SUBST_CMD} ${WRKSRC}/prosody ${WRKSRC}/prosodyctl \
${WRKSRC}/certs/Makefile
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/prosody
${INSTALL_DATA} ${WRKSRC}/README \
${PREFIX}/share/doc/prosody
touch ${PREFIX}/share/examples/prosody/prosody.log
rm -f ${PREFIX}/share/examples/prosody/certs/Makefile.*
.include <bsd.port.mk>