diff options
Diffstat (limited to 'net-im/prosody/Makefile')
-rw-r--r-- | net-im/prosody/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net-im/prosody/Makefile b/net-im/prosody/Makefile new file mode 100644 index 000000000000..d76f3fef1269 --- /dev/null +++ b/net-im/prosody/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: prosody +# Date created: 25 June 2009 +# Whom: Andrew Lewis <dru@silenceisdefeat.net> +# +# $FreeBSD$ +# + +PORTNAME= prosody +PORTVERSION= 0.4.2 +CATEGORIES= net-im +MASTER_SITES= http://prosody.im/downloads/source/ + +MAINTAINER= dru@silenceisdefeat.net +COMMENT= A simple extensible XMPP server written in Lua + +BUILD_DEPENDS= ${LOCALBASE}/include/stringprep.h:${PORTSDIR}/dns/libidn +RUN_DEPENDS= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket \ + ${LUA_MODLIBDIR}/ssl.so:${PORTSDIR}/security/luasec \ + ${LUA_MODLIBDIR}/lxp.so:${PORTSDIR}/textproc/luaexpat + +USE_RC_SUBR= prosody + +ONLY_FOR_ARCHS= i386 + +USE_LUA= 5.1 +WANT_LUA_VER= 5.1 + +HAS_CONFIGURE= yes +CONFIGURE_ARGS+="--ostype=freebsd" +CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}" LUA_SUFFIX="-${LUA_VER}" LUA_LIBDIR="${LUA_LIBDIR}" LUA_INCDIR="${LUA_INCDIR}" + +SUB_FILES= pkg-install pkg-deinstall prosody.cfg.lua.install + +pre-install: + ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + ${MV} ${WRKDIR}/prosody.cfg.lua.install ${WRKSRC}/prosody.cfg.lua.install + ${REINPLACE_CMD} -e 's|/usr/bin/env lua|${LUA_CMD}|' ${WRKSRC}/prosody ${WRKSRC}/prosodyctl + +post-install: + ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> |