2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2013/03/11 11:35:55 espie Exp $
|
2009-09-06 14:40:57 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= communications server for Jabber/XMPP written in Lua
|
2012-01-26 05:27:15 -05:00
|
|
|
DISTNAME= prosody-0.8.2
|
2009-09-06 14:40:57 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://prosody.im/downloads/source/
|
2012-10-08 05:11:35 -04:00
|
|
|
REVISION= 9
|
2009-09-06 14:40:57 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://prosody.im/
|
|
|
|
|
2012-01-26 05:27:15 -05:00
|
|
|
MAINTAINER= Wiktor Izdebski <vicviq@gmail.com>
|
|
|
|
|
2009-09-06 14:40:57 -04:00
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MODULES= lang/lua
|
2012-07-09 06:01:20 -04:00
|
|
|
LIB_DEPENDS= devel/libidn
|
2012-09-14 17:51:19 -04:00
|
|
|
MODLUA_RUN_DEPENDS+= archivers/luazlib \
|
|
|
|
databases/luadbi \
|
2010-11-19 17:31:32 -05:00
|
|
|
devel/luaevent \
|
|
|
|
devel/luafs \
|
|
|
|
security/luasec \
|
|
|
|
textproc/luaexpat
|
2012-07-09 06:01:20 -04:00
|
|
|
WANTLIB+= crypto idn
|
2009-09-06 14:40:57 -04:00
|
|
|
|
2012-10-08 05:11:35 -04:00
|
|
|
SUBST_VARS+= FLAVOR MAKE_PROGRAM
|
2012-09-14 17:51:19 -04:00
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes
|
2012-09-14 17:51:19 -04:00
|
|
|
|
2009-09-06 14:40:57 -04:00
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
|
|
|
|
--sysconfdir="${SYSCONFDIR}/prosody" \
|
|
|
|
--datadir="/var/prosody" \
|
|
|
|
--with-lua="${LOCALBASE}" \
|
2012-07-10 11:22:44 -04:00
|
|
|
--with-lua-include="${MODLUA_INCL_DIR}" \
|
2009-09-06 14:40:57 -04:00
|
|
|
--c-compiler="${CC}" \
|
|
|
|
--linker="${CC}" \
|
2012-01-26 05:27:15 -05:00
|
|
|
--ldflags="-I/usr/include -I${LOCALBASE}/include -L/usr/lib -L${LOCALBASE}/lib -shared" \
|
2012-07-10 11:22:44 -04:00
|
|
|
--cflags="${CFLAGS} -I${LOCALBASE}/include -fPIC"
|
2009-09-06 14:40:57 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS+= CONFIG=${DESTDIR}${PREFIX}/share/examples/prosody
|
|
|
|
|
2012-01-26 05:27:15 -05:00
|
|
|
pre-configure:
|
2012-10-08 05:11:35 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/prosody ${WRKSRC}/prosodyctl \
|
|
|
|
${WRKSRC}/certs/Makefile
|
2012-01-26 05:27:15 -05:00
|
|
|
|
2009-09-06 14:40:57 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/prosody
|
2010-11-10 14:25:25 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
2009-09-06 14:40:57 -04:00
|
|
|
${PREFIX}/share/doc/prosody
|
2010-07-26 14:11:42 -04:00
|
|
|
touch ${PREFIX}/share/examples/prosody/prosody.log
|
2009-09-06 14:40:57 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|